Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alwaysai/posture-corrector
/ functions
Functions
14 in github.com/alwaysai/posture-corrector
⨍
Functions
14
◇
Types & classes
1
↓ 2 callers
Method
check_head_drop
Checks whether a use has tilted their head downwards, chin towards chest (eyes are at ear level) :return: Boolean True if
posture.py:112
↓ 2 callers
Method
check_lean_forward
Checks whether an individual is leaning forward (head towards computer screen) :return: Boolean True if not leaning forwa
posture.py:84
↓ 2 callers
Method
check_slump
Checks whether a uses is slumped down in their chair (shoulders at eye level) :return: Boolean True if not slumped; False
posture.py:100
↓ 1 callers
Method
build_message
Builds a string with advice to the user on how to correct their posture :return: string The string containing specific ad
posture.py:43
↓ 1 callers
Method
correct_posture
Checks all current posture functions :return: Boolean True if all posture functions return True; False otherwise
posture.py:127
↓ 1 callers
Function
load_json
(filepath)
app.py:25
↓ 1 callers
Function
main
()
app.py:33
↓ 1 callers
Method
set_key_points
Updates the key_points dictionary used in posture calculations :param key_points: {} the dictionary to use for key_points
posture.py:19
Method
__init__
(self, scale=1, key_points={})
posture.py:14
Method
get_key_points
Returns the instance's current version of the key_points dictionary :return: {} the current key_points dictionary
posture.py:27
Method
get_message
Getter method to return the current message :return: string The current posture message
posture.py:59
Method
get_scale
Returns the current scale for the instance :return: int The scale being used by the instance for posture calculations
posture.py:76
Method
set_message
Setter to update the message manually if needed :param message: string The message to override the current message
posture.py:35
Method
set_scale
Sets the scale factor to use for the posture calculations :param scale: int The value to scale the measurements used in t
posture.py:67