资 源 简 介
This is a wrapper that combines the original CVtypes from Gary Bishop and the latest library ctypes_opencv from Minh-Tri Pham into one. This library should work with notations used in both libraries with the exception that in CVtypes we don"t need to access pointers(yay!) ie: image.width instead of image[0].width. Other advantages are
Complete interface to OpenCV"s CXCORE, CV, HighGUI components.
Pythonic interface. OpenCV"s objects are safely deleted when not used. No need to invoke cvRelease...().
Pure Python package. Neither C/C++ compiler nor OpenCV"s source code is needed.
Support for both versions 1.0 and 1.1pre1 of OpenCV.
Cross platform, running on any OS that OpenCV can be installed, including: Windows, Linux, and Mac OS X.
Example
Python code for demonstrating K-Means Clustering
```
from cvtypes import *
MAX_CLUSTERS=5
if name