@@ -52,13 +52,13 @@ You can change the exposure of the Nimbus 3D. By default, auto exposure with HD
52
52
53
53
``` python
54
54
# automatic exposure
55
- cli.setExposureMode(AUTO_HDR )
56
- cli.setExposureMode(AUTO )
55
+ cli.setExposureMode(NimbusClient. AUTO_HDR )
56
+ cli.setExposureMode(NimbusClient. AUTO )
57
57
cli.setAmplitude(1000 ) # <-- to change the desired amplitude (0 - ~5000)
58
58
59
59
# manual exposure
60
- cli.setExposureMode(MANUAL_HDR )
61
- cli.setExposureMode(MANUAL )
60
+ cli.setExposureMode(NimbusClient. MANUAL_HDR )
61
+ cli.setExposureMode(NimbusClient. MANUAL )
62
62
cli.setExposure(5000 ) # <-- to change the exposure time (0 - 65535)
63
63
```
64
64
@@ -95,6 +95,27 @@ rv = cli.setFramerate(65535)
95
95
assert rv== 0
96
96
```
97
97
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
+
98
119
# Authors
99
120
Markus Proeller
100
121
0 commit comments