Skip to content

Commit b7578f9

Browse files
authored
Update README.md
1 parent ddce500 commit b7578f9

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ You can change the exposure of the Nimbus 3D. By default, auto exposure with HD
5252

5353
```python
5454
# automatic exposure
55-
cli.setExposureMode(AUTO_HDR)
56-
cli.setExposureMode(AUTO)
55+
cli.setExposureMode(NimbusClient.AUTO_HDR)
56+
cli.setExposureMode(NimbusClient.AUTO)
5757
cli.setAmplitude(1000) #<-- to change the desired amplitude (0 - ~5000)
5858

5959
# manual exposure
60-
cli.setExposureMode(MANUAL_HDR)
61-
cli.setExposureMode(MANUAL)
60+
cli.setExposureMode(NimbusClient.MANUAL_HDR)
61+
cli.setExposureMode(NimbusClient.MANUAL)
6262
cli.setExposure(5000) #<-- to change the exposure time (0 - 65535)
6363
```
6464

@@ -95,6 +95,27 @@ rv = cli.setFramerate(65535)
9595
assert rv==0
9696
```
9797

98+
# Enable raw data
99+
100+
To enable raw data streaming, you can use the following code snippet.
101+
```python
102+
from nimbusPython import NimbusClient
103+
import time
104+
cli = NimbusClient.NimbusClient("192.168.0.69")
105+
cli.setExposureMode(NimbusClient.MANUAL)
106+
cli.setExposure(5000) #<-- to change the exposure time (0 - 65535)
107+
cli.enaRawMode(True)
108+
time.sleep(1) #<-- there might be still some 3D images in the pipeline
109+
header, img = cli.getImage()
110+
imgType = int(header[NimbusClient.HeaderImgType])
111+
if imgType == NimbusClient.NimbusImageRaw:
112+
print ("raw images received")
113+
else:
114+
print ("something went wrong...")
115+
#-> repeat image readout (cli.getImage())
116+
```
117+
118+
98119
# Authors
99120
Markus Proeller
100121

0 commit comments

Comments
 (0)