livebook-dev / kino

Client-driven interactive widgets for Livebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better image support

josevalim opened this issue · comments

There are some ideas flying around:

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

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

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

commented

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: livebook-dev/livebook#1595