Skip to content

Commit

Permalink
peopledetect.py sample added (TODO: use builtin svm data instead of p…
Browse files Browse the repository at this point in the history
…eople_hog.txt)

some old cv api use cleaning
  • Loading branch information
Alexander Mordvintsev committed Aug 12, 2011
1 parent 9fba5e8 commit d7a2081
Show file tree
Hide file tree
Showing 5 changed files with 865 additions and 2 deletions.
1 change: 1 addition & 0 deletions samples/python2/distrans.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import cv2
import cv2.cv as cv
from common import make_cmap

help_message = '''USAGE: distrans.py [<image>]
Expand Down
2 changes: 1 addition & 1 deletion samples/python2/facedetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def draw_rects(img, rects, color):

while True:
ret, img = cam.read()
gray = cv2.cvtColor(img, cv.CV_BGR2GRAY)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray = cv2.equalizeHist(gray)

t = clock()
Expand Down
1 change: 0 additions & 1 deletion samples/python2/lk_track.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import cv2
import cv2.cv as cv
import video
from common import anorm2, draw_str
from time import clock
Expand Down
Loading

0 comments on commit d7a2081

Please sign in to comment.