Commit cce4f7b3 authored by Kurnianggoro's avatar Kurnianggoro

Fixing some warnings

parent 08bc4b6a
...@@ -165,16 +165,16 @@ Rect2d BoxExtractor::extract(const std::string& windowName, Mat img, bool showCr ...@@ -165,16 +165,16 @@ Rect2d BoxExtractor::extract(const std::string& windowName, Mat img, bool showCr
// horizontal line // horizontal line
line( line(
params.image, params.image,
Point(params.box.x,params.box.y+(int)(params.box.height/2)), Point((int)params.box.x,(int)(params.box.y+params.box.height/2)),
Point(params.box.x+params.box.width,params.box.y+(int)(params.box.height/2)), Point((int)(params.box.x+params.box.width),(int)(params.box.y+params.box.height/2)),
Scalar(255,0,0),2,1 Scalar(255,0,0),2,1
); );
// vertical line // vertical line
line( line(
params.image, params.image,
Point(params.box.x+(int)(params.box.width/2),params.box.y), Point((int)(params.box.x+params.box.width/2),(int)params.box.y),
Point(params.box.x+(int)(params.box.width/2),params.box.y+params.box.height), Point((int)(params.box.x+params.box.width/2),(int)(params.box.y+params.box.height)),
Scalar(255,0,0),2,1 Scalar(255,0,0),2,1
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment