# vion-camera — ViON plugins

Source: https://vionvision.tech/en/plugins/cameras/vion-camera

Умная камера VION: находится в сети сама, добавляется в VION одним нажатием и отдаёт основной и второй поток. Людей, транспорт и животных находит сама камера — сервер VION её кадры не анализирует.

- Package: @vionvision/camera-ui-vion-camera
- Group: Cameras and recording
- Version: 0.11.0
- Requires: ViON 2.3.4 or newer
- https://npm.vionvision.tech/-/web/detail/@vionvision/camera-ui-vion-camera
- https://github.com/atva0408-create/Vion-plagin/tree/main/camera-ui-vion-camera#readme

## Technical description

The plugin of the VION smart camera. The camera announces itself in the network («_vion-camera._tcp»), so it appears in **Cameras → Found**; one press adds it. Adding pairs the camera with this VION: it gives VION a token and the password of its RTSP streams, and answers no other VION until it is removed here or reset with its button.

- **Streams.** The main stream (H.265 on the camera boards that encode it) for the recording and the full view, the sub stream (H.264, small) for the views of many cameras and the phone.
- **Not found by itself?** Type its address in the plugin settings, e.g. `192.168.1.60`.
- **Objects.** The camera finds people, vehicles and animals itself; they come to VION as the camera's object sensor, with their boxes, so VION's server does not analyse this camera's frames. The confidence settings of the camera in VION apply.
- **Updated from 0.1.0?** A camera added with 0.1.0 does not get the camera's objects by itself: in the camera's settings (Plugins), choose VION Camera as its object detector. Until then VION only confirms its own boxes with the camera's and makes no events of them. A camera added with 0.2.0 gets it when it is added.
- **VION Link.** A camera bound to this VION server by its code (entered in VION Cloud) comes to Cameras → Found from the server, even from another network; adding it pairs nothing, the server reaches it. Its streams, objects and health go through the server, and only through it: never by its network address, even while the server cannot reach it. Removed from VION, it stays bound and is offered again in Found.
- **Settings.** The camera's own settings are in its card, Plugins → VION Camera: «Information» (how VION reaches it, its firmware, ports, health, the address of its web interface), «Image and streams» (its name, the streams, the picture), «Text on the picture» (the date and time, its name), «Camera’s AI» (on or off, what it finds, how often it looks; its confidence thresholds are VION's own, put on it), «Access» (sessions, the open RTSP), «Allowed addresses», «Time», «Ports» and «Network» (a change of the ports or the network waits for its confirmation in a step) and «Reset» (letting the camera go, after a step), read from the camera each time and written to it at Save. Its users, two-factor sign-in and certificate are set in its web interface.
- **Zones.** VION's zones of the camera are put on it at each change: a privacy zone that hides from VION's AI too as a mask (the rectangle around it, black or a mosaic — «VION’s zones» in its card), an object zone and a line as the camera AI's. Those VION's AI looks at, and motion and alert zones, stay VION's; the camera's own stay too. «Information» tells what came of it.
- **Health.** VION checks every camera every 30 s and says once when one stops answering or loses its picture, and once when it is back.

## Development

`npm ci && npm test` runs the plugin against a stand-in camera held to the camera's contract, `docs/openapi.yaml` of the camera's repository (`spec/contract.ts` reads `../docs/openapi.yaml`): run it in the repository, not in a copy of this folder alone.
