mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Fix for opencv face detector ocl test
Signed-off-by: Li Peng <peng.li@intel.com>
This commit is contained in:
@@ -222,9 +222,7 @@ TEST_P(DNNTestNetwork, OpenFace)
|
||||
|
||||
TEST_P(DNNTestNetwork, opencv_face_detector)
|
||||
{
|
||||
if (backend == DNN_BACKEND_HALIDE ||
|
||||
backend == DNN_BACKEND_DEFAULT && target == DNN_TARGET_OPENCL)
|
||||
throw SkipTestException("");
|
||||
if (backend == DNN_BACKEND_HALIDE) throw SkipTestException("");
|
||||
Mat img = imread(findDataFile("gpu/lbpcascade/er.png", false));
|
||||
Mat inp = blobFromImage(img, 1.0, Size(), Scalar(104.0, 177.0, 123.0), false, false);
|
||||
processNet("dnn/opencv_face_detector.caffemodel", "dnn/opencv_face_detector.prototxt",
|
||||
|
||||
Reference in New Issue
Block a user