Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closing a capture #6

Open
laurentperrinet opened this issue Oct 15, 2018 · 4 comments
Open

closing a capture #6

laurentperrinet opened this issue Oct 15, 2018 · 4 comments

Comments

@laurentperrinet
Copy link
Contributor

I now know how to snap a picture, but still I do not know how to close the capture. is there any method such as cam.close() ?

@dashesy
Copy link
Owner

dashesy commented Oct 15, 2018

Does stop_recording not work? maybe it should be part of close.

laurentperrinet added a commit to bicv/pyavfcam that referenced this issue Dec 23, 2018
@laurentperrinet
Copy link
Contributor Author

@dashesy
Copy link
Owner

dashesy commented Dec 27, 2018

stop_recording to stop a video recording. I think you mean to close the access after snapping a picture?
In that case I think you should just delete all the references to the camera, i.e. del cam. If no other reference exists the driver should be closed.

@laurentperrinet
Copy link
Contributor Author

The driver is still on (the LED on the camera is green and lit) after deleting cam :

image

it stops if I restart the kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants