Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some questions about the OpenCV components #46

Open
HR1959 opened this issue Oct 8, 2024 · 6 comments
Open

some questions about the OpenCV components #46

HR1959 opened this issue Oct 8, 2024 · 6 comments

Comments

@HR1959
Copy link

HR1959 commented Oct 8, 2024

Dear Laentir,

after some time I come back to my approach to use OpenCV in my application.
I changed now to this version because it support also 64 Bit. So I am not continuing to work with the version 2.4.13.
One reason is also the component packages you made: dclVCLOpenCV.dpk and rclFMXOpenCV.dpk.

It is very nice to just put two blocks as source (TCVCaptureSource) and sink (TCVView) together and things work.

But what is missing is a block in between for e. g. image processing (filtering, edge detection, etc.).

My questions are now:

  1. Do you plan to make such an open block where you can put in all image processing steps? If so for when?
  2. If not are you willing to support me to make such component?

Regards Harald

@Laex
Copy link
Owner

Laex commented Oct 8, 2024

  1. In this project it was planned to develop components as an extension of Delphi-OpenCV (https://github.com/Laex/Delphi-OpenCV). Including components that perform transformation of pictures (matrices). Lack of time does not allow to deal with the project constantly
  2. The project is open to all developers, and I welcome offers to participate in the development of the project. This will help me to pay more attention to the project.
  3. From my side I am ready to devote more time to the part of the project - Delphi interface to C++ OpenCV functions.

@HR1959
Copy link
Author

HR1959 commented Oct 9, 2024

Dear Laentir,

thank you for your quick reply.
I am more than pleased to support you. But you should know that I am far from the level of knowledge you have about the matter and coding techniques. At least this is what I derive out of your code. I am just an old retired electrical engineer (65) who enjoys still learning new things and I have the advantage that I can no dedicate some time to things what I had no time during my professional life. Just to let you know I stopped generating code at the time of Delphi 5. Now we are at Delphi 12.2
I will continue to study your work more deeply.
E. g. I want to understand the interface structure between the output of TCVCaptureSource and the input of TCView and TVVideoWriter.
Once understood I hope I am able to generate what I call "the block in between".
Another subject I am curious in is the event driven procedure always when a new frame arrives.
It would be a simple task just to hang into this procedure the image processing functions.
But the nicer (more elegant) approach would be this "block in between" because I like your concept of the components that exist so far which are “connected” via the property Source.

So let me know what I can do for you in bringing this forward. At least I will try my very best.

Regards Harald

@HR1959
Copy link
Author

HR1959 commented Oct 9, 2024

Dera Leantir,

I am struggling to find the definition / declaration of TMat in the version for OpenCV 4.XX like I found it in the version 2.4.13 in the file ocv.cls.core.pas.

The background for my search is that I want to built two functions for TMat to TBitmap and vice versa for using the Canny edgedetector in my current application where i have a variable of the type TBitmap to work with.

Can you give me a hint?

Regards Harald

@Laex
Copy link
Owner

Laex commented Oct 9, 2024

The definition of TMat is in the file "source\core\mat.inc"
How to convert TMat to BITMAP (Windows format) can be found in the ipDraw function in "packages\CVClass.pas"
ipDraw - as an example, it is very simple and does not support all possible image encoding options

@jiangwei7480
Copy link

Dear Laentir,
It happen Error when I run videocapture of Example, Error hint has'r find VCRUNTIME140_1D.dll.
Please tell me where get it.

@Laex
Copy link
Owner

Laex commented Nov 26, 2024

See readme.md

Warning

You may not have the Microsoft runtime libraries installed on your computer, which are required for OpenCV to work. Take advantage of the advice (source):

"The lack of these DLLs can be fixed by installing "Microsoft Visual C++ 2015 - 2022 Redistributable". Probably the application that is showing this error depends on it installed. Download and install both the x86 and x64 versions"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants