Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Histograms of oriented gradients implementation

Hello,

I wonder if I can implement HOG with labview and vision assistant or vision builder ?

If yes, can anyone guide me ?( what are the steps to follow etc..)

 

I need that because I am trying to build a human recognition VI

 

THANK YOU

0 Kudos
Message 1 of 24
(8,087 Views)

Hello,

 

there are quite a few papers regarding the HOG human detection.

 

I have only used HOG in Matlab some time ago, but for business card classification and not human classification.

 

I can suggest the following:

 

1. take a look at this post:

 

http://forums.ni.com/t5/LabVIEW/Histogram-of-Oriented-Gradients-HoG-weighted-histograms/td-p/1973807

 

They claim that they successfully implemented HOG algorithm.

 

2. use OpenCV since they have HOG already implemented for human detection. Find some example code and modify it and use it as a dll in labview.

 

http://docs.opencv.org/modules/gpu/doc/object_detection.html

 

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 24
(8,077 Views)

...or implement it yourself:

 

http://www.cs.bilkent.edu.tr/~cansin/projects/cs554-vision/pedestrian-detection/pedestrian-detection...


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 3 of 24
(8,072 Views)

thanks for replying..i don't know anything about opencv so i just need to know if it is a software or a feature in a software etc..? just to be able to get it.

 

thank you

 

0 Kudos
Message 4 of 24
(8,063 Views)
Hello,

yesterday i have implemented the dll HOG code in labview, based on opencv HOGDescriptor class. i will post the source code today here:

https://decibel.ni.com/content/blogs/kl3m3n


Best regards,
K

https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Message 5 of 24
(8,049 Views)

Dear Klemen,

 

Apparently this is perfect thanks a lot.But the vi is not working because I don't have the opencv software.Do I need any other software like Microsoft visual studio for example ? I told I don't know anything about opencv that's why I am confused .

 

Thanks for your continuous help.

0 Kudos
Message 6 of 24
(8,044 Views)

Hello,

 

the code was compiled with Visual Studio 2010 x86 so install OpenCV and add

 

"C:\Program Files (x86)\OpenCV 2.4.5\opencv\build\x86\vc10\bin"

 

(this is for OpenCV 2.4.5 build)

 

to system path.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 7 of 24
(8,039 Views)
hello, i took the files posted on your blog (vi,dll file, c++ code) but when i am trying to run the vi some kind of error appears(please see the attachment) any idea?
0 Kudos
Message 8 of 24
(7,962 Views)

Hello,

 

please attach the error.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 9 of 24
(7,960 Views)

error.png

 

0 Kudos
Message 10 of 24
(7,959 Views)