Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

imread/imwrite and friends were moved from highgui to a new imgcodecs module.

so you will have to

#include "opencv2/imgcodecs.hpp"

and link

-lopencv_imgcodecs

imread/imwrite and friends were moved from highgui to a new imgcodecs module.

so you will have to

#include "opencv2/imgcodecs.hpp"

and link

-lopencv_imgcodecs

btw, include path should be:

-I/usr/local/include

not

-I/usr/local/include/opencv