A real-time object detection system built with Next.js 14, TensorFlow.js, and the COCO-SSD model. This application uses your device's webcam to detect objects and potential security threats in real-time.
- Real-time Object Detection: Utilizes TensorFlow.js and COCO-SSD model for accurate object detection
- Live Webcam Processing: Processes webcam feed in real-time with minimal latency
- Visual Feedback: Draws bounding boxes and labels around detected objects
- Responsive Design: Works seamlessly across desktop and mobile devices
- Modern UI: Clean and intuitive interface built with Tailwind CSS
- Next.js 14
- TensorFlow.js
- COCO-SSD Model
- Tailwind CSS
- Framer Motion
- React Webcam
Before you begin, ensure you have the following installed:
- Node.js 18.17 or later
- A modern web browser with webcam support
- npm or yarn package manager
-
Clone the repository:
git clone https://github.com/LiveWithCodeAnkit
-
Navigate to the project directory:
cd thief-detection-alarm
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser
- Allow webcam access when prompted by your browser
- The system will automatically begin detecting objects once the AI model is loaded
- Detected objects will be highlighted with bounding boxes and labeled
- The detection status is indicated by the camera icon in the top-left corner
The detection sensitivity can be adjusted in the ObjectDetection
component:
const detectedObjects = await net.detect(
webcamRef.current.video,
undefined,
0.6 // Confidence threshold (0.0 to 1.0)
);
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details.
- TensorFlow.js team for the amazing machine learning library
- COCO-SSD model creators
- Next.js team for the fantastic framework
- All contributors who help improve this project
Project Link: https://github.com/LiveWithCodeAnkit/thief-detection-alarm
Made with ❤️ by LiveWithCodeAnkit