Skip to content

Commit

Permalink
Add getter usage for temperature of sensor 、 map id and timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas authored and Lucas committed Dec 31, 2020
1 parent 47bde2c commit 0e6b088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wrappers/python/exampes/ExtractRawData/ExtractRawData.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ def processRawFrame(self, depthCamera, frame, type):

print("is a raw frame and frame size is %d." %rawFrame.data.size())
rawData=np.array(rawFrame.data,dtype='uint8')
print("rawData",len(rawData))
print("rawData",len(rawData)," id " ,rawFrame.id," timestamp",rawFrame.timestamp)
tSensorIndex = 1843596-396 + 117
temperature_of_sensor = rawData[tSensorIndex]-40

print("temperature_of_sensor",temperature_of_sensor)
index = 0
# for j in range(0,self.pixelCount,2):
# # print("i",i)
Expand Down

0 comments on commit 0e6b088

Please sign in to comment.