Camera-based process analysis: a polyglot pipeline
Camera-based process analysis: a polyglot pipeline
visper.uz analyses processes by connecting to cameras you already have. No new hardware, no special cameras — just a careful pipeline around existing video.
Ingest in Go
Go handles camera connections, frame sampling and backpressure. It is the right place for long-running workers with strict timeouts and bounded memory.
for frame := range camera.Frames(ctx) {
if err := infer.Submit(ctx, frame); err != nil {
metrics.Inc("frame_dropped")
continue
}
}
Inference in Python
Python remains the pragmatic choice for model work. The inference service accepts a frame and returns structured observations, not prose.
Events in Node.js
Observations become events that a Node.js API exposes to dashboards and downstream systems. Keeping this layer in JavaScript makes it easy to build real-time views and integrations.
app.post('/events', async (req, res) => {
const event = normalize(req.body)
await bus.publish('process.observation', event)
res.status(202).json({ id: event.id })
})
Privacy by design
Frames are processed in memory and discarded; only derived events are stored. Access is scoped, retention is short, and every query is auditable.
Key takeaways
Use each language for what it is good at, exchange small structured events, and decide the privacy model before the first camera is connected.