09 มกราคม 2553

ความแตกต่างการใช้ OpenCV2.0 ใน Python

ความแตกต่างการใช้ OpenCV2.0 ใน Python
ไม่น่าเชื่อว่าแค่ข้อความแค่นี้อาจทำให้ debug โปรแกรม ไม่ผ่านแบบหาสาเหตุไม่ได้ไม่เจอซักที

Starting with release 2.0, OpenCV has a new Python interface. (The previous Python interface is described in SwigPythonInterface.) Some highlights of the new bindings:

  • single import of all of OpenCV using "import cv"
  • OpenCV functions no longer have the "cv" prefix
  • Simple types like CvRect and CvScalar use Python tuples

  • Sharing of Image storage, so image transport between OpenCV and other systems (e.g. numpy and ROS) is very efficient
  • Full documentation for the Python functions in http://opencv.willowgarage.com/documentation/python/index.html

ไม่มีความคิดเห็น: