![](/img/trans.png)
[英]Why am I getting open cv2 error when I use detectMultiScale in python
[英]Why am I getting cv2 error in raspbianOS and not raspberrypi shell
我最近在raspberrypi上安裝並編譯了openCV。
現在,如果我在Raspian OS中使用命令import cv2
(在python shell或IDE中),則會收到錯誤消息
沒有找到名為cv2的模塊,但是在raspberrypi shell中可以使用相同的命令。
我該如何解決?
請在執行以下命令后嘗試運行您的代碼。
python -m pip安裝opencv-contrib-python
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.