Comments (10)
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.
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.
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.
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.
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.
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.
Hi samule can you help me?
Original comment by [email protected]
on 30 Apr 2013 at 5:20
from javacv.
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.
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.
@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)
- FacePreview: ClassNotFoundException - java.awt.image.BufferedImage HOT 4
- parameters for cvmat method? HOT 5
- ObjectFinder in Adroid HOT 7
- Memory Leak in cvLoadImage or JavaCV (Big Issue, New problem) HOT 17
- FacePreview using new OpenCV API HOT 3
- SURF Detect "bad allocation" Error HOT 10
- How to install? UnsatisfiedLinkError jniopencv_core36577.dll HOT 7
- Demo: java.lang.UnsatisfiedLinkError - Reason: image not found HOT 13
- cvFindContours different results HOT 2
- cannot run javacv example, ClassNotFoundException (Mac OS X) HOT 13
- ChamferMatching HOT 3
- Flann radiusSearch, knnSearch HOT 3
- Unable to use JavaCV in Matlab R2011b HOT 9
- javacv throws java.lang.UnsatisfiedLinkError HOT 3
- Invalid Memory Access using FloatPointer and PointVectorVector (chamerMatching()) HOT 1
- Getting Linker Error HOT 2
- Running the sample facepreview of JavaCV on Android with eclipse + Windows xp HOT 7
- Insufficient memory HOT 2
- cvGoodFeaturesToTrack issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacv.