Video Object Tracking: Working with exported JSON.

DataTurks provides a power-packed tool to do object tracking in videos. You can draw a bounding box around a moving object at certain times in the video and the DataTurks tool automatically does interpolation between these points.

This saves a tremendous amount of time. For a simple 1-minute video this can reduce the annotation time from 30 minutes to 5 minutes, providing a 6X improvement in efficiency while keeping the quality intact.

Check out the demo of the tool here: Video Object Tracking tool.

Here is a video walk-through of the same:


Once the video is annotated, you can download the annotation JSON. For each tracked object it contains the coordinates of the bounding box at various time points in the video along with some extra meta-data.

Here is a sample format of the downloaded JSON:

Using this JSON, you can easily extract frames from the videos and draw bounding boxes on each image frame. Here is a sample code of the same:

Here is a sample output from the above script:

Image for post
Image for post
The above script ran on Ipython.
Image for post
Image for post

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store