LoginSignup
0
0

More than 3 years have passed since last update.

Open CVの実行でエラーが出る場合の対策

Posted at

Open CVの実行の際

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in,,,,

というエラーが出て実行できない事があります。

この場合、QTというライブラリとの競合の可能性があります。
エラーが出て実行できない場合以下の対策を行ってください。

Open CVのアンインストール

pip uninstall opencv-python

ヘッドレス版(GUI)を含まないOpen CVのインストール

pip install opencv-python-headless

以上で実行できるはずです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0