Example

Object detection sample is one of the open source sample applications available here.

It is a complete example that shows how to perform Object detection in a ZED Hub App. It also shows how to create:

  • Logs that inform you about the application’s status
  • Telemetry that store data associated with the detections
  • Video Events which will record a sequence every time a person is detected
  • A Custom Stream displaying live video, with bounding boxes around the detected people (drawn with OpenCV)

Applications expose user-defined parameters that can be modified in ZED Hub to control the application during runtime.

What you obtain after deployment

Video stream

A video with bounding boxes around people will be available in the Video panel.

Logs

Logs will inform you about the application’s status.

Telemetry

Telemetry containing data about people detection will be available and generated every 10 seconds.

Video Event

A video is considered an event if at least on person is detected in the image. If your application is running and someone is seen by your ZED, you should see an Event in the Video Event panel corresponding to this situation.

By clicking on it, you have access to the video and the stored data of the event. The video is longer than the exact event duration (you can watch a few seconds before and after the event).

Parameters

Five parameters can be used to modify this application’s behavior:

  • Draw Bboxes: If selected, will draw boxes around detected people in the camera live view.

  • Enable Video Events: If selected, Video Events will be recorded when someone is detected on the video.

  • Number of frames without det Btw 2 Events: Number of frames without detection between two video events: if no one is seen for the defined number of frames, a new Video Event will be created when someone is detected again.

  • Record Telemetry: If selected, the application will send the number of people detected and additional information as telemetry.

  • Telemetry frequency: Telemetry frequency defines how often telemetries are sent by the application. Every 10 seconds by default.