- Python 3.7
python app.py
Server runs on port 5000
Go to http://127.0.0.1:5000
on your browser and upload the image. See result below.
- URL
/img
- Method
POST
- Data params
Required
img=[File]
- Success Response
{
"success": true,
"data": {
"total": "Sum of all pixel in grayscale",
"average_value": "The grayscale average value",
"pixel_quantity": "Quantity of pixel"
}
}
- Fail Response
{
"success": false,
"message": "The message"
}