I want to use OpenCV on my Mac on Python 3.

Asked 2 years ago, Updated 2 years ago, 91 views

As per the title, I would like to use OpenCV on Python 3.
However, OpenCV 3.0.0 is already installed, but
/usr/local/Cellar/opencv3/3.0.0/lib
There is only a "Python 2.7" folder in .

I think I didn't have "--with-Python3" on when I installed OpenCV 3.0.0
Up until now, I used it in C++, so I can use it without any problems, but when I used it in Python 3, there was no folder to pass Path through, so I'm in trouble.
brew install opencv3 -- with-python3
"When I try to do it again, I get scolded for ""OpenCV3 already installed."""

What should I do?
Please help me.

python macos opencv

2022-09-30 21:20

1 Answers

Let's reinstall

brew update
brew reinstall opencv3 --HEAD --with-python3

As of October 18, 2016, macOS Sierra will fail without --HEAD.Probably QT retired and moved to AVFoundation.


2022-09-30 21:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.