Skip to content

Commit 9c817cd

Browse files
committed
[apps] fix bad refactoring
1 parent d31f2d0 commit 9c817cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/applications/detection/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ void drawMarkers(const boost::ptr_list<CCTag> &markers, cv::Mat &image, bool sho
7878
{
7979
const cv::Scalar color = cv::Scalar(0, 255, 0 , 255);
8080
const auto rescaledOuterEllipse = marker.rescaledOuterEllipse();
81+
8182
cv::circle(image, center, radius, color, 3);
8283
cv::putText(image, std::to_string(marker.id()), center, cv::FONT_HERSHEY_SIMPLEX, fontSize, color, 3);
8384
cv::ellipse(image , center, cv::Size(rescaledOuterEllipse.a(), rescaledOuterEllipse.b()),
@@ -519,7 +520,7 @@ int main(int argc, char** argv)
519520
#ifdef PRINT_TO_CERR
520521
detection(fileInFolder.first, pipeId, imgGray, params, bank, markers, std::cerr, inputImageFile.stem().string());
521522
#else
522-
detection(fileInFolder.first, pipeId, imgGray, params, bank, markers, outputFile, fileInFolder.second.stem().string());
523+
detection(fileInFolder.first, pipeId, imgGray, params, bank, markers, outputFile, inputImageFile.second.stem().string());
523524
#endif
524525
// if the original image is b/w convert it to BGRA so we can draw colors
525526
if(src.channels() == 1)

0 commit comments

Comments
 (0)