0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ubuntu18.04でprocessingのvideoライブラリーが使えない

Posted at

ubuntu18.04のprocessing3で、videoライブラリーが使えませんでした。

いろいろ調べると、ライブラリを↓に変えればOKとあったので入れ替えてみると、、

今度は、NullPointerExeptionが出てうまくいきませんでした。

もう少し調べてみると、下記のようにcameraデバイスの名前を入れてあげれば解決しました

video.pde

  import processing.video.*;
  Capture video;

  setup(){
   video=new Capture(this,width,height,"camera_device_name")
  }

cameraデバイスの名前は↓で取得できます

camera_list.pde

  import processing.video.*;
  Capture video;

  setup(){
   println(Capture.list());
  }

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?