Ask Your Question

Getting error with freeType -> putText function

asked 2019-10-16 22:36:04 -0500

padfoot gravatar image

I am getting an error

no matching function for call to ‘cv::freetype::FreeType2::putText(IplImage*&, cv::String&, CvPoint&, int&, cv::Scalar_<double>, int&, int&, bool)

for the following code - (Here show_image is declared as IplImage *show_image)

            ft2->putText( show_image, text, pt_text, fontHeight, cv::Scalar::all(0), baseline, linestyle, true );
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-10-17 00:11:06 -0500

berak gravatar image

updated 2019-10-17 00:36:08 -0500

IplImage * is no more supported in modern opencv.

have a look at the example in the docs

please use cv::Mat and cv::Point, not deprecated C-api structures.

edit flag offensive delete link more


OK thanks ! Also is there anyway to convert IplImage * to cv::Mat

padfoot gravatar imagepadfoot ( 2019-10-17 00:56:10 -0500 )edit

no more. erase ALL IpIImages from your code, please.

berak gravatar imageberak ( 2019-10-17 02:36:01 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-10-16 22:25:09 -0500

Seen: 59 times

Last updated: Oct 17 '19