Trigger AWS DeepLens Lambda

0

I want to be able to trigger the lambda function that runs on AWS DeepLens via the function-handler/trigger support vs having a long-running function that is continuously processing frames and pumping out messages. AWS Greegrass Lambdas support being triggered. I can send messages down to devices. I have not been able to get that working with DeepLens.

All DeepLens examples I find only have a return statement in the function handler and write a long-running function that either has a while true loop or timer callback. I have not seen any blogs or documentation that show how to manually trigger the function running on the DeepLens device.

I only need 1 inference result and it should be based on when the trigger fires. I tried the long-running approach but once the object comes into view and stops, it stays there for a few minutes. The camera then starts to pump out notifications b/c the detection threshold meets the requirements. I only need the 1 though. Even when the object starts to move out of focus, the threshold is still high enough so messages go out. I want to be able to control that using a trigger and have an on-demand frame be processed.

Is this possible?

gefragt vor 5 Jahren200 Aufrufe
2 Antworten
0

hi lapellaniz,

Your best bet is to have a lambda long-running and listening to an MQTT topic to trigger. Even if you were able to configure GreenGrass to wake a lambda, the config it will get overwritten the next time you deploy a project to DeepLens.

Edited by: phun-aws on Sep 23, 2019 4:23 PM

AWS
beantwortet vor 5 Jahren
0

I was able to get this working by following this article https://www.itread01.com/content/1547330256.html. Configure an outgoing subscription under the deep lens greengrass group subscriptions. Make sure to deploy it after you add it.

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen