You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Awesome library! :) using it for a "toy" project to build my son a present for xmas.
I'm trying to use sinks=['callbacks'] in the constructor, but when I do camera.snap_picture() I get an error:
File "cam_capture.py", line 103, in capture_from_camera
f = self.camera.snap_picture(blocking=blocking)
File "/src/avf.pyx", line 244, in pyavfcam.AVFCam.snap_picture (src/avf.cpp:3125)
ValueError: image video sink not initialized
Sorry I did not finish the callback, but will look at it soon.
If you want to snap pictures you do not need the callback, you can use image sink like this and many times as you want to take pictures. Callback is for live video/webcam processing with no dropped frames, and I need to buffer them to make this possible. BTW, with image sink if you do not provide a name it will not save a file and just returns the frame.
I also just tried to use pyavfcam, which looks nice and simple, for real-time webcam video processing using the semi-documented callback functionality before realising that it's not working. I'd be interested in trying it if you en up finishing it.
Awesome library! :) using it for a "toy" project to build my son a present for xmas.
I'm trying to use sinks=['callbacks'] in the constructor, but when I do camera.snap_picture() I get an error:
My camera class is constructed as
Would really appreciate a sample for using callbacks.
The text was updated successfully, but these errors were encountered: