Skip to content

Commit 113b913

Browse files
committed
Revert "Update mlmodel.md (viamrobotics#3838)"
This reverts commit e461d07.
1 parent fc9b8ba commit 113b913

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/operate/reference/services/vision/mlmodel.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -484,16 +484,14 @@ If you would like to test your detector or classifier with existing images, load
484484

485485
```python {class="line-numbers linkable-line-numbers"}
486486
from viam.services.vision import VisionClient
487-
from viam.media.utils.pil import pil_to_viam_image
488487
from PIL import Image
489488

490489
robot = await connect()
491490
# Grab Viam's vision service for the detector
492491
my_detector = VisionClient.from_robot(robot, "my_detector")
493492

494493
# Load an image
495-
pil_img = Image.open('test-image.png')
496-
img = pil_to_viam_image(pil_img)
494+
img = Image.open('test-image.png')
497495

498496
# Apply the detector to the image
499497
detections_from_image = await my_detector.get_detections(img)

0 commit comments

Comments
 (0)