Giter VIP home page Giter VIP logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Strange, I wonder why they use different types in C++ if they are supposed to 
be the same type. I will be providing a setSVMDetector(FloatPointer) method in 
the next release, but for the moment I suppose something like this should work:

    HOGDescriptor hog = new HOGDescriptor(); 
    FloatPointer f = HOGDescriptor.getDefaultPeopleDetector();
    CvMat defaultSVM = CvMat.createHeader(f.capacity(), 1, CV_32FC1);
    defaultSVM.data_fl(f);
    hog.setSVMDetector(defaultSVM);

Let me know if this works! thanks

Original comment by [email protected] on 26 Nov 2011 at 11:27

  • Changed state: Started

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Hi, Samuel,

I have tried your code.
it works somehow .

CvRect found = null;
hog.detectMultiScale(image, found, 0, cvSize(8, 8), cvSize(32, 32),1.05, 2);

But hog generally returns null found. sometimes it crashes if you increase the 
upper limit of the window size.

I have run the peopledetect application from cpp sample,even the same input 
images don't have the same results.

Original comment by [email protected] on 29 Nov 2011 at 5:13

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Well, this works just fine here:
    CvRect found = new CvRect(null);
    IplImage img = cvLoadImage("gaitsetA-gait2.jpg");
    hog.detectMultiScale(img, found, 0, cvSize(8,8), cvSize(32,32), 1.05, 2);
    System.out.println(found);

I get (67, 7; 71, 142) on this image 
http://www.cbsr.ia.ac.cn/images/gaitsetA-gait2.jpg which looks about right.

Original comment by [email protected] on 12 Dec 2011 at 7:26

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Hi Samuel, 

Why is "found" in "hog.detectMultiScale" a single CvRect rather than a vector 
of CvRect's, as is specified in the following link? 
http://opencv.itseez.com/modules/gpu/doc/object_detection.html

Is there a way to get all CvRect's that are found by "hog.detectMultiScale" in 
javacv?

Original comment by [email protected] on 8 Jan 2012 at 6:36

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Fixed in latest release!

@zanetu, a CvRect object is a Pointer, which can be a native array. Just check 
Pointer.capacity() and use Pointer.position() functions as shown in the 
README.txt file, and please post your questions on the mailing list next time, 
thank you!

Original comment by [email protected] on 8 Jan 2012 at 3:50

  • Changed state: Fixed

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Thanks a lot.
Sorry for the inconvenience that was caused. I'll post on the mailing
list next time.

Original comment by [email protected] on 8 Jan 2012 at 8:44

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Hi samule can you help me?

Original comment by [email protected] on 30 Apr 2013 at 5:20

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Hi samuel what is the code for this?.. Plese gave me the source code in java...

Original comment by [email protected] on 30 Apr 2013 at 5:26

Attachments:

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
hi samuel ,
can you help me ? can u mail me the source code of human detection using hog in 
java ?
thankx.

Original comment by [email protected] on 13 Mar 2014 at 10:01

from javacv.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
@elmarrhex @AKKI There's some C++ sample here:
https://github.com/Itseez/opencv/blob/2.4/samples/cpp/peopledetect.cpp
Please post your questions on the mailing list if possible, thanks!

Original comment by [email protected] on 16 Mar 2014 at 1:19

from javacv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.