Skip to content

FastAPI application designed to receive HTTP requests from an ESP32-CAM every x seconds. The application stores the uploaded image files, which can be later used for real-time analysis and processing with AI.

License

Notifications You must be signed in to change notification settings

lschirripa/photospam-receiverAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

photospam-receiverAPI

FastAPI application designed to receive HTTP requests from an ESP32-CAM every x seconds. The application stores the uploaded image files, which can be later used for real-time analysis and processing with AI.

API Endpoints POST /upload Endpoint to upload an image file.

  • URL: /upload

  • Method: POST

  • Request Body: Raw image data

  • Response:

    • 200 OK: When the file is successfully uploaded.
    {
     "message": "File uploaded successfully to ./uploads/image.jpg"
    }
    • 400 Bad Request: When no image data is provided.
    {
     "detail": "No image data provided"
    }
    • 500 Internal Server Error: When an error occurs while saving the file.
    {
     "detail": "Internal Server Error"
    }

About

FastAPI application designed to receive HTTP requests from an ESP32-CAM every x seconds. The application stores the uploaded image files, which can be later used for real-time analysis and processing with AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages