HNHacker News
TopNewBestAskShowJobs

dominikwin

9 karma · joined January 21, 2025

submissionscomments
dominikwin··on Show HN: Vidformer – Drop-In Acceleration for Cv2 Video Annotation Scripts
Vidformer-py is a thin client library around a vidformer server. Details and install here: https://ixlab.github.io/vidformer/install.html It's possible to embed that into the python library, but getting FFmpeg, OpenCV, Rust, and the Python build systems to all play nice across multiple operating systems is too big a task for me to take on.

I'm not sure vidformer is a great fit for this task, at least in that way. It's better at creating and serving video results, not so much at processing. However, the data model does allow for something similar. You can take a video and serve a vidformer VOD stream on top, and as segments are requested it can run the model on those segments. Essentially you can run CV models as you watch the video. Some of this code is still WIP though.

dominikwin··on Show HN: Vidformer – Drop-In Acceleration for Cv2 Video Annotation Scripts
Okay, do you mean use it for speeding up media I/O there? I don't know if that would work. Using Yolo and drawing bounding boxes should already work fine with the supervision integration. That's how the Colab notebook does it.
dominikwin··on Show HN: Vidformer – Drop-In Acceleration for Cv2 Video Annotation Scripts
Happy to help, what do you mean add it to Yolo?
dominikwin··on Show HN: Vidformer – Drop-In Acceleration for Cv2 Video Annotation Scripts
There are a few benefits, depending on your use case; most of them are reducing video length as a barrier to visualization.

1) If you are running models you can use vidformer to see the results as they come in, essentially streaming annotated videos to your web browser as your model runs. 2) If you have existing inference results you can practically instantly render those on videos, then you can iterate or remix in seconds. 3) If you're hosting any infrastructure you can expose VOD streams publicly to show annotated videos to web clients. For example, it's trivial to build a video search engine which returns compilations.

dominikwin··on Show HN: Vidformer – Drop-In Acceleration for Cv2 Video Annotation Scripts
Yes! There's a list here: https://ixlab.github.io/vidformer/opencv-filters.html

A good chunk of OpenCV imgproc is implemented, but it can go beyond that. Vidformer can be applied to any function which returns or manipulates frames (transformation), but not functions which return data. So not yolo, but things like canny edge detection would work just fine. It's impossible to accelerate all processing tasks, so we focus on the "video transformation" subset used to create videos.