How do I install opencv using pip?

后端 未结 18 730
情歌与酒
情歌与酒 2020-12-03 00:19

I need to install cv2 for a script that has been written for me. I tried pip install cv2 and pip install open_cv and got the same pro

18条回答
  •  情深已故
    2020-12-03 00:58

    In case you use aarch64 platform with ARM64 cpu - and/or docker

    On a development board on ARM64, no python-opencv version were found at all

    version: NONE. I've had to build from source. This allowed to include CUDA support.

    In my case it was already available on the board but it wasn't found on the development environment.

    If compiling from source is out of reach, there are Dockers

    Of course compiling will take some time (few hours on ARM core), but it is worthy process to know as most open source tools can be built this way in case of issues.

提交回复
热议问题