Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[demo] Show image for the original data when looking at refund/reward data for an image classifier #102

Open
juharris opened this issue Oct 22, 2020 · 1 comment
Labels
demo Relates to the code to demonstrate the framework enhancement New feature or request Priority: Low

Comments

@juharris
Copy link
Member

I started to do this but the image wouldn't display. I was doing stuff like:

img = document.getElementById('input-image');

canvas = document.createElement('canvas');
context = canvas.getContext('2d');
canvas.width = img.width;
canvas.height = img.height;
context.drawImage(img, 0, 0 );

img2 = document.createElement("img");
img2.src = canvas.toDataURL();
document.body.appendChild(img2);

I was trying to save canvas.toDataURL() to the database of original data as text and then load it into an <img> tag. It wouldn't display.

@juharris juharris added enhancement New feature or request demo Relates to the code to demonstrate the framework Priority: Low labels Oct 22, 2020
@dem0nsl4yer
Copy link

Could be an issue with how database is modifying/formatting the data text. Possible to try saving images in a different format like binary blob?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo Relates to the code to demonstrate the framework enhancement New feature or request Priority: Low
Projects
None yet
Development

No branches or pull requests

2 participants