Reading a sequence of images fast

Nat's icon

I'm working on a stop-motion system where the user takes pictures, those pictures end up (as jpgs) in a folder, and I have a jitter patch that reads those pictures in a loop as they are taken. This seems to work fine by just calling read myphotoXX.jpg into a jit.qt.movie (using a metro and a custom java object that outputs the path of the files sequentially) but it's pretty slow. Any suggestions on how I could do this while using less ressources ?

yair reshef's icon
Nat's icon

That would be an idea, however, as new images arrive on the machine as the images is played back, that might be tricky...

KinoLab's icon

Hi, I'm in the same project... Could you someone help to know how to start... I'm really new in Max and this is my first project....

If you have an idea or a post that can explain me some details....

Best...

KinoLab

Guillaume Evrard's icon

hi,

you could try to instaciate a jit.gl.texture for every new picture you take. then use a jit.gl.videoplane to display those pictures...

it should be faster than reading from the hard drive.

cheers

g

MIB's icon

have a look at jit.matrixset it was made for that sort of thing.

KinoLab's icon

thanks for yours answer... I'll let you know

best

KinoLab's icon

Hi, I'm trying to create the patch... but :
Two problems...
1 - i don't know how can i set the exportimage of jit.qt.grab to crate a sequence of jpg.. it overwrite the jpg each time...

2 - How can i set the jit.matrixset to analyse the folder each (metro) time and ajout the news jpg ??

Sorry but I'm starting with max....

best