opencv - outline drawing of text using Emgu -
i want annotate camera feed. using these apis
image<bgr, byte>.draw();
however depending on lighting text not readable. draw text black border , white fill. how do using emgu?
var labeledcameraframe = new image<bgr, byte>(cameraframe.bitmap); var border = new rectangle(0, 0, 200, 40); labeledcameraframe.draw(border, new bgr(color.white), -1); labeledcameraframe.draw(border, new bgr(color.black)); cvinvoke.puttext(labeledcameraframe, "hello, world", new point(10, border.height - 10), fontface.hersheysimplex, 1.0, new bgr(color.blue).mcvscalar);
Comments
Post a Comment