I'm developing a 2D game using Pygame. The movement of the player is controlled using hand gestures. When I run the game normally, everything works fine. I converted this python project to executable using pyinstaller. When I run the created .exe file, the game runs well only that the camera is not turned on and hand gesture mode is not working. I also tried placing the "opencv_videoio_ffmpeg452_64.dll" file in the root directory and create exe file and run. But the results were the same as said above.
I have also used multiprocessing for running the hand gesture mode.
Can someone help me with this? Thanks in advance!