mdholbrook / bme590final

Image processing project for BME590 - Medical Software Design
MIT License
1 stars 1 forks source link

Processing feedback for GUI #54

Closed mdholbrook closed 5 years ago

mdholbrook commented 5 years ago

It would be nice to have some feedback on the GUI side for what's happening (generally) on the server. Let me know when you find out if the POST request is blocking or not. Then we can start thinking about how to let the user know when their files have been downloaded.

mdholbrook commented 5 years ago

I added a box in the GUI to display image information and error messages. The server should send the following information:

I've coded these values to be stored as the following:

https://github.com/mdholbrook/bme590final/blob/e9ef485adfefbe5826961b8f8f6533c9b4e2c86f/GUI/main_window.py#L269-L272

abg28 commented 5 years ago

I've passed this metadata to the "df" dictionary. When I run the GUI I get a KeyError for "show2", however. I think this is from the most recent code you added here.

mdholbrook commented 5 years ago

I'll take a look at it and upload a fix. You've merged your changes?

abg28 commented 5 years ago

Yup changes should be merged

mdholbrook commented 5 years ago

I've fixed the "show2" error and added some better error handling in #63.

mdholbrook commented 5 years ago

@abg28 , I've found a way to periodically ping the server status. We can create a separate class which will query the server for a separate status update as seen here: https://riptutorial.com/pyqt5/example/29500/basic-pyqt-progress-bar

I will code this up for the GUI. The one question that remains is if the server can respond while the images are being processed.

EDIT: even if the server does not respond while it is working, this may give enough information work work will (e.i. no update -> not ready)

abg28 commented 5 years ago

It appears to me that the GUI stalls while the server runs through its endpoints, preventing any kind of overloading. For example, try selecting foosball.jpg from the TestImages folder, and processing it with the "Histogram" option (this takes extra time because the histogram method must flatten color images before they can be processed). I could also be interpreting the stalling completely wrong.

mdholbrook commented 5 years ago

I keep getting this error: "A key is missing from the user data dictionary."

I'm starting to think that the data isn't being sent. I can't get print statements to work on the server.