-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS-3196: Update vision docs for camera interface update #4717
Conversation
sguequierre
commented
Jan 15, 2025
- use DecodeImageFromCamera instead of Stream/Next
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
services/vision/vision.go
Outdated
// img, release, err := camStream.Next(context.Background()) | ||
// defer release() | ||
// // Get an image from the camera decoded as an image.Image | ||
// img, err = camera.DecodeImageFromCamera(context.Background(), utils.MimeTypeJPEG, nil, myCam) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are utils included by default or do we need to add that the user needs to import this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming you have run this code and it works.