Update vision service Go examples for NamedImage parameter#5031
Open
shannonbradshaw wants to merge 1 commit intomainfrom
Open
Update vision service Go examples for NamedImage parameter#5031shannonbradshaw wants to merge 1 commit intomainfrom
shannonbradshaw wants to merge 1 commit intomainfrom
Conversation
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
❌ Deploy Preview for viam-docs failed. Why did it fail? →
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Source changes
Detections()andClassifications()now take*camera.NamedImageinstead ofimage.ImageDocs changes
docs/vision/object-detection/detect.md: Updated Go code example to pass&images[0](NamedImage pointer) instead of decoding toimage.Imagefirstdocs/vision/classify.md: Same fix for Classifications examplestatic/include/services/apis/generated/vision.md: Updated Go parameter type fromimage.Imageto*camera.NamedImageand fixed both GetDetections and GetClassifications code examplesHow I found these
Detections(,Classifications(,image.Imageacross all .md files found 3 affected files with Go code examplesGenerated by daily docs change agent
Generated by Claude Code