saviopalmieri / ctypes-opencv

Automatically exported from code.google.com/p/ctypes-opencv
0 stars 0 forks source link

wondering what the threading solution for blender imports would be?. #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i have a thread from which always hangs, maybe It is just my blender stdc++ 
linkage but I cannot get:
 ac=cv.cvCaptureFromFile(bytes(file));
 for aframe in range(0,480):
  acf=cv.QueryFrame(ac);
  bpy.ops.images.new(name=str(aframe),width=acf.width,height=acf.height); bpy.data.images[str(aframe)].pixels=str.join('',(chr(a) for a in acf));
but this is very expensive with the job processing happening with blender 
shared threads.
maybe I can get a better view of this like making blender think that the memory 
block is a blender identifiable file?
any help would be appreciated, this is merely for packing in blender 
convenience, I have a means by which I can see the files I just cvSaveImage 
them but they are tasking the operating system with graphicsmagick.

Original issue reported on code.google.com by Brochest...@gmail.com on 7 May 2013 at 4:55