Open HR1959 opened 1 month ago
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
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
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
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:
Regards Harald