Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jotschi committed Mar 6, 2023
1 parent a50d6b6 commit 9801740
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ try (VideoFile video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {

## Usage - Webcam

Opening a v4l webcam.
```java
Video4j.init();
try (VideoStream video = Videos.open(0)) {
Expand Down Expand Up @@ -117,7 +118,7 @@ int tileSize = 128;
int rows = 3;
int cols = 3;
PreviewGenerator gen = new PreviewGenerator(tileSize, rows, cols);
try (Video video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {
try (VideoFile video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {
gen.save(video, new File("target/output.jpg"));
}
```
Expand All @@ -126,7 +127,7 @@ try (Video video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {

```java
PreviewGenerator gen = new PreviewGenerator(128, 3, 3);
try (Video video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {
try (VideoFile video = Videos.open(BIG_BUCK_BUNNY2_PATH)) {
ImageUtils.show(gen.preview(video));
}
```
Expand Down

0 comments on commit 9801740

Please sign in to comment.