<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Adriaan van Os <<a href="mailto:fpc@microbizz.nl">fpc@microbizz.nl</a>> schrieb am Do., 13. Feb. 2020, 14:26:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I looked around on the web for OpenCV Pascal bindings. What I found, seems to be based (mostly) on <br>
the OpenCV C interfaces, which covers only part of OpenCV.<br>
<br>
Alternatives are:<br>
<br>
1. Write flat C++ wrappers by hand ....<br>
<br>
2. Hook into the Python wrapper/bindings generator ....<br>
<br>
3. Use JNI to access the OpenCV Java interface ....<br>
<br>
Has anybody looked into that ?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You could try to use this modified version of Swig which is supposed to support Delphi: <a href="https://github.com/FMXExpress/swig-delphi">https://github.com/FMXExpress/swig-delphi</a></div><div dir="auto"><br></div><div dir="auto">I did not test it. I don't know whether the OpenCV code will work with SWIG (though there exists a OpenCV-SWIG project with Python modules, so maybe it does work), nor how good the generated Delphi code is. At the very least you'll have to adjust the generated code for FPC. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>