3 #include "ImageProcessor/objectdetection.h" 4 #include "ImageProcessor/abstractimageprocessor.h" 5 #include "ImageProcessor/detectcircle.h" 16 void TestImageProcessor();
17 void TestImageProcessor_data();
20 ImageProcessorTest::ImageProcessorTest()
25 void ImageProcessorTest::TestImageProcessor()
27 QFETCH(QString, ImgSrc);
29 pro->setImg(cv::imread(ImgSrc.toStdString().data()));
30 QVERIFY2(!pro->getImg().empty(),
"The Image Is Empty");
33 void ImageProcessorTest::TestImageProcessor_data()
35 QTest::addColumn<QString>(
"ImgSrc");
36 QTest::newRow(
"data") << QString(
"E:\\1.png");
41 #include "tst_imageprocessortest.moc"
this class is used To Detect circles in an image