Skip to content

Commit

Permalink
Keypoints check fixes (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
treideme authored Jul 18, 2024
1 parent 2b2d050 commit d1b8dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def acquire_images(device, stream, nframes=None):
print(f"BBoxes: {len(bboxes)} data: {bboxes[0]}")

matches = decode_chunk(device=device, buffer=pvbuffer, chunk='FeatureMatches')
if matches is not None:
if matches is not None and len(matches) > 0:
print(f"Matches: {len(matches.points)} data: ({matches.points[0].x}, {matches.points[0].y})")

pointcloud = decode_chunk(device=device, buffer=pvbuffer, chunk='SparsePointCloud')
Expand Down

0 comments on commit d1b8dae

Please sign in to comment.