LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone help with a OpenCV DLL example?

OpenCV is an Open Source computer vision library released by intel.  It is very handy for face reconition.  There is a third party group called HyTek automation that created a commercial LV OpenCV wrapper called IVision, nice by if you just want to use a few of the features it would be nice to see some examples to help those of us simply expirimenting.  To that end there was a guy on the code project site that created a free OpenCV DLL wrapper that seems to have made all the constructors public inside the DLL so LV should be able to access them.  Here is the link

to the code project page:

http://www.codeproject.com/KB/cs/Intel_OpenCV.aspx

 

Here is the link to the Google OpenCV Page

http://code.google.com/p/opencvdotnet/

 

Here is the link to the OpenCV WIKI Page

http://opencvlibrary.sourceforge.net/FaceDetection

 

Here is a link to some OpenCV Programming Referance Info

http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html

 

Here is the OpenCV Yahoo Page, Includes Emgu (another wrapper, not all public constructors, so LV may not be able to use Emgu DLL)

http://tech.groups.yahoo.com/group/OpenCV/

 

 

I was hoping someone could help by creating an example that shows a facal reconiton and possibly showing how to pull that area out to allow it to be saved as a seperate file.  I have been expirimenting with it but am unsure if all the flags and memory need to be setup as shown on the WIKI link.

 

Also wanted to point folks to the Treemap DLL example,  this is free microsft control that is really neat for interperating data at a glance

 http://forums.ni.com/ni/search?board_id=170&submitted=true&q=treemap

 

Best Regards

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 13
(11,311 Views)

The Wiki page refers to an example that's in C, not .NET, so none of the stuff on that page is relevant. The CodeProject page is one wrapper. This is different from the OpenCVDotNet wrapper, which appears to be a different wrapper alltogether. Both wrappers are using their own API, so there not a one-to-one correspondence to the OpenCV library's API. The Emgu library, as I pointed out before, uses generics, which LabVIEW doesn't handle. I don't think the situation has changed with 8.6, but I'm not sure.

 

That said, which library are you trying to use? The CodeProject page has a full example on there. The OpenCVDotNet site has a tutorial on using its library. 

Message 2 of 13
(11,306 Views)

I was hoping to use the code project wrapper as that DLL appears to be setup to allow LV access to all the OpenCV functions.

 

Best regards

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 3 of 13
(11,299 Views)
OK... What have you tried so far? The article on CodeProject seems fairly easy to follow. What part are you having problems with?
Message 4 of 13
(11,289 Views)

This reply refers to the C# example on the Code Project site

 

http://www.codeproject.com/KB/cs/Intel_OpenCV.aspx

 

I have been trying to load the image and the HarrClassifier but have been stumbling,

 

I have attached an example of what I have been trying.....

 

I do not see an example of face detection in the C# example,  but the Emgu has an example.  I know they are not the same DLL but I was simply trying to see the order in which things have to happen.

 

Once I find the method or property I need I seem to have trouble getting it to interface with the next method....

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 5 of 13
(11,219 Views)
Unfortunately, I can't really help you with this. The library looks like it was specifically to work within a Microsoft System.Windows.Forms environment, which LabVIEW ain't. I really don't have the time to spend researching this to the length that it would require to make it work. Sorry.
Message 6 of 13
(11,190 Views)

There is example for available for face detection (The BigSample application) for the Codeproject page.

I must know it. I did write. Sorry if it not fit your needs.

Regards H. 

0 Kudos
Message 7 of 13
(11,006 Views)
Me too trying something similar..i'm trying to code in c++ n compile it as DLL in VS2008 and import it on LV..i tried both Call library functon node as well as shared libray import wizard..both r giving some errors..I hav attached the the c++ header n source file ..please help..
Download All
0 Kudos
Message 8 of 13
(9,952 Views)

If this is for the sake of learning to do this kind of stuff, then I do not want to discourage you here.

 

But if it is about getting Vision analysis to work, the IMAQ Vision library is a better way to go about this, and if you insist on using OpenCV as core library and do not want to spend as much money, the IVision library is another possibility. They both ain't free but you do get good value for what you pay for, especially with the IVision library.

 

Rolf Kalbermatter

Message Edited by rolfk on 09-10-2009 09:35 AM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 13
(9,941 Views)

@Rolf Kalbermatter

 

I'm trying to learn how to import c++ codes using libraries other than native VS libraries..Please can u see CPP file since function takes input of CvArr n CvRect can u suggest me how to pass these parameter from labview..

0 Kudos
Message 10 of 13
(9,931 Views)