Author: Aviraj Saha
- Dependencies
- License
- How to Contribute
- Working Principle of Functions
- Time and Space Complexity
- Environment Setup
- Code of Conduct
This project is licensed under the MIT License - see the LICENSE.md file for details.
pass
We welcome contributions! Please follow our contribution guidelines.
This function initializes and configures the MediaPipe pose model for detecting human poses.
Time Complexity: O(1) Space Complexity: O(1)
This function captures video from the camera specified by the camera_index
.
Time Complexity: O(1) Space Complexity: O(1)
This function processes a video frame, detecting and visualizing human poses.
Time Complexity: Depends on the image size and pose detection model. Space Complexity: Depends on the image size and pose detection model.
This function displays posture status on the provided image.
Time Complexity: O(1) Space Complexity: O(1)
This function continuously processes video frames for posture detection and visualization.
Time Complexity: Depends on the frame rate and image size. Space Complexity: Depends on the frame rate and image size.
Here, we summarize the time and space complexities of each function.
Function | Time Complexity | Space Complexity |
---|---|---|
initialize_pose_model |
O(1) | O(1) |
capture_video |
O(1) | O(1) |
process_frame |
Depends on image size and model | Depends on image size and model |
display_posture_status |
O(1) | O(1) |
process_video |
Depends on frame rate and image size | Depends on frame rate and image size |
To set up the environment for running this program, follow these steps:
- Clone the repository:
git clone https://github.com/avirsaha/sitfix-ai.git
- Install Python (>= 3.10) from python.org.
- Install dependencies:
pip install -r requirements.txt
Please read and follow our Code of Conduct to ensure a respectful and inclusive community.