Java Code Examples for org.bytedeco.javacv.FrameGrabber.Exception#printStackTrace()
The following examples show how to use
org.bytedeco.javacv.FrameGrabber.Exception#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CameraVideoPanel.java From oim-fx with MIT License | 5 votes |
public boolean startVideo() { try { grabber.setImageWidth(captureWidth); grabber.setImageHeight(captureHeight); grabber.start(); start = true; } catch (Exception e) { e.printStackTrace(); start = false; } return start; }
Example 2
Source File: CameraVideoPanel.java From oim-fx with MIT License | 5 votes |
public void stopVideo() { try { start = false; grabber.stop(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
Example 3
Source File: CameraVideo.java From oim-fx with MIT License | 5 votes |
public boolean startVideo() { try { grabber.setImageWidth(captureWidth); grabber.setImageHeight(captureHeight); grabber.start(); start = true; } catch (Exception e) { e.printStackTrace(); start = false; camera = false; } return start; }
Example 4
Source File: CameraVideo.java From oim-fx with MIT License | 5 votes |
public void stopVideo() { try { start = false; grabber.stop(); } catch (Exception e) { e.printStackTrace(); } }
Example 5
Source File: VidImageSequence.java From GIFKR with GNU Lesser General Public License v3.0 | 5 votes |
@Override public BufferedImage getFrame(int gifFrame) { BufferedImage frame = null; try { g.setFrameNumber(gifFrame+1); frame = new Java2DFrameConverter().convert(g.grabImage()); } catch (Exception e) { e.printStackTrace(); } return frame == null? new BufferedImage(width, height, BufferedImage.TYPE_3BYTE_BGR) : frame; }