Detection code is for learning and reference purposes only! I will gradually update useful code and organize it into separate files. Feature descriptions for each code file are noted at the beginning of each file.
Tkinter with ttkthemes: Simple and built-in to Python, easy to use.
PyQt with QDarkStyle: Powerful, flexible, with many advanced features.
Kivy: Cross-platform application development, modern.
CustomTkinter: More modern compared to standard Tkinter.
- Install Python. Set environment variables to the Python installation directory and Python\Scripts
- Install pip or pip3 if not already installed:
python get-pip.py
Check pip version: pip --version
-
Syntax to install required packages (if needed):
pip install <package_name>orpip3 install <package_name> -
Run Build applications normally like Windows form application code: use
Ctrl + F5
-
Check Python installation
python3 --versionpip3 --version -
Install Homebrew if not already installed: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Python + Pip
brew install python -
Set environment variables => Open:
nano ~/.zshrc=> Add: export PATH="/usr/local/bin:/usr/local/opt/python/libexec/bin:$PATH" -
Update changes
source ~/.zshrc -
Check Pip
pip3 --version -
Proceed to install required packages. Example:
pip3 install ttkthemes pyqt5 qdarkstyle kivy customtkinterpip3 install pywin32 -
Build Python using Terminal command in the project directory:
python3 file_name.pyorpython file_name.pyif using an older version.
To display unicode fonts on OpenCV, use the Pillow library.
pip install mediapipe opencv-python pillow or pip3 install mediapipe opencv-python pillow
Error "No module named 'PyQt5'" requires installing PyQt5.
pip install PyQt5 qdarkstyle or pip3 install PyQt5 qdarkstyle