Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This can only be solved by:

  • (Recommended) Find a different docker image, in which the CPU architecture requirement is lowered so that it is compatible with your computer.
  • (Also recommended) Learn to build the docker image yourself, which will also teach you how to compile the C++ portion of OpenCV on your computer.
  • Contacting the author of this docker image, to see if this author is willing to lower the CPU architecture requirement (not recommended, because the author has no obligation to you.)

To help diagnose, please run this command on your linux system, and paste the output here.

cat /proc/cpuinfo

Pay attention to the line of output that says flags : and list all of the labels here.

If your computer does not support some of the newer CPU architecture extensions, different C++ compiler flags are required when the C++ portion of the OpenCV library is compiled. This is true for Python users as well, because the source code that implements most OpenCV functionality are written in C++.

The C++ portion of OpenCV is configured and built using CMake. CMake simplifies configuration by letting users change configuration with a GUI. For example, one can point-and-click on the GUI to lower the CPU architecture level.

You can see the portion of CMake outputs from the detailed build logs from the docker image.