Skip to content

Warning system for incorrect sitting posture with machine learning - ระบบแจ้งเตือนลักษณะการนั่งทำงานที่ไม่ถูกต้องด้วยระบบการเรียนรู้ของเครื่อง จัดทำขึ้นเป็นส่วนหนึ่งในวิชา Project1-01076311

Notifications You must be signed in to change notification settings

astrrr/Right-posture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning system for incorrect sitting posture with machine learning

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

ระบบแจ้งเตือนลักษณะการนั่งทำงานที่ไม่ถูกต้องด้วยระบบการเรียนรู้ของเครื่อง

Remove ".ipynb_checkpoints"

rm -rf `find -type d -name .ipynb_checkpoints`

Install lib

pip install -r requirements.txt

High DPI

Qt Widgets is an old technology and does not have a good support for high DPI settings, making these images look distorted when your system has DPI applied above 100%. You can minimize this problem using a workaround by applying this code below in "main.py" just below the import of the Qt modules.

# ADJUST QT FONT DPI FOR HIGHT SCALE
# ///////////////////////////////////////////////////////////////
from modules import *
from widgets import *
os.environ["QT_FONT_DPI"] = "96"

Running

Inside your preferred terminal run the commands below depending on your system, remembering before installing Python 3.9> and PySide6 "pip install PySide6".

Windows:

python main.py

MacOS and Linux:

python3 main.py

Compiling

Windows:

python setup.py build

Project Files And Folders

main.py: application initialization file.

main.ui: Qt Designer project.

resouces.qrc: Qt Designer resoucers, add here your resources using Qt Designer. Use version 6 >

setup.py: cx-Freeze setup to compile your application (configured for Windows).

themes/: add here your themes (.qss).

modules/: module for running PyDracula GUI.

modules/app_funtions.py: add your application's functions here. Up modules/app_settings.py: global variables to configure user interface.

modules/resources_rc.py: "resource.qrc" file compiled for python using the command: pyside6-rcc resources.qrc -o resources_rc.py.

modules/ui_functions.py: add here only functions related to the user interface / GUI.

modules/ui_main.py: file related to the user interface exported by Qt Designer. You can compile it manually using the command: pyside6-uic main.ui> ui_main.py . After expoting in .py and change the line "import resources_rc" to "from. Resoucers_rc import *" to use as a module.

images/: put all your images and icons here before converting to Python (resources_re.py) pyside6-rcc resources.qrc -o resources_rc.py.

About

Warning system for incorrect sitting posture with machine learning - ระบบแจ้งเตือนลักษณะการนั่งทำงานที่ไม่ถูกต้องด้วยระบบการเรียนรู้ของเครื่อง จัดทำขึ้นเป็นส่วนหนึ่งในวิชา Project1-01076311

Resources

Stars

Watchers

Forks

Packages