Bechir-Mathlouthi Traffic-ROI-Monitor .cursorrules file for Python

{
    "settings": {
      "project_name": "Customizable_ROI_Tracking",
      "language": "Python",
      "frameworks": ["OpenCV", "YOLOvX"],
      "tools": ["Cursor Editor", "YOLO model weights"],
      "environment": "local"
    },
    "tasks": [
      {
        "name": "Setup Environment",
        "description": "Install required libraries and set up YOLOvX environment.",
        "steps": [
          "Install Python >= 3.7",
          "Install OpenCV (`pip install opencv-python`)",
          "Download and set up YOLOvX weights",
          "Test installation with a sample YOLO model"
        ],
        "dependencies": []
      },
      {
        "name": "Develop ROI Editor",
        "description": "Build a cursor-based editor for selecting and modifying ROIs.",
        "steps": [
          "Create a GUI window using OpenCV.",
          "Implement mouse event listeners to capture ROI selection and updates.",
          "Highlight the selected ROI dynamically on the video frame."
        ],
        "dependencies": ["Setup Environment"]
      },
      {
        "name": "Integrate YOLOvX",
        "description": "Integrate YOLOvX object detection into the system.",
        "steps": [
          "Load YOLOvX weights and configurations.",
          "Perform inference on the selected ROI.",
          "Optimize the pipeline to only process the ROI area."
        ],
        "dependencies": ["Setup Environment"]
      },
      {
        "name": "Optimize System Performance",
        "description": "Reduce computational overhead by focusing on the ROI.",
        "steps": [
          "Restrict frame analysis to the ROI.",
          "Benchmark speed improvements with and without ROI."
        ],
        "dependencies": ["Develop ROI Editor", "Integrate YOLOvX"]
      },
      {
        "name": "Design User Interface",
        "description": "Add a user-friendly interface for ROI adjustments.",
        "steps": [
          "Implement options for resizing and moving the ROI.",
          "Add hotkeys for quick ROI adjustments."
        ],
        "dependencies": ["Develop ROI Editor"]
      },
      {
        "name": "Test and Deploy",
        "description": "Test the system in real-world scenarios and package for deployment.",
        "steps": [
          "Run test cases for surveillance, traffic monitoring, and other use cases.",
          "Document findings and refine the system.",
          "Package the application for distribution."
        ],
        "dependencies": ["Optimize System Performance", "Design User Interface"]
      }
    ],
    "rules": {
      "on_task_completion": {
        "action": "notify",
        "message": "Task completed successfully. Proceed to the next step."
      },
      "on_error": {
        "action": "log",
        "message": "An error occurred. Check the logs for more details."
      }
    }
  }
  
python
rest-api

First Time Repository

Python

Languages:

Python: 13.1KB
Created: 12/6/2024
Updated: 12/6/2024

All Repositories (1)