teguhadip34/project_HG ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple web app for sorting waste with the camera.

I want to open it in Chrome, allow the webcam, take a snapshot, detect the main object in the frame, draw the bounding boxes, then classify the cropped object into a waste type. Use the existing YOLO model for detection and the TensorFlow.js model for the material prediction, then map that result into a broad category like recyclable waste or hazardous waste. If the confidence is too low, show Unclassified.

Please make it feel like a clean demo page, with a live camera preview, a capture button, and a clear result area that explains what was found. Keep it running locally on localhost so the camera permissions work properly, and serve the page from the backend instead of opening the HTML file directly. If you need to check current setup details or library docs, look them up online. Also make sure the app handles the existing model files as they are, without changing the trained label order.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab