Video intelligence write to file

41 views
Skip to first unread message

GA23

unread,
Mar 24, 2021, 5:04:24 AM3/24/21
to cloud-videointel-discuss
I was following the object detection model example: https://cloud.google.com/video-intelligence/docs/samples/video-object-tracking-gcs

This all runs fine but does anyone have or know of the complete example to take the detected objects and identified boxes and write this to a new video (saved either locally or on the cloud)?

tielve

unread,
Mar 26, 2021, 10:24:54 AM3/26/21
to cloud-videointel-discuss

If I understood correctly, you are looking for a way to draw the bounding boxes on the video.

AFAIK, you can accomplish this frame by frame by using a the PIL library. Here is an example on how to do this on a single image/frame.

GA23

unread,
Mar 29, 2021, 11:47:13 AM3/29/21
to cloud-videointel-discuss
Yes correct. Bounding boxes to be written onto a video. I will take a look at the single image and see if it's easily adapted to video (or gifs).
Reply all
Reply to author
Forward
0 new messages