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?

asked 5 years ago193 views
2 Answers
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
answered 5 years ago
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.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions