Skip to content

duongnv0499/flask_image_processing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Processing Flask Server

Requirements

  • Python 3.7

Run the server

python app.py

Server runs on port 5000

Usage

Go to http://127.0.0.1:5000 on your browser and upload the image. See result below.

API

Get image's grayscale value

  • 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"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.7%
  • Python 46.3%