open CV python code example
Example 1: install opencv python
pip install opencv-python
pip install opencv-contrib-python
Example 2: install opencv
pip install opencv-python
Example 3: open applications by python
dir = 'C:\\myprogram.exe'
import os
os.startfile(dir)
os.system(dir)
import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
Example 4: install opencv
sudo pip3 install opencv-contrib-python