Adding a Camera
Connect a camera so that rules can analyze its video. Cameras are added from the camera condition panel.
Before you begin: connect the IP camera to the same network as the controller. The person using the app can be anywhere.
- In the rule, click + Add condition and select AI Camera.
- Create a new camera in the camera field.
- Select the connection method (camera source) and enter the details listed below.
| Camera Source | Input |
|---|---|
| CSI/USB | Select from the cameras connected directly to the controller. This covers Raspberry Pi camera modules and USB webcams. |
| ONVIF | Search the network and select the camera. If it is not found, enter its IP address. |
| RTSP | The stream address, plus a username and password if the camera requires them. The rtsp:// prefix can be omitted. |
Check the result: if the camera picture does not appear after you start the rule, the controller cannot reach the camera. Check the camera's power, network, address, and password.
Camera settings: name, orientation, region of interest
Camera settings open from the gear icon on the camera panel. They are available while stopped; while running, the same spot shows the fullscreen button.
| Camera Name | Used everywhere the camera is referenced. Name it after the installation location. |
| Camera Source | Connection method and address. |
| Orientation | Rotation by 90, 180, or 270 degrees, horizontal/vertical flips, and combinations. Use it when the camera is mounted at an angle. |
| Region of Interest (ROI) | Named areas defined on the frame, drawn as rectangles or polygons. |
A region of interest crops the frame given to the AI before analysis. Analysis becomes faster and accuracy improves significantly for small subjects. A detection zone filters the results, so that only detections inside it are counted.
Use a region of interest to feed one part of a machine to a classifier; use a detection zone to count only what passes through a doorway.