This React application enables real-time object detection using either the device's camera or a randomly selected video from a prepared list.
- Object Detection: Utilizes TensorFlow.js, a machine learning library for JavaScript, to perform object detection.
- ml5 Model: Implements ml5.js, which offers pre-trained models that can process various types of inputs (images, video, audio, text) and produce outputs such as labels and confidence scores.(based on TensorFlow.js)
- Common Objects in Context (COCO) Dataset: The model used in this app is trained on the COCO dataset, a commonly used benchmark for object detection in images.
- Camera Usage: Ensure your browser allows access to the camera when using the camera option.
- Video Selection: Toggle between camera source and a random video using the provided toggle button.
- Start/Stop Detection: Press the "Start" button to initiate object detection. Press "Stop" to halt detection.
- React
- ml5.js
- COCO Dataset
To run the app locally:
- Clone this repository.
- Navigate to the project directory.
- Install dependencies with
npm install
. - Start the development server with
npm start
.
This project is hosted here