Ask Your Question
0

undefined reference to cv::dnn::blobFromImage().

asked 2019-04-19 04:57:46 -0500

iamM gravatar image

Hi,

I am trying to blobFromImage() from cv::dnn module and i am facing undefined reference to cv::dnn::blobFromImage(), please suggest me library I need to link for this function.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-19 05:59:19 -0500

Yashas gravatar image

updated 2019-04-19 06:00:41 -0500

You need to inform your linker about the DNN module. Specify -lopencv_dnn flag to your linker.

edit flag offensive delete link more

Comments

Thank you @Yashas it works, but I am getting rows and cols value as -1 in blobFromImage() function and suggestions?

iamM gravatar imageiamM ( 2019-04-19 06:15:38 -0500 )edit

You haven't shown any code and it's not related to this question.

Yashas gravatar imageYashas ( 2019-04-19 10:31:58 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-04-19 04:57:46 -0500

Seen: 120 times

Last updated: Apr 19