Skip to content

[UploadingImageFeature] #1340

@talkhanz

Description

@talkhanz

Displaying numpy images directly on the page. As far as I know, and I am newbie, so bear with me on this one but I am having the struggle of my life trying to upload a numpy image array object on the web with Dash.

As you can see below, I have my app layout where I am uploading an image from.
app_layout

I then apply some off the shelf filters through apply-filter function and its an numpy array but I can't seem to pass it back on to the webpage.

apply-filter_snap

This function below parses the content and its adapted from the Dash Docs
parse_content
There seems to be no easy way for me to do this using the docs. I would like to suggest an easy utility function that does this rendering for us. It seems a bit of a hassle for a newbie to bump in to these problems. Nonetheless, not taking anything away from the developers. Great Job Guys!

While I am at it, I would love to ask for one more favor, how would it possible to extract regions of images (need to annotate histology images for a project and I would love to be able to get the extracted region in a variable or something in the classical numpy array format so I can explore the world of classical operations and not have to worry about web stuff

Here is a snapshot of the canvas with dummy annotation:
get_extr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions