OpenCV-Python

12-27 1,019 views

OpenCV-Python

OpenCV-Python

Installing OpenCV from prebuilt binaries

  1. Below Python packages are to be downloaded and installed to their default locations
  1. Install all packages into their default locations. Python will be installed to C:/Python27/
  2. After installation, open Python IDLE. Enter import numpy and make sure Numpy is working fine.
  3. Goto opencv/build/python/2.7 folder.
  4. Copy cv2.pyd to C:/Python27/lib/site-packeges.
  5. Open Python IDLE and type following codes in Python terminal.
>>> import cv2
>>> print cv2.__version__

If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully.

Python 乱码解决

''.decode(sys.getfilesystemencoding())

阅读全文

python hideconsole

def hideConcole(): import ctypes kernel32 = ctypes.WinDLL('kernel32') user32 = ctypes.WinDLL('user32') SW_HIDE = 0 hWnd = k...

阅读全文

pysqlite or sqlite3 must be installed

peewee pysqlite or sqlite3 must be installed download and install sqlite3 sqlite3-source tar xf sqlite-autoconf-3210000.tar.gz cd sqlite-autoconf-...

阅读全文

欢迎留言