Jump to content
David P

Video capture/processing library recommendations

Recommended Posts

Hello

 

I would like to be able to connect to a video camera (USB Initially) to capture footage and to process the footage (frame by frame), either live or after it has been saved.  The idea is to create a traffic counter.

 

Can anyone recommend a video capture/processing library

 

Many thanks

Share this post


Link to post

We have used https://www.mitov.com/products/videolab#overview for 13 years.  Excellent library to which I owe my company's product's success on Windows and macOS.  His tools are threaded, which means you get maximum through-put and the VCL doesn't freeze.

Free trial and free to non-commercial organizations. 

The installer puts some demo programs here C:\Program Files (x86)\Embarcadero\Studio\22.0\LabPacks\Demos.  You'll find one there that lets you process frame by frame either a live feed or file playback.  Just drop a few components on a designer, hook them up, and grab the "Frame Ready" event to process your data.

Check out some of his other tools. He has some real-time tools that do pattern recognition and may be all you need.

Boian Mitov is brilliant, IMO.  His tools are the best we could find. No royalties necessary.  No confusion about FFMPEG patent licensing, which we always worried about.

 

The attached sample has a video feed (of a telescope spectrometer) on the left and some data extracted on the Mitov plot on the right.

Tom 

 

 

mitov.gif

Edited by Tom F
Replaced static image with gig
  • Like 1

Share this post


Link to post

Thanks Tom. that's very useful.  Always good to get a recommendation from someone who uses the library.

Share this post


Link to post
On 9/19/2022 at 10:36 AM, David P said:

to create a traffic counter.

Video processing is once thing, but maybe you are looking for object detection algorithms like Yolo too.

https://www.delphipraxis.net/1428590-post11.html

I'm not sure if VideoLab implements that or would let you support that, that would be good to know.

 

One thing to consider is maybe Python with OpenCV too, the Python environment could make such task simple, but I'm unsure if that has enough performance for realtime analysis

https://medium.com/@MrBam44/yolo-object-detection-using-opencv-with-python-b6386c3d6fc1

https://towardsdatascience.com/yolo-object-detection-with-opencv-and-python-21e50ac599e9

https://opencv-tutorial.readthedocs.io/en/latest/yolo/yolo.html

https://pyimagesearch.com/2018/11/12/yolo-object-detection-with-opencv/

  • Like 1

Share this post


Link to post

I have tested Mitovs libraries too and they offer great stuff for video processing.

But a complete traffic counter would be not easy to do, last time I checked the libraries only included some standard filters, like Hough, Canny, simple MotionDetection, etc.

This can be maybe helpful to build a simple traffic counter, but I would assume that this performance will be not too good.

Thats why something like Yolo has been invented, also because this is much faster and stable.

 

I have tried some simple object detection algorithms of more or less static images some years ago and I can tell you that the normal image filters cannot magically give good results.

It is very tricky to make them return stable and error-free results, especially if the scene is highly dynamic like traffic and if it can have different lighting situations.

If you have some good ideas or solutions, would be great to see that too.

Edited by Rollo62
  • Like 1

Share this post


Link to post

Thanks Rollo/Tom.  This is intended as a hobby project intended for use in my local area.  I'm hoping this means I can simplify the configuration/detection a lot.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×