Forum > Other

How to use Opencv with Lazarus Free Pascal

(1/1)

dyfroedd:
HI - Lazarus Free Pascal is an amazing tool that I recently discovered where I can do almost everything except for using OpenCV for image processing.

Can anyone tell me how I can use the OpenCV library with FreePascal + LAzarus on a Mac - this is a questions that I ahve not ahd any answers to yet.

Alternatively, I could write my own image processing subroutines for doing these after accessing the webcam video stream but it would save a lot of time using OpenCV.

Regards

marcov:
opencv is C++ so you need to flatten it to C to be callable.

This has been partially done with a windows DLL for Delphi, but afaik some lazarusers also use it, e.g.

https://github.com/Laex/Delphi-OpenCV

So you would have to do something similar on Mac.

Edson:
I've ported many of https://github.com/Laex/Delphi-OpenCV to Lazarus in: https://github.com/t-edson/LazarusOpenCV.

I tested it in only for Windows and Linux. I don't know about Mac. Maybe it can help you.

af0815:
I know this thread is a litte older :-)

Are there any updates about OpenCV for Lazarus ?

the link  http://blog.pucp.edu.pe/blog/tito/2018/07/28/opencv-con-lazarus-instalacion-en-linux/ on t-edson github is not working anymore - maybe shifted.

Edson:

--- Quote from: af0815 on May 05, 2021, 04:15:21 pm ---the link  http://blog.pucp.edu.pe/blog/tito/2018/07/28/opencv-con-lazarus-instalacion-en-linux/ on t-edson github is not working anymore - maybe shifted.

--- End quote ---

My blog has changed. That article is now in: http://blogdetito.com/2018/07/28/opencv-con-lazarus-instalacion-en-linux/

I'm not working in OpenCV by now. People only pay me for Web development. nowadays.  :(

Navigation

[0] Message Index

Go to full version