ANPR События
Загрузка событий ANPR...
Тестирование ANPR
Используйте dev endpoint для инъекции тестовых событий (требуется ENABLE_DEV_EQUIPMENT=true):
Обычное событие:
fetch('/api/dev/anpr/inject', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
locationId: "loc_xxx",
cameraId: "gate_in_1",
plate: "A123BC178",
confidence: 0.95,
direction: "IN",
vehicleStopped: true
})
}).then(r => r.json()).then(console.log);Старое событие (тест TTL > 30 мин):
fetch('/api/dev/anpr/inject', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
locationId: "loc_xxx",
cameraId: "gate_in_1",
plate: "A123BC178",
confidence: 0.95,
direction: "IN",
vehicleStopped: true,
ts: new Date(Date.now() - 31 * 60 * 1000).toISOString()
})
}).then(r => r.json()).then(console.log);