{"id":24626418,"url":"https://github.com/protheeuz/yolov11-flask","last_synced_at":"2026-05-20T09:08:48.773Z","repository":{"id":248145679,"uuid":"827888578","full_name":"protheeuz/YOLOv11-Flask","owner":"protheeuz","description":"Object Detection Web App using YOLOv11 and Flask. Supports RTSP Streams and Video Uploads. A study case for a Fall Detection System for the Elderly.","archived":false,"fork":false,"pushed_at":"2025-02-19T12:42:22.000Z","size":65160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T13:39:07.916Z","etag":null,"topics":["cctv-detection","cctv-monitoring","cctv-surveillance","flask","object-detection","realtime","rtsp","yolov10","yolov8"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/protheeuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T15:43:40.000Z","updated_at":"2025-02-19T12:42:26.000Z","dependencies_parsed_at":"2025-02-19T13:42:57.500Z","dependency_job_id":null,"html_url":"https://github.com/protheeuz/YOLOv11-Flask","commit_stats":null,"previous_names":["protheeuz/prima-feedmill","protheeuz/yolov11-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protheeuz%2FYOLOv11-Flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protheeuz%2FYOLOv11-Flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protheeuz%2FYOLOv11-Flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protheeuz%2FYOLOv11-Flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protheeuz","download_url":"https://codeload.github.com/protheeuz/YOLOv11-Flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244525622,"owners_count":20466548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cctv-detection","cctv-monitoring","cctv-surveillance","flask","object-detection","realtime","rtsp","yolov10","yolov8"],"created_at":"2025-01-25T04:48:42.124Z","updated_at":"2026-05-20T09:08:48.767Z","avatar_url":"https://github.com/protheeuz.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## YOLOv11 - Flask\nObject Detection Web App using YOLOv11 and Flask. Supports RTSP Streams and Video Uploads. A study case for a Fall Detection System for the Elderly.\n----------------------------------------------------------------\n\n## Features\n**1. User Authentication:**\n+ Secure login and registration functionality using Flask-Login.\n+ Supports session management for user access.\n\n**2. Object Detection:**\n+ Utilitizes YOLOv11 for *real-time object detection*.\n+ Allows video uploads for processing.\n+ Provides RTSP stream integration for live detection.\n\n**3. File Management:**\n+ Uploaded videos and detected frames are stored in a structured directory.\n+ Automatically cleanup of old detection files to maintain storage efficiency.\n\n**4. Real-Time Notifications:**\n+ Displays the count of new logins since the current day for authenticated users.\n\n**5. Cross-Origin Resource Sharing (CORS):**\n+ Configured to allow specific resources to be accessed from external domains.\n\n## Installation\n**1. Clone the repository:**\n```git clone https://github.com/protheeuz/YOLOv11-Flask.git```\n\n**2. Install dependencies:**\n```pip install -r requirements.txt```\n\n**3. Create and configure a .env file:**\n+ Define environment variables such as database credentials, Flask secret key, and other required settings.\n\n**4. Initialize the database:**\n+ Execute the necessary SQL scripts or ORM migrations to set up the database schema.\n\n**5. Run the application:**\n```python app.py```\n\n**6. Access the web app:**\n+ Open your browser and navigate to ``http://localhost:PORT``.\n\n----------------------------------------------------------------\n\n## Directory Structure\n```\n.\n├── config.py            # Configuration for Flask and other services\n├── database.py          # Database connection and teardown handlers\n├── detection.py         # Cleanup and detection-specific logic\n├── models.py            # Database models and user-related operations\n├── views/\n│   ├── auth.py          # Routes for authentication\n│   ├── main.py          # Main application routes\n├── static/\n│   ├── uploads/         # Uploaded videos and detection files\n├── templates/           # HTML templates for the Flask app\n├── main.py              # Entry point for the Flask app\n├── requirements.txt     # Python dependencies\n├── auth_bp.py           # Authentication logic and routes\n├── additional_logic.py  # Auxiliary functions and custom features\n└── rtsp_handler.py      # RTSP streaming and fall detection logic\n```\n\n----------------------------------------------------------------\n\n## Configuration\n+ UPLOAD_FOLDER: Path to the directory where uloaded files are stored.\n+ DETECTION_IMAGES_FOLDER: Path to the directory for detection result images.\n+ PUBLIC_URL: Publicly accessible URL for the application.\n+ ALLOWED_EXTENSIONS: Set of allowed file extensions for upload.\n+ CONFIDENCE_THRESHOLD: Confidence threshold for object detection labels.\n\n----------------------------------------------------------------\n## Cleanup Task\nA background thread is implemented to periodically clean up old detection files. The task runs every 30 seconds to ensure storage is managed efficiently.\n\n----------------------------------------------------------------\n## Usage\n**1. Login:**\n+ Create an account or log in using your credentials.\n\n**2. Upload Video:**\n+ Navigate to the upload page and upload a video file.\n\n**3. Real-Time Detection:**\n+ Monitor object detection output directly on the application.\n\n**4. RTSP Stream Monitoring:**\n+ Add RTSP stream URLs for live monitoring and fall detection.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotheeuz%2Fyolov11-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotheeuz%2Fyolov11-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotheeuz%2Fyolov11-flask/lists"}