![]() However, I'm really struggling to understand how this can be done. Tp.Following on from my earlier question, my goal is to detect DTMF tones in a WAV file from C#. ![]() SmileCascade = cv2.CascadeClassifier('smiles.xml')Ĭap = VideoStream(usePiCamera=args > 0).start()įramex = cap.read() # Capture frame-by-frameįrame = imutils.resize(framex, width=400) Help="whether or not the Raspberry Pi camera should be used")įaceCascade = cv2.CascadeClassifier('faces.xml') I need to multiprocess the frame's mainloop so that the face detector can actually check whether or not a face is in view.įrom chocolate_returner import Choco_returnerįrom given_resetter import Given_resetterĪp.add_argument("-p", "-picamera", type=int, default=-1, Right now I tried setting it up with a separate face detection loop dedicated just to closing the frame (the frames class has a facefound() function which just calls a stroy()). I also need the Tkinter frame to close when a face is detected. The other classes initialized in the code below are for updating a database and playing a DTMF tone when a smile is recognized, my main issue is that the mainloop from the Tkinter frame won't allow any other processes to continue. ![]() ![]() I need this frame to close when openCV detects a face, after which openCV opens a window that shows the camera feed and starts tracking smiles. So basically I have an app that has a splash screen Tkinter frame. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |