Upload Image Button
Closed this issue · 0 comments
maurapintor commented
Summary of the request
Add the “upload image” functionality. Implement a new route that instead of showing the dropdown list of images to select, allows the user to select an image from the computer, and returns the classification results.
The button should allow the user to upload a custom image and classify it. The image should be displayed in the output interface along with the classification scores.
The old functionalities should be preserved, this is an additional feature.
Difficulty:
Subtasks
- Copy the route and HTML file of the classification API.
- Add the new route to the routes init file.
- Add "upload" button in the frontend (HTML).
- Implement the API for storing the image.
- Pass the image to the classification API.
Plan for the implementation
Implement using the Flask APIs and modifying a copy of the available classification API. No particular additional library is required.
Useful links: