Python2 (opencv2) with Homebrew
Python 2
brew install python
brew install opencv
python
>>> import cv2
Python3 (opencv3) with Homebrew and PIP
Python3
brew install python3
brew uninstall opencv3
brew install opencv3 --without-python --with-python3
echo /usr/local/opt/opencv3/lib/python3.6/site-packages >> /usr/local/lib/python3.6/site-packages/opencv3.pth
python3
>>> import cv2
Refer to this
Install dlib (only for Python3)
dlib is very useful for face detection machine learning, but it is hard to install on mac osx with python. compile issue and compile issue2
I got some script from this, but still not working for me.
Using PIP3 to install dlib for python3
Install boost for python3 but not for python2
brew install boost-python --with-python3 --without-python
pip3 install dlib
python3
>>> import dlib
Reference
macOS: Install OpenCV 3 and Python 3.5
Faster video file FPS with cv2.VideoCapture and OpenCV
opencv3: –with-python3 doesn’t work
課程鏈結: 這裡 學習鏈結: Week 1-2 Week 3 Week4 Week5 Mini Project (Gossip Protocol) 課程內容: 這裡先簡單的介紹整系列的課程內容,希望能讓大家了解這個課程想做什麼. 這整堂課主要是圍繞著 Cloud Computing 經常會使用到的技術與相關的概念. 整堂課其實只有一個程式語言作業: 使用 C++ 寫 Gossip Protocol 雖然課程裡面程式語言的作業不多,但是整體上的內容還算不少. 除了有談到一些雲端技術的基本概念: Map Reduce Multicasting and Gossip Protocol P2P Protocol and System K/V DB, NOSQL, and Cassandra (畢竟都談了 Gossip) Consensus Algorithm - Paxos, FLP Proof 其實課程內容很有料,也可以學到很多的東西. 前提: Snapshots Global Snapshot Global Snapshot = Global State =Individual state + communication channel 時間不同步的時候所造成 Global Snapshot 會失敗的原因 時間不正確 無法抓到溝通的狀態 任何造成 Global Snapshot 變動的原因: Process send/receive message Process move one step 以一個範例來解釋演算法 基本定義: There are no failures and all messages arrive intact and only once The communication channels are unidirectional and FIFO ordered There is a communication path between any two processes in the system Any process may initiate the snapshot algorithm The snapshot algorithm does not interfere with the normal execution of the processes Each process in the system records its local state and the state of its...