Skip to content
Discussion options

You must be logged in to vote

tl;dr

Yes, because rendering in livebook with kino is basically encoding each frame as a jpeg/png (depends on your settings) image and pass it to the browser, where it gets decoded and displayed. Therefore, it is expected to be slow at the moment.

As for Evision.Wx.imshow, perhaps you can do something like

def show_video(cap) do
  case Evision.VideoCapture.read(cap) do
    %Evision.Mat{}=frame ->
      # as along as you're using the same window title, 
      # the frame will be plotted in the same window
      Evision.Wx.imshow("window title", frame)
      show_video(cap)
    _ ->
      # video has ended or an error occurred
      :no_more_frames
  end
end

More information

And to achieve …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tusqasi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants