OIL & GAS
License Plate Detection & OCR
License Plate Detection & OCR. What it takes to run it.
A plate boxed at the gate, read as a string, and a doubtful character held for the gatehouse instead of a guess.
// 01 · The question
“Which vehicle was that, and what did its plate say, from the gate camera already there?”
// 02 · Why it is hard
A plate is small, rectangular and few per frame, and the two jobs fail for different reasons. A plate the detector never boxed can never be read, no matter how good the reader is. A plate boxed cleanly can still come back wrong one character at a time, a zero read as an O, an eight as a B. One score for both hides which job just failed.
// 03 · What the labels have to be
Bounding box
Decided before the first frame
Finding the plate and reading it are two different jobs, and the box belongs to the first one. A detector with one class, plate, puts a tight box on the rectangle so the crop inside it is worth reading; the characters themselves are a question answered on that crop, not a geometry of their own.
This is the decision that is expensive to reverse. The geometry has to match what the answer contains, and finding out it does not means labelling the set a second time.
// 03a · What it finds
Every plate at the gate
boxed by a detector trained on this camera's own pole height and angle, headlights included
The characters inside that box
read from the crop as a string, the two stages scored apart so a wrong plate has an address
A plate the reader is unsure of
a doubtful character held rather than guessed, so a wrong plate never reaches the gate log as a fact
A vehicle the detector missed
a tipper stopped further back than a car, or an angle the camera rarely sees, held as a recall gap rather than a silent miss
// 03b · What it checks
- 01
The plate's box against a held-out set of this gate's own frames, recall watched first, since a plate never boxed is a truck never read.
- 02
The reading scored two ways on the same held-out set: per character, which tells the team what to fix, and per plate, which is the number the gate actually experiences.
- 03
A doubtful character held and sent to the gatehouse with the crop, rather than written to the log as a guess.
- 04
The rule's schedule, cooldown and severity, so a mismatch at five in the morning pages whoever is actually on the gate.
// 03c · What the site provides
- The camera already on the pole or over the barrier, on whatever RTSP feed or recorder the yard runs; no new camera.
- Frames from this gate, at this pole height and this angle, headlights on, not a stock photograph of a plate.
- A held-out set of this gate's own frames, boxed by hand, so recall and the two reading scores mean what this site's camera actually sees.
- Someone at the gatehouse to read the held frames, the characters the reader could not, the way the gate already works by hand.
// 04 · How we run it
Three parts of one loop, on this job.
LexAnnotate
Precision Safety
Annotate rig images with bounding boxes for machinery, valves, flanges, and personnel with PPE classification. Safety-focused labels tailored to oil & gas operations. 12k+ hazardous-zone annotations in production deployments.
LexInsight
Corrosion Tracker
Ask which valves show the most corrosion growth across passes, and get an answer with the mask and the frame behind it, each one still held for a person to grade against the asset's own standard.
LexAlert
Safety Alerts
Monitor deployed safety models against environmental changes - weather, lighting, equipment repositioning. Detect drift before it causes a missed hazard. Route failures back for immediate retraining.
// 05 · What breaks it after launch
Headlights straight into the lens at five in the morning, rain that turns the plate into a smear, low winter sun that bleaches the characters to nothing: the same frames break the box and the read together, and a model trained on a dry summer's frames meets its first wet week as a stranger.
It is not the only one that can get this use case, it is the one that usually gets it first. All ten conditions.
// 06 · In oil & gas
Hazardous Zone Monitoring
The Challenge
Lacked labeled rig imagery, delaying AI model training. Relied on manual monitoring in hazardous zones.
Our Execution
Annotated rig images with bounding boxes for machinery and personnel. Delivered precise, safety-focused labels.
The Result
Faster AI deployment with rapid model iteration. Improved safety through automated detection.
12k+
Precision image annotations delivered
// 06a · Questions we get asked
Does this replace the barrier or the gate log?
No. It boxes the plate and reads the characters, and matching that reading against the yard's own list is still the system already in place. What changes is that a doubtful read is held for a person instead of written to the log as a fact.
Why score the box and the reading separately?
Because they fail for different reasons and are fixed with different frames. A plate never boxed is a truck never read, no matter how good the reader is; a plate boxed cleanly can still be misread one character at a time. One score for both hides which stage produced a wrong plate.
What happens on a rainy night?
Those are the frames kept. Night glare and rain are the conditions that break both stages, and every wrong read in them goes into the training set with the correct answer attached, so the version trained after the first wet week is the one that lasts through the second.
What does the gatehouse actually receive?
A held plate with the crop and the doubtful characters marked, on the rule's own severity and cooldown, so a mismatch at five in the morning pages whoever is on the gate rather than waiting for the shift to notice.