Goal
Extract number plate and state from photo of number plate
Progress
- Image to text
- Split text
- Turn split text into an array
- Get first item in array
- Replace - and .
- Get plate (if it isn’t a state, because sometimes a state is the first item in the image and therefore the extracted text)
- Get state (if extracted text includes state)
Help needed
If the first text extracted isn’t a number plate, it is usually a state if it isn’t, then how do I get the number plate? Number plates can be in many formats and could be personalised so no real logic. You can see from screenshot example number 4 where first text is NSW not a plate.