added COLOR_... enumeration to imgproc.hpp and EVENT_... enumeration to highgui.hpp

This commit is contained in:
Vadim Pisarevsky
2011-07-18 13:05:34 +00:00
parent 86105b8727
commit 16ba62dcd5
16 changed files with 187 additions and 35 deletions

View File

@@ -1,6 +1,5 @@
import numpy as np
import cv2
import cv2.cv as cv
def detect(img, cascade):
rects = cascade.detectMultiScale(img, scaleFactor=1.1, minNeighbors=5, minSize=(30, 30))
@@ -10,7 +9,7 @@ def detect(img, cascade):
return rects
def detect_turned(img, cascade):
img = cv2.cvtColor(img, cv.CV_BGR2GRAY)
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img = cv2.equalizeHist(img)
img_t = cv2.transpose(img)