This repository will show the method for detecting Indonesian plate car using Python OpenCV (non deep learning method)(plate_detection_indonesia.py
file) . The method will use contour detection concept.
- The first step is loading the image. We will use this image
-
The next step is image processing. It plays very important role for contour detection. In this code, for image processing, we will conduct : conversion from colored image to grayscale, then filtering, after that we conduct the adaptive Threshold. Adaptive threshold is applied because of its ability to handle different illuminaton intensity problem in an image.
-
After that, we can find the contours using
cv.findContours()
method and we apply ROI (region of interest) technique to find the plate area. -
Image to string with Pytesseract and the result is :
The code still needs improvement, especially for the image to text process.