Closed EspenTeigen closed 5 years ago
Take a look at this example project: https://github.com/google-coral/project-teachable which does something almost exactly as you describe. Basically in the callback triggered by a particular frame from gstreamer you can check the GPIO status of your desired pin and then take an action depending that state - e.g. save the image or do whatever. If you want to avoid triggering multiple consecutive frames (say it's a button you want to press to take a picture) you may have to debounce the button state and detect the up or down edge by saving the previous state somewhere.
Thank you so much.
Mvh Espen
From: Mike Tyka notifications@github.com Sent: Wednesday, September 11, 2019 6:36:22 AM To: google-coral/examples-camera examples-camera@noreply.github.com Cc: Espen Teigen espen.teigen@hotmail.com; Author author@noreply.github.com Subject: Re: [google-coral/examples-camera] Inference on pictures instead of videostream with Coral Camera on EdgeTPU dev board (#14)
Closed #14https://github.com/google-coral/examples-camera/issues/14.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/google-coral/examples-camera/issues/14?email_source=notifications&email_token=AGFGANTZ4WH2T3GKWNLO6DLQJBYUNA5CNFSM4IU2T2KKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTRWM3XA#event-2624376284, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGFGANSK5DOSTVLHOE5WXM3QJBYUNANCNFSM4IU2T2KA.
Hi.
I want to run classification inference on pictures triggered from a digital pin on the dev board. But i cant figure out how i can take one picture and send it to the tf-model with the gstreamer library.