You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-27
Original file line number
Diff line number
Diff line change
@@ -10,32 +10,21 @@ Because JRPiCam works by invoking the `raspistill` software, it is important tha
10
10
instructions can be found [here](https://www.raspberrypi.org/documentation/configuration/camera.md).
11
11
12
12
# Using JRPiCam
13
-
To use JRPiCam in your project, just download and unzip the most recent [release](https://github.com/Hopding/JRPiCam/releases/tag/v1.0.1), then add the `jrpicam-1.0.1.jar` file to your project's build path.
13
+
To use JRPiCam in your project, just download and unzip the most recent [release](https://github.com/Hopding/JRPiCam/releases/tag/v1.1.0), then add the `jrpicam-1.1.0.jar` file to your project's build path.
14
14
15
15
The core component of JRPiCam is the `RPiCamera` class, which can be instantiated as follows:
16
16
```java
17
-
//Create a Camera that saves images to the Pi's Pictures directory.
17
+
//Create a Camera that saves images to the Pi's Pictures directory.
.setExposure(Exposure.AUTO) // Set Camera's exposure.
25
+
.setTimeout(2) // Set Camera's timeout.
26
+
.setAddRawBayer(true); // Add Raw Bayer data to image files created by Camera.
27
+
// Sets all Camera options to their default settings, overriding any changes previously made.
39
28
piCamera.setToDefaults();
40
29
```
41
30
Once the `RPiCamera` has been created, and the desired options have been adjusted, an image may be captured from the RPi Camera
@@ -65,26 +54,26 @@ The Javadoc for the project is hosted online [here](http://hopding.com/docs/jrpi
65
54
# Examples
66
55
The releases contain a number of example JARs (pre-built JARs of the classes in the `src/main/java/com/hopding/jrpicam/examples` directory) that can be executed on the RPi's terminal:
67
56
68
-
*`demo-view-1.0.1.jar`
69
-
*`shoot-buffered-still-1.0.1.jar`
70
-
*`shoot-still-1.0.1.jar`
71
-
*`shoot-timelapse-1.0.1.jar`
57
+
*`demo-view-1.1.0.jar`
58
+
*`shoot-buffered-still-1.1.0.jar`
59
+
*`shoot-still-1.1.0.jar`
60
+
*`shoot-timelapse-1.1.0.jar`
72
61
73
-
`demo-view-1.0.1.jar` runs a demo gui program that illustrates some functions of JRPiCam. The rest of the examples show how to do things like take a still image, save it, load it into a buffer, and take a series of images.
62
+
`demo-view-1.1.0.jar` runs a demo gui program that illustrates some functions of JRPiCam. The rest of the examples show how to do things like take a still image, save it, load it into a buffer, and take a series of images.
74
63
75
-
To run them, just download and unzip the most recent [release](https://github.com/Hopding/JRPiCam/releases/tag/v1.0.1), open it in a terminal, and run the following:
64
+
To run them, just download and unzip the most recent [release](https://github.com/Hopding/JRPiCam/releases/tag/v1.1.0), open it in a terminal, and run the following:
76
65
```
77
66
$ java -jar examples/[jar name]
78
67
```
79
68
for example:
80
69
```
81
-
$ java -jar examples/demo-view-1.0.1.jar
70
+
$ java -jar examples/demo-view-1.1.0.jar
82
71
```
83
72
84
73
# Building the Project
85
74
JRPiCam is structured as a Gradle project. It contains tasks to build the library JAR, the example JARs, and the Javadoc. To build the project, you must first clone or download the project repository, and open a terminal therein. Then, assuming you're using Windows' Powershell or Unix's Bash:
86
75
87
-
* To build the main library JAR (`jrpicam-1.0.1.jar`):
76
+
* To build the main library JAR (`jrpicam-1.1.0.jar`):
0 commit comments