Skip to main content
Notice removed Draw attention by james
Bounty Ended with M. Stern's answer chosen by james
code editing
Source Link
james
  • 3.1k
  • 14
  • 30
SetDirectory["path to folder of images"];

(* Extract all images from folder*)

images = FileNames["*.jpg"];
allSlidesslides = Import[#] & /@ images;
 
(* First slide is only title-slide*)

slides = allSlides[[2 ;;]];
Print["Got all slides!"];
SetDirectory["path to folder of images"];

(* Extract all images from folder*)

images = FileNames["*.jpg"];
allSlides = Import[#] & /@ images;
 
(* First slide is only title-slide*)

slides = allSlides[[2 ;;]];
Print["Got all slides!"];
SetDirectory["path to folder of images"];

(* Extract all images from folder*)

images = FileNames["*.jpg"];
slides = Import[#] & /@ images;

Print["Got all slides!"];
added 491 characters in body
Source Link
james
  • 3.1k
  • 14
  • 30

Check Your Code

To check that your code works correctly, I have created a pdf for video 2, which shows the slide number, the slide and the start and end subtitles for each slide. Please download it here: https://www.dropbox.com/s/hdxajnfve0nzf5i/Slides%20and%20Subtitles%20Start_End%20for%202.pdf?dl=0

The correct identification of the slides of the later video should be: 1,2,3,4,5,4,6,7,8,9,10,11,12,13,12,13,14,13,15,16,17,18

Be careful: There are repeating slides !

Check Your Code

To check that your code works correctly, I have created a pdf for video 2, which shows the slide number, the slide and the start and end subtitles for each slide. Please download it here: https://www.dropbox.com/s/hdxajnfve0nzf5i/Slides%20and%20Subtitles%20Start_End%20for%202.pdf?dl=0

The correct identification of the slides of the later video should be: 1,2,3,4,5,4,6,7,8,9,10,11,12,13,12,13,14,13,15,16,17,18

Be careful: There are repeating slides !

added 152 characters in body
Source Link
james
  • 3.1k
  • 14
  • 30
formatting (code block immediately following list)
Source Link
jjc385
  • 3.5k
  • 1
  • 18
  • 29
Loading
Notice added Draw attention by james
Bounty Started worth 300 reputation by james
added 5 characters in body
Source Link
james
  • 3.1k
  • 14
  • 30
Loading
edited body
Source Link
james
  • 3.1k
  • 14
  • 30
Loading
Tweeted twitter.com/StackMma/status/925843883791089665
edited body
Source Link
james
  • 3.1k
  • 14
  • 30
Loading
edited tags
Link
james
  • 3.1k
  • 14
  • 30
Loading
added 107 characters in body
Source Link
james
  • 3.1k
  • 14
  • 30
Loading
Source Link
james
  • 3.1k
  • 14
  • 30
Loading