Esacode

Docs / Blocks / Visualizers

Camera

The camera of the computer you are using: watch it, take pictures, record videos, and send frames to running blocks.

A view in the browser (JavaScript) Visualizers Version 1.0 Code you can open and adapt

How it works

Press Start camera (the browser asks to allow it). Picture saves a frame and Record a video (offered to download or keep in a dataset). While a run goes on, Send picture and Send live hand frames to the run's blocks on the channel named below: in Python, for m in ctx.messages("camera") gives m["data"]["image"] as a JPEG data: URL with its width and height.

For a camera plugged into a worker, use the Camera capture block instead.

Settings

SettingDefaultWhat it does
Resolution
resolution
1280x720
One of: 640x480, 1280x720, 1920x1080
Channel for the frames sent to blocks
channel
camera
Frames per second when sending live
fps
2
From 0.2 to 10
Width of the frames sent (pixels)
width
640
From 64 to 1920
Record sound with videos
audio
off

Where it runs

In the browser, on the flow's View page and in the run's results, in a sandbox without network access. It needs no worker.

More in Visualizers