The post has been translated automatically. Original language: Russian
There is one moment I love in conversations with restaurant owners. The owner looks at the report and says: "no way, there is always someone at my register". Then the camera shows that at lunchtime a guest waits at an empty register for half a minute, and a shift adds up to a dozen such episodes. I led an ML team at Dodo Brands for several years, and this story shows up in almost every second location.
Let us look at why an empty register never shows up in any report, how an ordinary CCTV camera catches it, how to set up this kind of monitoring without false alarms and how to estimate the scale of the problem by hand in one evening.
Why an empty register never makes it into reports
The register counts receipts. A receipt appears once the guest has been served, and everything that happened before stays off the record. A guest walks up and stands at an empty counter while the barista is unpacking a delivery in the back, and then there are two scenarios. The guest either waits and orders already annoyed, or turns around and goes to the coffee shop next door. In both cases the POS system sees nothing unusual.
It is like a fridge without a door alarm. The door is slightly open, the food slowly warms up, and you find out three days later by the smell. A door alarm costs pennies, and its whole job is to say "hey, it has been open for a minute".
How a camera sees an empty post
The owner does not need a nice video stream. The owner needs to know at which minutes the location leaves a guest unattended, how often it happens and why. There is already a camera above the register in almost every coffee shop, the only question is who will watch the recordings. Everyone knows the answer: nobody.
Technically the task is simple. A neural network for CCTV cameras detects people in the frame and follows each of them as a track. Two zones are drawn on the frame: where the guest stands and where the employee should stand. Then a single rule applies: the guest is in their zone, and the employee zone has been empty longer than the threshold. Every trigger is logged with a timestamp and a link to the archive fragment, so nobody has to scroll through whole recordings. At deepVi we built this rule for food service registers, but the logic is the same in any video analytics system.

The mechanics with zone examples are described in detail in the article about register monitoring with cameras.
Dodo case: 30-40 minutes less downtime per day
Our most telling story comes from Dodo pizzerias, where we covered the registers with analytics. A guest at the register with an empty post turned out to be the most frequent finding. After the shifts started receiving a signal about such moments, register downtime with guests waiting dropped by a total of 30-40 minutes per day per location.
Let us convert that into hours. Take the middle, 35 minutes a day, multiply by 30 days and you get about 17 hours a month per location. That is more than two eight-hour shifts during which a guest used to stand in front of an empty counter. For a chain of twenty locations it is over 340 hours a month, and none of that time used to appear in any report.
Each such finding is fixed for free: shift a schedule, introduce the rule "the register is never left empty", teach people to ask a colleague to cover for a minute.
Alexander Milenkin
How to pick a threshold and not drown in false alarms
The threshold decides almost everything. Set it to 5 seconds and signals will pour in every time the barista steps to the coffee machine a metre and a half away. Set it to 2 minutes and you will miss most real episodes. We start with 30 seconds: by then the guest starts looking around, while an employee who just turned away usually manages to come back.
Draw the employee zone wider than seems necessary. If the barista stands at the coffee machine behind the register and can see the guest, that is a workplace, and it is better to include it in the zone. Make the guest zone narrow instead, just the spot in front of the counter, otherwise it will catch people walking past or waiting for a ready order at the pickup point.
Two more things people usually trip over. The camera should look from above or at an angle, otherwise people in the queue overlap and tracks break. And a lost track must not be counted as a person leaving: if a guest disappeared behind a column for a second, it means nothing yet. During the first week it is worth reviewing a dozen triggers by hand and adjusting the zones, after that the noise usually goes away.
Second finding: shifts live their own life
Once downtime starts being measured, the next question comes up almost immediately. Why does the empty register happen at these particular hours? Usually the answer is in the schedule. The camera can also count how many people are in the register zone by hour, that is visitor counting by zone, and the picture of traffic versus shifts builds itself.

