c++ - OpenCV 2.4 inputText doesn't work correct -
every time when run following program writing text in image writes 5 random chars instead of input text. can be? memory leak or font error? opencv 2.4 in python works correctly not in c++.
mat img = imread("e:\\projects\\mediagui\\lena.jpg"); puttext(img, "text testing..", point(150, 150), cv_font_italic, 3, scalar(0, 0, 0)); imwrite("e:\\projects\\mediagui\\lenaprocessed.jpg", img); img.addref(); img.release();
result img: http://postimg.org/image/kn4hoyjnh/
Comments
Post a Comment