Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. import cv2.cv as cv is absolutely valid and is favorable to your second variant (since with your second variant you wouldn't need to write cv.method() but just method() which might get confusing over time). BUT, really, I'd try to circumvent cv2.cv as much as possible and use the functionality of just the cv2 module (exist there modules at all which are only in cv but not in cv2?).

  2. I don't know, but python3 support will come with OpenCV 3.0 afaik.

  1. import cv2.cv as cv is absolutely valid and is favorable to your second variant (since with your second variant you wouldn't need to write cv.method() but just method() which might get confusing over time). BUT, really, I'd try to circumvent cv2.cv as much as possible and use the functionality of just the cv2 module (exist there modules at all which are only in cv but not in cv2?).

  2. I don't know, but python3 support will come with OpenCV 3.0 afaik.afaik. Maybe cv2.cv will vanish then, too.