write a multi-threaded program in opencv-contrib-python==4.1.1.26 with python 3.6 to count number of fingers in one thread and detect voice input as event using speechRecognition library in pyhton in another thread so that fps of webcam is not affected by simultaneous operations. So that if voice input is “capture” the webcam should remove background using background subtraction (cv2.createBackgroundSubtractorMOG2) and detect only hand in real-time and then track the hand if the voice input is “track”.
Expert Answer
Answer to write a multi-threaded program in opencv-contrib-python==4.1.1.26 with python 3.6 to count number of fingers in one thr…