A typical scene looks like this. The manager says: "our lunch rush starts at one, so the second barista comes in at one". We look at the chart, and the crowd builds up from twelve, so for a whole hour one person takes orders, makes drinks and runs to the storage room. Moving the start 40 minutes earlier costs zero tenge. In coffee shops this is the most common and the cheapest fix.
How to check your location by hand in one evening
You can estimate the scale of the problem without any software. Take yesterday lunchtime recording from the camera above the register, for example from 12:00 to 14:00, and watch it at x4 speed. Every time a guest stands at the counter and nobody is at the register, write down the start and end time of the episode in a spreadsheet.
Two hours of recording at x4 will take half an hour of your time. If you count more than five episodes longer than 30 seconds, the problem is systemic and worth measuring every day. If there are one or two, the location is probably coping, and it is better to look for losses elsewhere. To open the recording in a browser you need the camera RTSP link, and a RTSP link generator builds its format for Hikvision, Dahua and other manufacturers.
What about the queue
An empty register and a long queue often come together. A queue threshold is set the same way, for example "more than four people for longer than two minutes", and on that signal the manager calls someone from the floor.
Let me be honest about where our limits are. The long queue signal and hourly queue length statistics already work. Exact waiting time for each guest and people leaving the queue without buying are currently measured in pilots with clients, and the accuracy depends heavily on the camera angle. One more important caveat: a person who stood at the register is not yet a customer, and someone who left the frame is not yet lost revenue. That is why I am against multiplying departures by the average check right away and scaring yourself with numbers.
For chains: compare a location with itself
A manager with five locations physically cannot stand in each one. They need to see which location is underperforming today and where the empty post happens more often than elsewhere. The most reliable comparison here is the location against itself, today against the same day last week. Comparing different locations head-on is risky: a coffee shop in a business center and one in a residential area have different traffic, and the conclusions will be skewed.
Try to recall yesterday lunch at your location. How many times did a guest stand in front of an empty counter? If the honest answer is "I do not know", those minutes are already sitting somewhere in your revenue, just without a label.
Слушай, есть у меня любимый момент в разговорах с владельцами общепита. Человек смотрит на отчёт и говорит: "да не может быть, у меня за кассой всегда кто-то стоит". А камера показывает, что в обед гость ждёт у пустой кассы по полминуты, и таких эпизодов за смену набирается десяток. Я несколько лет руководил ML-командой в Dodo Brands, и эта история всплывает почти в каждой второй точке.
Разберём, почему пустая касса не видна ни в одном отчёте, как её ловит обычная камера видеонаблюдения, как настроить такой контроль без ложных срабатываний и как прикинуть масштаб проблемы руками за один вечер.
Почему пустая касса не попадает в отчёты
Касса считает чеки. Чек появляется, когда гостя обслужили, а всё, что было до этого, остаётся за кадром. Гость подошёл, постоял у пустого прилавка, пока бариста разбирал поставку на складе, и дальше у него два сценария. Он либо дождётся и пробьёт заказ уже раздражённым, либо развернётся к соседней кофейне. В обоих случаях POS-система ничего странного не увидит.
Это как холодильник без пищалки. Дверь приоткрыта, продукты медленно греются, а ты узнаёшь об этом через три дня по запаху. Пищалка на двери стоит копейки, и вся её работа в том, чтобы сказать "эй, открыто уже минуту".
Как камера видит пустой пост
Владельцу не нужен красивый поток видео. Ему нужно знать, в какие минуты точка оставляет гостя без внимания, как часто это повторяется и почему. Камера над кассой уже висит почти в каждой кофейне, вопрос только в том, кто будет смотреть записи. Ответ знают все: никто.
Технически задача простая. Нейросеть для камер видеонаблюдения находит людей на кадре и ведёт каждого по треку. На кадр кладутся две зоны: где стоит гость и где должен стоять сотрудник. Дальше работает одно правило: гость в своей зоне, а зона сотрудника пуста дольше порога. Каждое срабатывание записывается со временем и ссылкой на фрагмент архива, поэтому листать записи целиком больше не нужно. Мы в deepVi собирали это правило под кассы общепита, но логика одинаковая в любой системе видеоаналитики.

