Ask Your Question

Ross Rogers's profile - activity

2019-08-29 13:21:19 -0600 received badge  Popular Question (source)
2013-01-22 14:48:43 -0600 received badge  Student (source)
2012-11-04 09:15:49 -0600 received badge  Editor (source)
2012-11-04 08:51:26 -0600 asked a question String text is garbage on cv::imshow title bar and in cv::putText display

image description

The code that is generating this is:

cv::Mat img_combo(a.img->rows+2,a.img->cols+b.img->cols+2,a.img->type());
[...];
//                        Somehow this text is getting display in the picture as "???"
//                           VVVVVVVVVVV
cv::putText(img_combo, string("abcdefg"), cv::Point(30,30), CV_FONT_HERSHEY_SIMPLEX, 0.8, cvScalar(200,200,250), 1, CV_AA);
cv::namedWindow("Image2:",1); //<<-- The label that is getting dislayed as a weird "DE>>"
cv::imshow("Image2:",img_combo);
cvWaitKey();
cvDestroyWindow("Image2:");

Is there some sort of unicode local that I need to configure? Why is my ASCII text getting displayed this way?

When I look at the *.obj generated by MSVS 2010 in cygwin's less, I'm seeing Image2: in the binary.