Key takeaway
- How a cloud video analytics platform turns live camera streams into insight with a collector, a buffer and a processor, and what to check before you build.
Cloud video analytics uses image processing and machine learning on live video streams to turn footage into information a team can act on. A scalable design separates collecting, buffering and processing the stream so that a single failure does not lose data.
This page is for architects and security, retail and traffic operations leaders. It covers the problem, the three-part architecture, a comparison with a traditional design, where AI agents fit and what to check before you build.
What is cloud video analytics?
A video analytics engine with artificial intelligence uses advanced image processing algorithms to turn video into actionable intelligence. The use case names traffic control, retail store monitoring, surveillance and security as typical uses. The aim is low cost, accurate analysis of live video using open source big data technologies, including OpenCV, Apache Kafka, Apache Spark, HDFS, TensorFlow and Amazon S3.
Massive scale video processing is the greatest challenge, and it is also where the potential for analytics is greatest.
What problem does it solve?
A traditional computer vision system has one limitation: a single server with a computer vision library collects and processes the data at the same time. If that server fails, the streaming video data is lost. Detecting a node failure and switching processing to another node also fragments the data. On top of that, image processing algorithms have to run in a dynamic environment, so teams struggle to manage and analyse the data efficiently.
The task is to build a system that removes these problems, so that collection keeps running even when processing is interrupted.
How does the architecture work?
The solution is divided into three components, each with its own job.
- Video stream collector. Connects to the cameras and captures the stream, and does no heavy processing so it can keep up with the source.
- Stream data buffer. Holds the frames or events so that processing can lag or restart without losing data. This is the role of a messaging layer such as Kafka.
- Video stream processor. Reads from the buffer and runs the image processing and machine learning models, then writes results for dashboards, alerts and storage.
The Apache Kafka introduction describes Kafka as a platform that can publish and subscribe to event streams, store them durably for as long as you need and process them as they occur or later. It also says events are not deleted after being read, topics are partitioned across brokers, and topics can be replicated so that if a server fails others take over without losing data. That is the property the buffer needs.
For the processing layer, the Spark streaming programming guide says Spark Streaming (DStreams) is a legacy project and recommends Structured Streaming for new applications and pipelines. The OpenCV documentation describes OpenCV as an open source library with several hundred computer vision algorithms.
How does it compare with a traditional design?
| Question | Traditional coupled design | Collector, buffer and processor design |
|---|---|---|
| Collection and processing | Done together on one server | Separated into three components |
| If the server or a node fails | Streaming video data is lost | The buffer keeps the stream while processing recovers |
| Switching to another node | Fragments the data | Processors resume from the buffer |
| Scaling | Scale the whole server | Scale collectors and processors independently |
| Technology | A server with a computer vision library | Open source stack such as Kafka, Spark, OpenCV and TensorFlow |
Where do AI agents fit?
The processor produces detections: a vehicle in a restricted lane, a queue at a till, an object left behind. An AI agent can sit after that step, deciding which detections need attention, collecting the related clips and context, and drafting an incident note for the operator. The operator confirms any response. Agents work best with governed access to video metadata and clear rules about what they may do. ElixirClaw is the AI agents computing platform from XenonStack and is the product page to read for agent and automation use cases.
What should you check before you build?
- Privacy and law. Check the rules for recording and analysing people in your jurisdiction, and limit who can see footage.
- Latency. Decide how quickly a detection must reach an operator, and test the pipeline under peak camera load.
- Retention. Set how long the buffer and the archive keep video, and what is stored in object storage.
- Model quality. Test detection accuracy on your own cameras and lighting, and review false alerts.
- Current components. Prefer maintained streaming components over legacy ones.
To map one decision your video agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
See agentic video intelligence on your own cameras. XenonStack Vision AI agents search, summarise and investigate video, then act within the decision boundaries you set. Explore xenonstack.ai
Part of our guide: What Is Agentic Video Intelligence?.
Frequently asked questions
What is video analytics?
It is the use of image processing and machine learning on video to turn footage into information, such as counts, detections and alerts, that a team can act on.
Why separate collection from processing in a video pipeline?
In a traditional design, one server collects and processes the stream, so a failure loses the video data. A separate buffer keeps the stream while processing recovers.
What does Kafka do in a video analytics platform?
Kafka acts as the stream buffer. The Kafka introduction says it stores event streams durably, does not delete events after they are read, and can replicate topics so that other servers take over if one fails.
Is Spark Streaming still recommended?
The Spark documentation says Spark Streaming with DStreams is a legacy project and recommends Structured Streaming for new streaming applications and pipelines.
Which uses does the use case name?
It names traffic control, retail store monitoring, surveillance and security.
Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE