-
Notifications
You must be signed in to change notification settings - Fork 67
Exception thrown at camera_client.captureimage() #251
Comments
@sezflynn Thanks for p[ointing this. We are looking ito it and will get back soon. |
Hi @PuneetRahejaMS, do you have an update on this issue? |
Hi @sezflynn, @sharminProvoke, Unfortunately, there is a known issue with the camera client api below the iotccsdk, where during a session a snapshot should be taken right after the camera is started to ensure stability of the snapshot function. If an inference is detected before a test snapshot is taken first the snapshot fails and can crash the module. A quick way to work around the issue is to make sure the frame is clear of objects that will trigger inference during module startup. Say, for example, simply covering the camera lens for a few seconds while the module starts up. |
So I added some code to make sure the camera was running and an initial snapshot was successful before progressing to the rest of the logic. I placed a piece of white paper in front of the camera and uploaded the new container; it still errors:
The container cycles through the same set of errors about 7 times, with this extra error on the 6th and 7th tries:
First log:
Last log:
|
Okay, a couple of reboots seems to have cleared the above problems, camera is taking snapshots now! |
We're getting snapshots and successfully passing them to azure face api. Thank you for your help @PuneetRahejaMS |
Face detect sample fails when camera client attempts to capture image.
We removed threading and changed
main.py
to this:and added logging to
azure_face_api.py
:Here's a dump of the logs:
We're looking for any insight into what could be causing this error and where to from here in terms of resolving this issue.
The text was updated successfully, but these errors were encountered: