Skip to content

Commit

Permalink
Updated readme file
Browse files Browse the repository at this point in the history
Signed-off-by: Ravichandran <[email protected]>
  • Loading branch information
srivatsanadi authored and srivats07 committed Jun 10, 2022
1 parent 2f6ca23 commit 969673f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/python/examples/first_frame/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ frameDataDetails = tof.FrameDataDetails()
status = frame.getDataDetails("depth", frameDataDetails)
print("frame.getDataDetails()", status)
print("depth frame details:", "width:", frameDataDetails.width, "height:", frameDataDetails.height, "type:", frameDataDetails.type)

image = np.array(frame.getData("depth"), copy=False)
print(image)
```

Displaying the received frame
```python
image = np.array(frame.getData("depth"), copy=False)

plt.figure()
plt.imshow(image, cmap = 'gray')
plt.colorbar()
Expand Down

0 comments on commit 969673f

Please sign in to comment.