LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone help with a OpenCV DLL example?

Well, CvArr and CvRect are object pointers. You can't do anything else in LabVIEW with them directly, but treat them as opaque pointers.

 

So you have several possible approaches here then:

 

1) use some Active X or .Net wrapper to access that library. I can't help you with that in any way as I do not consider that a good approach.

 

2) For every object pointer you need to write C function wrappers for every of its methods you ever want to access, and also for possible public variables you might want to access. Then write in LabVIEW an extensive library of VIs using the Call Library Node to do the more involved work.

 

3) You sit down and design a more LabVIEW friendly DLL function interface and write a wrapper DLL that translates between this function interface and the OpenCV interface.

 

This last one is the approach Hytekautomation took when developing the IVision library.

 

Rolf Kalbermatter

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 11 of 13
(1,775 Views)
I have already tried taking them as opaque pointers..VI runs successfully..but no of detected faces will b zero..if i call DLL same from VS it works..As u hav pointed out writing more LV friendly wrappers would be the best option..

0 Kudos
Message 12 of 13
(1,760 Views)
Thanks for ur time Rolf...
0 Kudos
Message 13 of 13
(1,757 Views)