2014-12-05 10:27:08 -0600 | asked a question | Offset value in OpenCV's face detection implementation When we train OpenCV's face detection CascadeClassifier, we use 24 x 24 images. Then feature rectangles and related left/right leave values are those in xml files extracted from 24 x 24 images.
Then the each pixel (x,y) is run through for the LBP_classifier at line 955 of cascadedetect.cpp as
Features are calculated from the rectangles of the re-sized image and offset value for each pixel location is used in the feature calculation.
My queries are I checked p0 is integer pointer and pointing to an integer value. What does it((p0)[offset]) mean? |
2014-12-05 04:37:00 -0600 | asked a question | OpenCV's face detection algorithm's implementation in training and detection I believe, somebody can explain me how OpenCV's face detection objects, DetectionBasedTracker and CascadeClassifier, make a trick in face detection. When we train the cascade classifier, we use 24 x 24 size images. Then we have rectangles for LBP features in the xml files. So these are the rectangles with respect to 24 x 24 size trained images. But when detection is implemented in CascadeClassifier class, features are calculated from re-sized images (not from 24 x 24 image), for those rectangles, as shown below (line 1014 at cascadedetect.cpp).
Then the whole image is processed for each x,y pixels and their respective 24 x 24 windows from that re-sized image.
Then the offset value is used to relate the rectangle's feature and its x,y position in re-sized image.
What I don't understand is that -even though feature rectangles in xml file are extracted from 24 x 24 size images in training, but in real detection features are calculated from feature rectangles at re-sized images and offset is used. What does this offset value do the trick? -My thinking is that if feature rectangles are extracted from 24 x 24 size images in training, it should use 24 x 24 size images in detection as well. How is the trick behind in which features are calculated from rectangles at re-sized images? Thanks |
2014-02-21 03:40:02 -0600 | asked a question | CameraBridgeViewBase (OpenCV) doesn't make camera connection I made an activity extended from CameraBridgeViewBase (OpenCV). When mOpenCvCameraView.enableView(); is called, it should display the camera. But now it is not. My activity is as follow The xml is |