Skip to content

Commit

Permalink
updated version to 2.44.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Aug 3, 2021
1 parent 4f15457 commit 85f9463
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Intel RealSense 2 support for the [Processing](https://processing.org/) framewor

**Intel RealSense for Procesing** is a port of the **[Intel RealSense](https://github.com/IntelRealSense/librealsense)** library for processing. With this library it is possible to use the Intel RealSense T200 / D400 / D500 camera series within processing. The idea is **not** to expose the full API into Processing, however a simple and convenient way to work with RealSense devices. For full API support switching over to the underlying [java wrapper](https://github.com/cansik/librealsense-java) is recommended.

Supported Intel RealSense Version: [2.40.0](https://github.com/IntelRealSense/librealsense/releases/tag/v2.40.0)
Supported Intel RealSense Version: [2.44.0](https://github.com/IntelRealSense/librealsense/releases/tag/v2.44.0)

#### Important ⚠️

Expand Down Expand Up @@ -50,7 +50,7 @@ repositories {
}
dependencies {
implementation 'com.github.cansik:realsense-processing:2.3.0'
implementation 'com.github.cansik:realsense-processing:2.4.0'
}
```

Expand Down Expand Up @@ -219,6 +219,24 @@ camera.addUnitsTransform();
camera.addZeroOrderInvalidationFilter();
```

#### Filter Options

To change the initial sensor options it is possible to get the filter block from the add method and use the methods provided there. Here an example on how to do use the threshold filter.

```processing
// include the processing package
import ch.bildspur.realsense.processing.*;
// in setup
RSThresholdFilter thresholdFilter = camera.addThresholdFilter();
// in draw
thresholdFilter.setMinDistance(5.0);
thresholdFilter.setMaxDistance(8.0);
```

Check out the [ControlThresholdFilter](examples/ControlThresholdFilter/ControlThresholdFilter.pde) example as well.

### Sensor Options
A RealSense camera usually contains multiple sensors, each with it's unique options and settings. Currently supported are only the `Depth` and `RGB` sensor. Here is an example on how to set the `Enable Auto Exposure` option on the RGB sensor.

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

group 'ch.bildspur'
version '2.3.1'
version '2.4.0'

sourceCompatibility = 1.8

def rsVersion = '2.40.0-0.3.0'
def rsVersion = '2.44.0-0.4.1'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ url=https://github.com/cansik/realsense-processing
sentence=Intel RealSense support for Processing
paragraph=Use the Intel RealSense (https://realsense.intel.com/) cameras together with Processing.
version=231000
prettyVersion=2.3.1
prettyVersion=2.4.0
minRevision=0
maxRevision=0
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void draw() {
// display pose data
fill(255, 255, 255);
textAlign(CENTER, CENTER);
text(pose.getRotation().getX(), width / 2, height / 2);
text(pose.getRotation()[0], width / 2, height / 2);
surface.setTitle("RealSense Processing - FPS: " + Math.round(frameRate));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void setup() {
println("Camera found!");
} else {
println("No camera available!");
exit();
System.exit(1);
}

camera.enableDepthStream();
Expand Down

0 comments on commit 85f9463

Please sign in to comment.