This repository contains a web-based object detection application that uses TensorFlow.js and pre-trained models to detect objects in images and video streams from webcams.
object-detection-app/
āāā public/ # Static files
ā āāā index.html # HTML entry point
ā āāā favicon.ico # App favicon
ā āāā models/ # Pre-trained model files (git-ignored)
ā
āāā src/ # Source code
ā āāā components/ # React components
ā ā āāā App.js # Main App component
ā ā āāā DetectionView.js # Detection visualization component
ā ā āāā ImageUploader.js # Image upload component
ā ā āāā ModelSelector.js # Model selection component
ā ā āāā WebcamCapture.js # Webcam component
ā ā āāā ResultsPanel.js # Detection results display component
ā ā
ā āāā services/ # Helper services
ā ā āāā detectionService.js # Object detection logic
ā ā āāā modelLoader.js # Model loading utilities
ā ā āāā drawingUtils.js # Canvas drawing utilities
ā ā
ā āāā utils/ # Utility functions
ā ā āāā constants.js # App constants and configs
ā ā
ā āāā index.js # JS entry point
ā āāā styles.css # Global styles
ā
āāā docs/ # Documentation
ā āāā demo-screenshot.png # Demo screenshot
ā āāā model-info.md # Model information docs
ā
āāā .gitignore # Git ignore file
āāā tailwind.config.js # Tailwind CSS configuration
āāā package.json # Project dependencies
āāā package-lock.json # Dependency lock file (generated automatically)
āāā README.md # This readme file
āāā LICENSE # Project license
Clone the repository:
git clone https://github.com/Assem-ElQersh/Object-Detection-App.git
cd Object-Detection-App
Install dependencies:
npm install
Start the development server:
npm start
Open http://localhost:3000 in your browser.
The application currently supports the following pre-trained models:
Upload an Image
Use Webcam
Change Model
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.