Skip to content

Update vision service Go examples for NamedImage parameter#5031

Open
shannonbradshaw wants to merge 1 commit intomainfrom
claude/vision-namedimage-go-examples
Open

Update vision service Go examples for NamedImage parameter#5031
shannonbradshaw wants to merge 1 commit intomainfrom
claude/vision-namedimage-go-examples

Conversation

@shannonbradshaw
Copy link
Copy Markdown
Collaborator

Source changes

Docs changes

  • docs/vision/object-detection/detect.md: Updated Go code example to pass &images[0] (NamedImage pointer) instead of decoding to image.Image first
  • docs/vision/classify.md: Same fix for Classifications example
  • static/include/services/apis/generated/vision.md: Updated Go parameter type from image.Image to *camera.NamedImage and fixed both GetDetections and GetClassifications code examples

How I found these

  • Xref lookup: service-api-xref.md vision service entries
  • Grep matches: Detections(, Classifications(, image.Image across all .md files found 3 affected files with Go code examples

Generated by daily docs change agent


Generated by Claude Code

The Go SDK vision service Detections() and Classifications() methods
now take *camera.NamedImage instead of image.Image (RDK #5970).
Update parameter types and code examples to pass NamedImage directly
from camera.Images() instead of decoding to image.Image first.

https://claude.ai/code/session_01TSNKkBQQNhAQePpENjFUYq
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

Deploy Preview for viam-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 25bebc4
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/69f1cca875c5b70008e85180

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants