-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default driver fetch only one image frame
fixes #2
- Loading branch information
Showing
4 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
webcam-capture/src/example/java/com/github/sarxos/webcam/WebcamPanelExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package com.github.sarxos.webcam; | ||
|
||
import java.awt.Dimension; | ||
|
||
import javax.swing.JFrame; | ||
|
||
|
||
public class WebcamPanelExample { | ||
|
||
public static void main(String[] args) { | ||
|
||
WebcamPanel panel = new WebcamPanel(Webcam.getDefault()); | ||
JFrame jframe = new JFrame("Test webcam panel"); | ||
jframe.setPreferredSize(new Dimension(300, 200)); | ||
jframe.add(panel); | ||
jframe.pack(); | ||
jframe.setVisible(true); | ||
jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
panel.setFPS(5); | ||
|
||
JFrame window = new JFrame("Test webcam panel"); | ||
window.add(panel); | ||
window.pack(); | ||
window.setVisible(true); | ||
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters