Camera
The camera of the computer you are using: watch it, take pictures, record videos, and send frames to running blocks.
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
| Setting | Default | What it does |
|---|---|---|
Resolutionresolution |
1280x720 | One of: 640x480, 1280x720, 1920x1080 |
Channel for the frames sent to blockschannel |
camera | |
Frames per second when sending livefps |
2 | From 0.2 to 10 |
Width of the frames sent (pixels)width |
640 | From 64 to 1920 |
Record sound with videosaudio |
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
3D viewThe project's 3D view: draws whatever the project gives it (scenes, 3D files, live positions, robots with any number of joints, several at once, fleets, rockets, vehicles), with the models, textures and sounds of the project's assets; live while a run goes on, then replays; numbers, events and controls on top.ChartLines, areas, steps, points, bars or a histogram, from a table or a live stream.ControlsButtons, sliders, switches, text boxes and boards of cells that send commands to the blocks of a running run.GaugesDials or large numbers with the latest values of a live stream, a table or metrics.HeatmapA grid of values as colours: a matrix from a file or the latest one of a live stream.ImagesA gallery of images from files, and live pictures from a stream.