Skip to content

Commit

Permalink
Fix get_properties code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
andf-viam authored Jun 28, 2024
1 parent 37c135d commit a644937
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/viam/services/vision/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,12 @@ async def get_properties(
state whether the service implements the classification, detection, and/or 3D object segmentation methods.
::
# Grab the detector you configured on your machine
my_detector = VisionClient.from_robot(robot, "my_detector")
properties = await my_detector.get_properties()
properties.detections_supported # returns True
properties.classifications_supported # returns False
# Grab the detector you configured on your machine
my_detector = VisionClient.from_robot(robot, "my_detector")
properties = await my_detector.get_properties()
properties.detections_supported # returns True
properties.classifications_supported # returns False
Returns:
Properties: The properties of the vision service
Expand Down

0 comments on commit a644937

Please sign in to comment.