/ml5-object-recognition

This is an object detection tool made with ML5 COCO-SSD object detection model from Tensor flow . It detects the object creates a box around the object and displaces both the name and confidence score

Primary LanguageJavaScript

Object Recognition with ML5 COCO-SSD

This repository contains code for object recognition using the ML5 COCO-SSD object detection model. The ML5 COCO-SSD model is a pre-trained deep learning model that can detect and classify objects in images and videos.

Usage

To use this code, you need to have a modern web browser that supports JavaScript and access to the internet. Follow these steps to get started:

  1. Clone this repository to your local machine using the following command:
git clone https://github.com/klvncj/ml5-object-recognition.git
  1. Open the index.html file in a web browser.

  2. The ML5 COCO-SSD model will process the file and display the detected objects along with their respective confidence scores.

Customization

If you want to use a different pre-trained object detection model or modify the code to suit your specific requirements, you can do so by following these steps:

  1. Download the desired pre-trained model from the ML5 Model Zoo or train your own model using TensorFlow.

  2. Replace the ML5 COCO-SSD model with your chosen model in the script.js file. Make sure to update the model loading code and the object detection logic accordingly.

  3. Customize the HTML and CSS files to modify the user interface and styling according to your preference.

  4. Test your changes by running the code and verifying the object detection results.

Contributing

Contributions to this repository are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Make sure to follow the existing code style and conventions.

When contributing, please provide detailed information about the changes you made and the rationale behind them. It's also helpful to include relevant examples or screenshots to demonstrate the impact of your changes.

License

This project is licensed under the MIT License. You are free to use, modify, and distribute the code for both commercial and non-commercial purposes.

However, please note that the ML5 COCO-SSD object detection model used in this project may have its own licensing restrictions. Refer to the official documentation of the ML5 model for more information.

Acknowledgments

This project utilizes the ML5 COCO-SSD object detection model, which is made available by the ml5.js project. We would like to express our gratitude to the ml5.js team and the contributors for providing this valuable resource.