Подробно механика с примерами зон расписана в разборе про контроль кассы по камерам.
Кейс Додо: минус 30-40 минут простоя в день
Самая показательная история у нас из пиццерий Додо, где мы покрыли кассы аналитикой. Гость у кассы и пустой пост оказались самой частой находкой. После того как смены начали получать сигнал о таких моментах, простои за кассой при живых гостях сократились суммарно на 30-40 минут в день на точку.
Давай переведём это в часы. Возьмём середину, 35 минут в день, умножим на 30 дней и получим около 17 часов в месяц на одну точку. Это больше двух восьмичасовых смен, в которые гость раньше стоял перед пустым прилавком. Для сети из двадцати точек выходит уже за 340 часов в месяц, и всё это время раньше просто не попадало ни в один отчёт.
Каждая такая находка лечится бесплатно: сдвинуть смену, ввести правило "касса не остаётся пустой", научить человека просить коллегу подменить его на минуту.
Александр Миленькин
Как выбрать порог и не утонуть в ложных срабатываниях
Порог решает почти всё. Поставишь 5 секунд, и сигналы посыплются каждый раз, когда бариста отошёл к кофемашине в полутора метрах. Поставишь 2 минуты, и пропустишь большую часть реальных эпизодов. Мы начинаем с 30 секунд: за это время гость уже начинает оглядываться, а сотрудник, который просто отвернулся, обычно успевает вернуться.
Зону сотрудника рисуй шире, чем кажется нужным. Если бариста стоит у кофемашины за спиной у кассы и видит гостя, это рабочее место, и его лучше включить в зону. Зону гостя наоборот делай узкой, только пятачок перед прилавком, иначе туда попадут люди, которые идут мимо или ждут готовый заказ у выдачи.
Ещё две вещи, на которых обычно спотыкаются. Камера должна смотреть сверху или под углом, иначе люди в очереди перекрывают друг друга и треки рвутся. И потерю трека нельзя считать уходом человека: если гость на секунду пропал за колонной, это ещё ничего не значит. Первую неделю стоит руками пересмотреть десяток срабатываний и подкрутить зоны, после этого шум обычно уходит.
Вторая находка: смены живут своей жизнью
Когда простои начинают считаться, почти сразу всплывает следующий вопрос. Почему пустая касса случается именно в эти часы? Обычно ответ лежит в графике. Камера заодно может считать, сколько людей в зоне кассы по часам, это подсчёт посетителей по зонам, и картинка поток против смен получается сама собой.

Типичная сценка выглядит так. Управляющий говорит: "у нас обед с часу, поэтому второй бариста выходит к часу". Смотрим график, а толпа собирается с двенадцати, и целый час один человек одновременно принимает заказы, варит напитки и бегает на склад. Сдвинуть выход на 40 минут раньше стоит ноль тенге. В кофейнях это самая частая и самая дешёвая правка.
Как проверить свою точку руками за вечер
Масштаб проблемы можно прикинуть вообще без софта. Берёшь запись камеры над кассой за вчерашний обед, например с 12:00 до 14:00, и смотришь её на скорости x4. Каждый раз, когда гость стоит у прилавка, а за кассой никого, записываешь в табличку время начала и конца эпизода.
Два часа записи на скорости x4 займут полчаса твоего времени. Если набралось больше пяти эпизодов дольше 30 секунд, проблема системная, и её стоит мерить каждый день. Если эпизодов один-два, точка скорее всего справляется, и потери лучше искать в другом месте. Чтобы открыть запись в браузере, нужна RTSP-ссылка камеры, её формат для Hikvision, Dahua и других производителей собирает генератор RTSP-ссылок.
Что с очередью
Пустая касса и длинная очередь часто идут парой. Порог на очередь задаётся по тому же принципу, например "больше четырёх человек дольше двух минут", и по сигналу управляющий зовёт человека из зала.
Сразу скажу честно, где у нас граница. Сигнал на длинную очередь и статистика её длины по часам уже работают. Точное время ожидания каждого гостя и уходы из очереди без покупки мы сейчас считаем в пилотах с клиентами, и точность там сильно зависит от ракурса камеры. Плюс важная оговорка: человек, постоявший у кассы, ещё не покупатель, а ушедший из кадра ещё не потерянная выручка. Поэтому я против того, чтобы сразу умножать уходы на средний чек и пугать себя цифрами.
Для сетей: сравнивай точку с самой собой
Управляющий с пятью точками физически не может стоять в каждой. Ему важно видеть, какая точка сегодня проседает и где пустой пост случается чаще остальных. Самое надёжное сравнение тут одно: точка против самой себя, сегодня против того же дня прошлой недели. Сравнивать разные точки в лоб опасно, у кофейни в бизнес-центре и у кофейни в спальном районе разный поток, и выводы получатся кривые.
Попробуй вспомнить вчерашний обед в своей точке. Сколько раз гость стоял перед пустым прилавком? Если честный ответ "не знаю", значит, эти минуты уже сидят где-то в выручке, просто без подписи.
Comments 1
Newest Popular