mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
516 B
21 lines
516 B
#include "perf_precomp.hpp" |
|
|
|
PERF_TEST_P(DevInfo, HOGDescriptor, testing::ValuesIn(devices())) |
|
{ |
|
DeviceInfo devInfo = GetParam(); |
|
|
|
setDevice(devInfo.deviceID()); |
|
|
|
Mat img_host = readImage("gpu/hog/road.png", CV_LOAD_IMAGE_GRAYSCALE); |
|
|
|
GpuMat img(img_host); |
|
vector<Rect> found_locations; |
|
|
|
gpu::HOGDescriptor hog; |
|
hog.setSVMDetector(gpu::HOGDescriptor::getDefaultPeopleDetector()); |
|
|
|
TEST_CYCLE(100) |
|
{ |
|
hog.detectMultiScale(img, found_locations); |
|
} |
|
}
|
|
|