Skip to content

DOCS-3540: Add camera samples #502

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

Merged
merged 2 commits into from
Mar 31, 2025
Merged

DOCS-3540: Add camera samples #502

merged 2 commits into from
Mar 31, 2025

Conversation

npentrel
Copy link
Contributor

No description provided.

@npentrel npentrel requested a review from a team as a code owner March 25, 2025 14:09
@npentrel npentrel requested review from njooma and stuqdog March 25, 2025 14:09
* ```ts
* const camera = new VIAM.CameraClient(machine, 'my_camera');
* const mimeType = 'image/jpeg';
* const image = await camera.renderFrame(mimeType);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returns a blob. It would be good if we had a better sample but I'm unsure how to turn the blob into something usable. Do you happen to have a sample?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not, but you can probably display a blog by setting it on an html img tag (untested)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shall leave it to the reader for now. It seems working with blobs is a common enough thing

@npentrel npentrel merged commit 00f769b into main Mar 31, 2025
3 checks passed
@npentrel npentrel deleted the DOCS-3540 branch March 31, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants