How to access pixel values in a video footage frames from python API? Sequence or clip editor? Or loading data directly perhaps?
I'd like to make a primitive laser 3D scanning addon utilizing same principle as http://en.myinventions.pl/index.php?page=3Dscanner
Edit: Ok, half way there - able to load file, but can read only the first frame. Is there a way to change frame?
import bpy
img = bpy.data.images.load('H:\\Data\\_blender\\Fluid\\Video_Edit.mov')
print(img.frame_duration)
#getting data
pixels = list(img.pixels)
#testing data
tmp = bpy.data.images.new(name="sample"+str(frame), width=w, height=h, alpha=False, float_buffer=False)
tmp.pixels = pixels