PTPMMNM-KHMT18-01-NHOM-2

namp12

A surface defect detection web application pairing a PHP and MySQL portal with a Python FastAPI AI service.

PHPCreated

What is namp12/PTPMMNM-KHMT18-01-NHOM-2?

Surface Defect Detection System is an MIT-licensed quality-control web application, tagged at v1.0.0, that combines a PHP web interface, a MySQL database, and a Python FastAPI inference backend. It enables inspectors to upload material images and review automated defect classifications alongside visual overlays.

The Python service runs OpenCV and YOLOv8 models trained on the NEU Surface Defect Database covering six defect categories: crazing, inclusion, patches, pitted surface, rolled-in scale, and scratches. If optional yolov8n weights are absent, the system automatically falls back to an OpenCV baseline detector. Inside the PHP portal, operators can compare original and annotated images side by side, override labels manually with logged reasons, retry pending inspections when the AI service was offline, and export filtered CSV reports.

Documented setup steps target Windows with XAMPP, requiring PHP 8.0 or newer, Python 3.10 or newer, and MySQL 8.0 or MariaDB 10.4 or newer.

Before you startThe README says

Runs on
Windows (tested with PowerShell, batch scripts, and XAMPP)
Needs
PHP 8.0+, Python 3.10+, MySQL 8.0 or MariaDB 10.4+, and optional yolov8n weights
How you get it
Clone tag v1.0.0 from GitHub and install Python requirements locally
Not yet
Without best.pt weights it uses OpenCV Baseline; tested workflow targets Windows XAMPP
README language
Vietnamese

Facts from GitHub (updated Dec 1, 2026) and the project's README. License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.