Skip to content

Commit

Permalink
Use convert() instead of getBufferedImage() as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 13, 2015
1 parent 77ec9a2 commit 3eafb77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/**
* UNSTABLE, EXPERIMENTALL STUFF !!!
*
*
* @author bfiryn
*/
public class JavaCvDevice implements WebcamDevice {
Expand Down Expand Up @@ -90,7 +90,7 @@ public BufferedImage getImage() {
throw new WebcamException("OpenCV image frame is null");
}

return new Java2DFrameConverter().getBufferedImage(frame);
return new Java2DFrameConverter().convert(frame);

}

Expand Down

0 comments on commit 3eafb77

Please sign in to comment.