Face and plate recognition
Vehicles and pets in Known objects are matched by appearance: a vehicle's shape and color, a pet's look. People are not. Clothing and build are too alike between people to name anyone, so a person is known only by an enrolled face seen clearly. Without one, the closest appearance can get is unsure, which rules count as unrecognized. A plate read decides a vehicle in the same way. A vehicle whose plate was read with high confidence is never suggested as a known vehicle whose plates on file all differ from it by three characters or more, however alike the two look. A read one or two characters off may be a misread, so it rules nobody out, and neither does an unsure read. A known vehicle with no plate on file can still be suggested by appearance. That makes rules like these dependable:
- Jenny in the garage: a person known by face as Jenny, on the Garage camera
- Unknown license plate: a vehicle whose plate is on no known vehicle
Both are off by default and are turned on camera by camera. They run on the recorder itself, after each visit is recorded, and nothing is sent off the recorder. Live detection is not slowed. Faces are read from the picture the event shows: the still cut from the full-resolution recording, when it is sharper than the detection stream. Plates are read from the recording itself, in several frames of the visit at the camera's full resolution (see How a visit is decided).
Face and plate recognition is a licensed feature. Where the recorder's license does not include it, turning faces or plates on, adding a known person or vehicle, enrolling a face or plate, and tagging an event as someone are refused. What is already on and enrolled keeps matching.
Install the models
Releases include the face and plate models. If Settings → Recognition
says they are not installed, download them on the recorder, with VERSION
the running release (the name of the directory /opt/evernvr/current points
at):
sudo /opt/evernvr/venvs/release-VERSION/bin/python /opt/evernvr/current/detector/setup_recognition.py
Each file is checked against a pinned SHA-256 before it is used. Until the models are installed, Settings → Recognition says so, and settings can still be saved. Enrolling a face from an event or a photo is refused with "Face and plate models are not installed", pointing to this section. Settings take effect once the download finishes; no restart is needed.
Turn it on
An administrator opens Settings → Recognition.
Faces. Check Recognize faces of enrolled people, read the notice, and confirm that the site may use face recognition. Then choose the cameras that see faces up close, such as a doorway, gate, or garage.
License plates. Check Read license plates and choose the cameras that see plates nearly head-on, close enough to read. A plate reads reliably when it is at least about 60 pixels wide in the recording, and poorly under 40. Record the camera's main stream, because the plate is read from the recording. Add your own vehicles' plates on Known objects so they are never reported as unknown.
Saving re-reads the last day of people and vehicles on the chosen cameras. A vehicle visit that was already read from the recording is decided again from the frames read then. One that was not, such as a visit from before an upgrade, is read from its event picture.
Face recognition processes biometric data. Many places require posted notice, written consent from each person enrolled, or a published retention policy, and some forbid it in certain settings. Check what applies to the site before turning it on. EverNVR records who turned it on and when.
Enroll people and vehicles
On Known objects:
- A person: under Face, use Add a photo with a clear photo of that person alone, facing the camera. The photo is not kept; only the face feature taken from it is. Tagging an event as that person on a camera with face recognition also enrolls the face in that event's picture. An enrolled face must be at least 48 pixels across, face the camera squarely, be in focus, and be wholly in the picture; otherwise the recorder says why and enrolls nothing. Several enrollments from different days and lighting work best. Tagging an event that was already tagged or matched as someone else takes back what that picture taught them, its face and its appearance example, so a mistaken tag is corrected by tagging the event again.
- A vehicle: under License plates, add the plate, 2 to 10 letters and digits. Tagging a vehicle event also adds the plate it read, when the read was confident, and checks that visit's plate against the plates on file at once, so a car tagged as the vehicle whose plate it read no longer shows that plate as unknown. When a tag adds no plate, the event panel says why, so you know only the vehicle's looks were learned: no plate was read, the plate could not be made out, plates are not read on that camera, the plate reader is not installed, or the read was not sure enough (the panel gives the reader's confidence). Nothing is said when the plate was already on file, or when Read license plates is off. For a read that was not sure enough, compare the text with the plate picture; Add ABC123 to Work truck anyway adds it. A visit named as a vehicle by appearance alone, whose plate was read clearly and is on no vehicle, shows administrators "Work truck has no plate on file, and this visit read ABC123 clearly." with Add ABC123 to Work truck. The recorder never adds that plate by itself, because a look-alike match would give the vehicle a stranger's plate. A visit tagged by hand gets no suggestion. A tag stands as given: a visit tagged as one vehicle whose plate belongs to another keeps the tag, and its plate reading names the other vehicle. Adding a plate makes every visit that read exactly that plate, however old, that vehicle's at once, and decides the last day of vehicle visits again, the same way saving the settings does. A plate belongs to one vehicle: adding one that another vehicle has names that vehicle and asks whether to move it; Move plate gives it to this vehicle. When a tag cannot add the plate because another vehicle has it, the event panel says whose it is and offers a button such as Move ABC123 from Old van to Work truck, so a car tagged under a new name keeps the plate it was known by. Moving a plate takes with it the visits the other vehicle was known in by that plate. Updating the recorder settles visits kept from earlier versions the same way: where a visit read exactly a plate on file, its plate reading names that vehicle, and so does the visit unless someone tagged it.
Remove a face or plate there at any time. Forgetting an identity deletes its faces and plates. Visits a removed plate or a forgotten identity was known by are decided again straight away: a plate is checked against the plates still on file, and a face is no longer anyone enrolled.
Find earlier visits
Teaching the recorder a face or plate, by tagging an event or on Known objects, decides the last day of visits of that kind again. To reach further back, use Look for … in earlier visits: under Who on an event just tagged, or on the identity's card on Known objects. Choose Past week, Past 30 days, Past 90 days, or Every visit kept, then Look back.
Every visit of that kind (people, vehicles, or pets) in that range is decided again against everything taught so far, so one look-back can name others of the same kind too. Visits you tagged or corrected are left as they are. A vehicle visit is decided from the plate reads kept with it; a person's face is read again from the event's picture, so a long range of people can take a while. Live events are always handled first, and the card shows how many visits have been checked. When it finishes it says how many are that identity, with a link to all of their visits on Events. One look-back per kind runs at a time.
What is kept
| Kept | Not kept | |
|---|---|---|
| Faces | A face feature (128 numbers) for each enrollment of an enrolled person. For each event, the outcome: known (and who), unsure, unknown, or unusable. | Features of anyone not enrolled. Uploaded photos. |
| Plates | With each event, for as long as the event is kept: the plate text, read confidence and country, up to 24 frames' reads (each one's text and how sure the reader was of each character), and one picture of the plate (the largest read surely as the visit's reading, or else the surest read, if the reader could make out anything at all). Your known vehicles' plates. | The rest of the frames the plate was read from. They are deleted as soon as they are read. |
Turning face recognition off deletes every enrolled face feature. To turn it back on, people have to be enrolled again. Backups made while faces were enrolled contain them until those backups age out.
How a visit is decided
Faces. A face smaller than about 40 pixels across is ignored. Only a clear face is compared: one facing the camera, not just three-quarter on, in focus, and not cut off by the edge of the picture or a privacy mask. Any other face is reported as not clear enough to compare and decides nothing. When a picture holds several faces, the one at the middle of the visit's picture is used. Faces at the edges belong to other people's visits.
A clear face must also match an enrolled face closely to name the person. The bar is set high on purpose: a missed "Jenny is home" is better than a wrong one. On small faces from a wide camera, only the best views pass it, so enroll several faces per person and give face recognition to cameras that see faces up close.
| Face reading | Meaning |
|---|---|
| Known | Matches an enrolled person. The visit is known by face. |
| Unsure | Close to an enrolled person, but not close enough to name them. |
| Unknown | A clear face that is not anyone enrolled. |
| Unusable | Not clear enough to compare: turned away, blurred, or cut off. |
Plates. On a camera that records, the plate is read in eight frames spread along the vehicle's path, from its first detection (a visit begins a moment later, once the detector is sure), then in the frames either side of the one where the plate showed largest, for as long as it keeps growing. Each frame is cut from the recording at full resolution, and only the vehicle's own box is read, so the plate of a car parked beside it never counts for this visit. The reads are combined into one reading, where a large plate counts for more than a small one, since a small plate is misread more (an O for a D, say). The plate's picture in the event panel is the largest one read surely as that reading. A large picture is also searched in overlapping parts, so a plate that is small beside the whole vehicle is still found. The camera's privacy masks are applied to each frame before it is read.
At night a plate camera often shows little more than the headlights and the lit plate, and the vehicle may only be detected once it has moved away. So the first reading also looks at whole frames from the 6 seconds before the vehicle was first detected. A plate there counts unless it sits inside another object being tracked, or where a plate already was 30 seconds earlier, as on a parked car, or where the picture looks the same as it did 30 seconds earlier, as on a sign with a street number that reads like a plate. Only plates read with reasonable confidence count from these frames. When another vehicle was detected and lost up to 10 seconds before, and has no event of its own, it is taken for the same vehicle, lost in the dark: the look back then reaches into its last second, and a plate on it counts for this visit. So does a vehicle lost for up to 2 seconds that has an event of its own, when the new detection starts inside its last position and both were moving the same way: the same car driving off, lost for a moment, gets the plate read before it was lost. Each such event still appears on its own.
The same goes for a vehicle lost as it leaves. Up close at night, the camera's infrared can turn a plate into a white blank, and a dark vehicle pulling away can drop out of detection before its plate becomes legible. So when a visit ends without a plate read surely enough to report, the recorder also reads whole frames from the 3 seconds after the vehicle was last detected, by the same rules as the frames before it. These frames are also searched for fainter plates, which count only when their characters read surely. The plate is then read about 10 seconds after the visit ends.
Sometimes the detector glimpses a vehicle for a moment, at night say, but never becomes sure enough to record a visit. On a camera that reads plates and records, the recorder then reads whole frames from that moment for a plate, the same way, once the moment is on disk, and then the frames either side of the one where a plate read best. If a plate of at least four characters is read, in two frames or very surely in one, the vehicle is recorded as an event with that plate, in the zones where it was, and alert rules treat it like any other vehicle. Its picture shows the vehicle, cut from the recording. Such an event appears about 12 seconds after the vehicle was last glimpsed, or up to a minute later while a vehicle event close by is still having its plate read, and it has no detection boxes, because the detector never followed the vehicle. When every glimpse was where a vehicle event's own vehicle was, and that event read no plate, even after the moments after it ended, the plate read from the glimpses goes to that event instead of making a new one.
Nothing is recorded when:
- no plate is read surely enough, or the plate sits where one already was 30 seconds earlier, or where the picture looks the same as it did then (a sign, a house number, a parked car)
- the vehicle stood where the camera records no events for vehicles (see where events are recorded)
- every glimpse was where a vehicle event's own vehicle was within 5 seconds; that event reads the plate itself
- the plate is one a vehicle event close by read, give or take one character
- a visit with the same plate began on the camera within the last minute
- the camera is outside its detection schedule or held for privacy
At most 60 such moments are read on a camera in an hour.
The visit is read again a few times while it goes on: about 10, 25 and 50 seconds after arrival, and once the vehicle has stood still for about 15 seconds. Each pass adds new frames, and the frames then vote. A frame that misread or dropped a character is outvoted by the others. Frames that disagree lower the result's confidence, and frames the reader was unsure of do not vote. On a camera that does not record, the event's picture is read instead.
The result is used when the reader is reasonably sure of every character. It names a vehicle when it matches a known plate exactly. On a plate of at least five characters, one character off also names it, when the difference is one readers often make: a confusable pair such as 8 and B, 0 and D, or X and W, or a dropped or extra character. Neighboring digits are not confusable, so a car whose plate ends in 9 is never taken for yours ending in 8. A read one character off from two known plates names neither. A plate is reported unknown only when it is read with high confidence, is at least four characters long, and differs from every known plate by at least three characters. Anything in between is an unsure read, so a misread of your own car does not raise an unknown-plate alert.
The reader also guesses the plate's country, shown as Plate region in the event's details. It names a country, not a state or province.
The thresholds are starting values. They have been tried on one site's cameras, not tuned across many. Confirm alerts from the footage. To correct a wrong name, use the Not button on the event (for example Not Jenny). That also removes any face enrolled from that event.
Rules
In an object or departure rule's Who, under Face and plate recognition:
| Choice | Fires when |
|---|---|
| Someone known, by face | The visit was named by an enrolled face. Choose the person under In particular. |
| A face nobody enrolled | A clear face matched nobody enrolled. |
| A vehicle known by its plate | The visit was named by a known plate. |
| An unknown license plate | A confident plate read matched no known vehicle. |
These are decided a moment after the arrival, once the picture has been read.
For plates on a recording camera, that is about 10 seconds after arrival. A
vehicle found by its plate alone reaches rules with its plate already read. A
decision that lands up to 90 seconds after the visit closed still counts for
it, such as for a car that parked at once or one that drove straight through
and out of view, whose visit ends at the moment it was last seen. A plate
read only in the moments after the vehicle was last detected lands about 10
seconds after that, or later when it comes from a glimpse given to the visit,
and counts under the same 90-second limit. Each rule fires at most once per
visit.
Notifications name who was recognized and how, or the plate that was read. MQTT event messages carry the
same face and plate fields.
Search by plate
On Events, type all or part of a plate into the Plate filter. Selecting a plate in an event's panel lists every visit with that plate.
Below the reading, the event's panel shows a close-up of the plate so you can check the reading by eye. It shows the plate as the visit reads it: of the frames read surely, the one where the plate was largest, or, when none was read surely, the frame the reader was surest of. A frame read later, during the visit or just after it ends, replaces it only when it is better by the same measure. Where the camera does not record, the close-up is cut from the event's picture and is smaller. A plate the reader found but could not read surely enough to report still gets its close-up, with a note that the reader could not make it out, so you can try. A plate it could barely read or not read at all, such as one glaring white in the infrared, gets no close-up. Where the camera records, the event's own picture is also taken from a frame the plate was read in (see events and investigation).