google / project-gameface

Apache License 2.0
576 stars 83 forks source link

Is it feasible to compile it on Mac/Linux? #42

Open praveenkumarS7 opened 8 months ago

praveenkumarS7 commented 8 months ago

Currently, we encounter significant challenges when attempting to run it on Mac/Linux, as it is primarily built for Windows. We changed all the libraries used for windows. Changed the camera module to work on mac machine. But still facing issues while GUI rendering for mac. Please somebody help us on this

Cameramanage.py cv2.waitKey(1) & 0xFF ListCameras.py windows: cap = cv2.VideoCapture(cv2.CAP_DSHOW + i) Mac: cap = cv2.VideoCapture(0, cv2.CAP_AVFOUNDATION) comment the DSHOW check on the next line

Used libraries

Windows: import pydirectinput import win32api Mac: import pyautogui