This is a Python project that uses OpenCV and YOLOv4 for object detection. It allows the user to select certain objects to be detected in real-time using the GUI buttons.
- Clone this repository to your local machine.
- Install the required packages by running
pip install -r requirements.txtin your command prompt or terminal. - Download the pre-trained YOLOv4-tiny model from the YOLO website and save it in the
dnn_modelfolder. - Download the YOLOv4-tiny configuration file from the YOLO website and save it in the
dnn_modelfolder. - Create a file named
classes.txtin thednn_modelfolder and write the names of the objects you want to detect in separate lines.
- Run the
main.pyfile. - Select the objects you want to detect by clicking on the GUI buttons.
- Press the
Esckey to exit the program.
Contributions are welcome! If you find any issues or have any suggestions, please open an issue or create a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.

