Object and Sub-Object Detection System Prerequisites Python 3.8 or later Install dependencies: pip install -r requirements.txt Setup Clone the repository: git clone <repo-link> Create a virtual environment: python -m venv cv_env Activate the environment: Windows: cv_env\Scripts\activate Linux/Mac: source cv_env/bin/activate Install requirements: pip install -r requirements.txt Usage Place your video in the video_input folder. Run the system: python main.py. Output JSON and images will be saved in the output folder. Dependencies torch opencv-python yolov5 numpy matplotlib