unica-isde/flask-classification-2022-E

Image transformation

Closed this issue · 0 comments

Summary of the request

Create a handler that allows picking an image and set parameters for an image transformation (https://pillow.readthedocs.io/en/stable/reference/ImageEnhance.html). The user should be allowed to specify the color, brightness, contrast, and sharpness to apply to the original image. The transformed image should appear in the output interface.
This is a new feature. Old functionalities must be preserved.
Difficulty:
image

Subtasks

  • Copy the classification API interface.
  • Create a form for selecting the transformation.
  • Implement the API that applies the transformation to the selected image.
  • Implement the visualization of results.

Plan for the implementation

Modify the code such that the new interface shows the dropdown menu to select the image, the submit button, and a NEW field that allows specifying values for the transformation to apply. The values for the transformation should have default values, but should be editable by the user. Use Flask forms to create the interface for selecting the transformation. Use correct field types for the inputs.
It is not required to use queues. The API can be implemented as showing the form if a GET request is issued, and the results if the POST is validated.

Useful links: