Request: Video-annotation

Hello Hasty-team,

are you planning on enabling video-annotation?

Thanks
Simon

Hey Simon,

we know that video-annotation is an often requested feature. We are working on it right now and will release it soon :rocket: As soon as we are sure about it, we will announce a release date in the “Updates & News” part of the community.

In the meanwhile, you can already do video-annotations with a small workaround: just parse videos into frames and upload those as images into Hasty. Label only one frame per scene and then let our assistants do the rest for you.

Happy labeling,
Tobias

4 Likes

Hi Tobias,

I’m looking forward to the video annotation. Do you know of any tools you can recommend to convert a video file into frames saved as single images?

Thanks in advance!
John

Hi John,

when you google you find some web-tools, but I’ve never tried it.

You can also do it easily with OpenCV in Python, though:

import cv2

cap=cv2.VideoCapture('path to  video_file') 

i=0
while(cap.isOpened()): 
    ret, frame = cap.read()
    if ret == False:
        break
    cv2.imwrite('frame_'+str(i)+'.jpg',frame) 
    i+=1

cap.release()
cv2.destroyAllWindows() 

To explain:

  1. Open the Video file using cv2.VideoCapture()
  2. Read frame by frame
  3. Save each frame using cv2.imwrite()
  4. Release the VideoCapture and destroy all windows

I hope that this works for you.

Best,
Tobias

1 Like

Thanks Tobias! That did the trick for me.

1 Like