-3

I just need to call cv::imread("xxx.jpg"), how can I compile the most simple lib of opencv?

smarsu fan
  • 11
  • 1

1 Answers1

0

You'd better use other frameworks other than OpenCV. OpenCV is extremely heavy for this kind of job. It's mainly focused on image processing.

Maybe you can use OpenImageIO, freeimage or other libs.

You can refer to these posts:

Reading an image file in C/C++

https://products.fileformat.com/image/cpp/openimageio

SolessChong
  • 3,370
  • 8
  • 40
  • 67