kino icon indicating copy to clipboard operation
kino copied to clipboard

Better image support

Open josevalim opened this issue 3 years ago • 3 comments

There are some ideas flying around:

  1. [x] Support Nx.Tensor in Kino.Image by using a custom content type that is loaded into a canvas
  2. [ ] Have a canvas input
  3. [x] Have a camera input
  4. [x] Have a specific image tensor upload, where the image is loaded into a canvas to be converted into pixels (and potentially resized)

josevalim avatar Jun 03 '22 12:06 josevalim

Hi @josevalim, I'd like to add support for camera input if currently no one is working on it. :)

cocoa-xu avatar Dec 18 '22 00:12 cocoa-xu

Yes, please go ahead. Let’s start with camera image first, so there is an explicit click button to take a picture?

josevalim avatar Dec 18 '22 07:12 josevalim

Yeah, I'm thinking something like this:

Screenshot 2022-12-18 at 09 27 32

And, of course, we can probably also make it optional here, something like Kino.Input.image("Image", camera: false).

Linked PR: https://github.com/livebook-dev/livebook/pull/1595

cocoa-xu avatar Dec 18 '22 09:12 cocoa-xu