Use built-in AI video analysis
CCAI is also available as an independent product. See the CCAI product site for standalone deployment, API integration, and Windows/Linux downloads.
CCNVR packages include the ccai analysis service. Fresh installs enable it by default. Existing installs keep their saved setting.
You can turn it off under Settings → AI video analysis. Only channels with enabled rules are analyzed.
The service detects people with YOLO26 and reports region-intrusion events. CCNVR stores those events and alarms, saves snapshots, and triggers event recording according to the channel's recording plan.
Region intrusion is tracked per object in the engine. Every track and event type keeps its own incident, so no target is hidden inside another target's alarm. The activity window is used only to decide which tracks are currently present.
Stranger detection follows the same incident model inside CCNVR. Face results stay attached to a stable person track, and multiple unknown people active at the same time are grouped into one ongoing stranger alarm. The alarm ends at the last real activity time after the track-lost timeout and incident cutoff window. Evidence snapshots continue to be saved at the configured interval and can be reviewed together in alarm details.
In Settings → Face management, drop a face photo onto the page to create a profile named after the file. In Add face, you can also choose or drop a photo and edit the name before saving. Edit a profile to enroll another photo or view its current avatar. The list shows the avatar after enrollment. Open Settings → AI video analysis → Diagnostics to check engine status and resource usage. In Alarms, select AI as the source to review detection results.
Before enabling
- Add an RTSP, RTMP, GB28181, or ONVIF channel and confirm live view works.
- Local analysis uses RTSP when distribution is enabled and HTTP-FLV otherwise. A custom analysis URL takes priority.
- Open Settings → AI video analysis. Users need the AI view/write permissions assigned by an administrator.
Enable analysis
- Select
auto,cpu, orgpu. - Keep the default 5 active FPS and 1 idle FPS initially.
- Keep the maximum channel count within the capacity of the host.
- Enable the service and save.
- Select Edit on a channel, enable the intrusion rule, and adjust the normalized polygon and cooldown. Normal targets are confirmed across two hits; a high-confidence target alerts on its first hit.
auto uses CUDA when a compatible NVIDIA runtime is available and otherwise falls back
to CPU. gpu requires CUDA to initialize successfully.
Decode and CPU options
The engine decodes continuously and emits 5 analysis frames per second. Adjacent-frame motion covering 0.5% of the image wakes inference immediately for six seconds. Idle person inference remains at 1 FPS. Keyframe-only decoding is no longer supported.
Windows uses FFmpeg D3D11VA hardware decoding when available. Linux uses VAAPI. Both fall
back to software decoding automatically. HardwareDecode=off disables this path, and
InferenceThreads limits the shared ONNX Runtime CPU session.
InferenceDynamicBatch=true enables measured same-priority batching only when the model
manifest declares a dynamic batch dimension; InferenceBatchWaitMs caps the collection wait.
SigLIP 2 image and text embeddings run natively in the CCAI C++ process and do not require Python.
Use a lower-resolution analysis URL from the upstream system when decode cost is high. CCAI itself accepts exactly one analysis URL.
NVIDIA GPU runtime
The base package contains CPU inference. For NVIDIA GPU inference, download the matching
CUDA Runtime Pack from the official download page and merge its bin/ directory into
<CCNVR installation>/ai/bin/ while CCNVR is stopped. CCNVR never downloads CUDA
automatically and never installs those libraries into the system path.
See Install the CCNVR AI CUDA Runtime Pack.
Search alarm snapshots with text
Enable AI analysis, then open Settings → AI video analysis → Text-to-image search extension and upload a SigLIP ZIP package. Install online is available when the administrator configures a trusted HTTPS package and its SHA-256. CCNVR restarts its local AI engine to activate the extension. For a shared runtime, install the model on the runtime host.
In Alarms, enter a channel name to view its alarms. When the model is ready, describe an image in the same search box to find retained AI alarm snapshots from the past seven days. Filter by date and open the alarm or recording from a result. When a snapshot has detection boxes, the result shows the matching object crop. Scene results show the full frame.
Runtime data
CCNVR runs CCAI Hub inside the server process and runs the analysis engine as a child process.
- Child process configuration:
<DataDir>/ai/config.toml - AI log:
<DataDir>/ai/ccai.log - Event snapshots:
<DataDir>/events/<channel>/ - Alarm snapshots:
<DataDir>/alarms/<channel>/
The AI endpoint listens on 127.0.0.1:18090 only. Do not expose this port through a
firewall or container mapping.
Troubleshooting
| Symptom | Action |
|---|---|
| AI cannot be enabled | Check the CCAI runtime files and model package |
| Process keeps stopping | Check <DataDir>/ai/ccai.log and model files under ai/models/ |
gpu mode fails | Install the matching CUDA Runtime Pack under ai/bin/ |
| No events | Confirm the channel is online, the rule is enabled, and a person enters the polygon |