Hello, we are creating a component integration in which we perform analytics processing on Live camera feeds via the LiveContentEvent event handler in the LiveSource class. We only want to process frames where there is a person present, rather than processing every single camera frame. The documentation suggests using the LiveModeStart flag to control whether frames are passed through the LiveContentEvent. However, we would need to still process each frame to know if there is a person present before setting the LiveModeStart flag to true or false. Is there any other way to control the stream of camera frames, or perhaps tie LiveContentEvents to the camera’s motion detection sensing (i.e. only fire LiveContentEvents when the camera has detected motion) to lower the amount of camera frame processing we must perform?
It would be possible to use LiveModeStart like you suggest. To make this work you then need to create awareness of when the Motion Detection event happens. I recommend that you explore the StatusViewer sample, it will show how to subscribe to NewEventsIndication and see that “Motion Detection” happens.
Thanks for your answer.