This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Internal Server Error | |
The server encountered an internal error and was unable to complete your request. | |
Please contact the server administrator if this error reappears multiple times and include the technical details below in your report. | |
More details can be found in the server log. | |
Technical details | |
Remote Address: 75.89.227.223 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import cv | |
class FaceDetect(): | |
def __init__(self): | |
cv.NamedWindow ("CamShiftDemo", 1) | |
device = 0 | |
self.capture = cv.CaptureFromCAM(device) | |
capture_size = (320,200) | |
cv.SetCaptureProperty(self.capture, cv.CV_CAP_PROP_FRAME_WIDTH, capture_size[0]) |