codetayyab/ai-pest-detection-backend ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple backend for an AI pest detection app.
I want a FastAPI service that can take an image or camera frame, run it through a pest detection model, and return the result in a clean JSON response with the detected pest, confidence, and any useful message. It should also have a basic route to check that the server is running, and if it makes sense, a way to capture from a camera and process that image too.
Please keep it easy to run locally and easy to deploy, since I want to use it as the backend for a pest detection product. Use the existing Python setup, organize the code cleanly, and make sure the model loading and prediction flow are wired up properly. If you need to, look up current docs online for FastAPI or anything related.
Are you gonna build this?
make sure you review the code using coderabbit