Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : need help with debugging

$
0
0

Also the camera feed flickers constantly
It may help to use a buffer.
  1. PImage videoBuffer;

  2. void draw(){
  3.       if(video.available()){
  4.             video.read();
  5.             videoBuffer = video;
  6.       }
  7.       if(videoBuffer != null){
  8.             image(videoBuffer, 0, 0);
  9.       }
  10. }



Viewing all articles
Browse latest Browse all 1768

Trending Articles