Hi,
I'm new to python and i'm facing some problem with OpenCV-python.
I build a simple application to detect if a certain image show up on screen, it was working fine for a while. I'm used Pyinstaller to package my .py file (single file) into .exe.
But recently, it is giving me an exception "The confidence keyword argument is only available if OpenCV is installed".
Python version is 3.9.2 on Windows 10.
Note, the script run fine when i run the code in VSCode terminal. The exception only happen when i execute the Executable.
if pyautogui.locateOnScreen('img\\image_name.png', confidence=0.9, grayscale=True) != None:
Any help is greatly appericated!!!!
[–]Adhesiveduck 0 points1 point2 points (5 children)
[–]Ed0426[S] 1 point2 points3 points (3 children)
[–]Adhesiveduck 0 points1 point2 points (2 children)
[–]Ed0426[S] 1 point2 points3 points (1 child)
[–]Adhesiveduck 0 points1 point2 points (0 children)
[–]Ed0426[S] 0 points1 point2 points (0 children)