こんばんは、この三連休は、子どもたちとプラレール三昧でした。次男もプレールのレイアウトを走る電車に釘付けになってます。kjunichiです。
Pythonのみの問題な気がするが
OpenCV Error: Assertion failed ((scn == 3 || scn == 4) && (depth == CV_8U || depth == CV_32F)) in cvtColor, file /tmp/opencv-rzOv/opencv-2.4.6.1/modules/imgproc/src/color.cpp, line 3541
brew updateや、brew doctorしても改善せず。 brew infoの結果
brew info opencv opencv: stable 2.4.6.1 http://opencv.org/ /usr/local/Cellar/opencv/2.4.1 (184 files, 46M) /usr/local/Cellar/opencv/2.4.5 (216 files, 42M) Built from source /usr/local/Cellar/opencv/2.4.6.1 (215 files, 39M) * Built from source From: https://github.com/homebrew/homebrew-science/commits/master/opencv.rb ==> Dependencies Build: cmake ✔, pkg-config ✔ Required: libpng ✔ Optional: eigen ✔, libtiff ✔, jasper ✔, tbb ✔, qt ✔, ffmpeg ✔ ==> Options --32-bit Build 32-bit only --with-eigen Build with eigen support --with-ffmpeg Build with ffmpeg support --with-jasper Build with jasper support --with-libtiff Build with libtiff support --with-qt Build the Qt4 backend to HighGUI --with-tbb Enable parallel code in OpenCV using Intel TBB --without-opencl Disable gpu code in OpenCV using OpenCL
関係ないがT100TAでもWebCamがPythonでOpenCVが動かないんだよなぁ
解決した!
詳しくはこちらの記事で