Product Inspector AI is an open-source quality inspection system designed for production lines and manufacturing environments. Built with Streamlit and OpenCV, this application provides real-time product quality assessment, defect detection, and comprehensive reporting capabilities.
- Real-time Quality Inspection: Detect and analyze products on production lines using computer vision
- Defect Recognition: Identify product defects with customizable detection thresholds
- Product Management: Add, edit, and manage product information and inspection criteria
- Batch Processing: Organize inspections by batches for better traceability
- Comprehensive Reporting: Generate PDF and Excel reports with quality statistics
- Interactive Dashboard: View inspection metrics and performance analytics
- Customizable Settings: Adjust detection parameters to your specific requirements
# Clone the repository
git clone https://github.com/liveupx/QualityInspector.git
cd product-inspector-ai
# Install required dependencies
pip install -r requirements.txt
# Run the application
streamlit run app.py- Python 3.7+
- OpenCV
- Streamlit
- Pandas
- Matplotlib
- Plotly
- FPDF
The main screen provides a live view of the inspection process:
- Configure product information in the sidebar
- Adjust detection thresholds as needed
- Click "Start Inspection" to begin the quality assessment
- View real-time statistics of processed products
Use the Product Setup page to:
- Add new products with detailed information
- Configure inspection criteria (Standard, Strict, or Permissive)
- Manage existing products and their parameters
The dashboard provides analytical insights:
- View overall inspection statistics
- Analyze quality distribution and trends
- Compare performance across different batches
- Filter data by date ranges
Generate and export detailed reports:
- Create PDF reports with graphs and statistics
- Export Excel spreadsheets with raw inspection data
- Filter reports by time period or batch number
The system supports multiple camera sources:
- Local webcams
- IP cameras
- Video files (for testing)
- Demo mode with simulated products
You can integrate your own machine learning models by:
- Implementing the model in the
ProductDetectorclass - Adjusting the detection threshold based on your model's characteristics
- Customizing the visualization of detection results
The modular architecture allows for easy extensions:
- Add new quality metrics
- Implement different types of defect detection
- Connect to databases for persistent storage
- Integrate with production line control systems
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenCV for the computer vision capabilities
- Streamlit for the interactive web interface
- The open-source community for various libraries used in this project
LiveupX - @liveupx
