- Train your own data using machine learning or deep learning
- Before train prepare your data sets
OCR on Technical drawings: Image segmentation Workflow
조회 수: 7 (최근 30일)
이전 댓글 표시
Dear Matlab'ers!
I am currently developing the following method:
Automated OCR Text extraction from technical drawings
and after checking the literature, I would like to ask you for feedback my current process, especially in the segmentation of elements in the drawing.
Sample Image:
My current process is as follows:
- Open the image [imread()]
- Convert it to a binary image [rg2gray()->imbinarize()]
- Segment/cluster the image to define Regions Of Interest (Title Block - usually lower right, x# Part projections - middle, frame - around the drawing) [I tried superpixels() but it seems to be insufficient]
- Get rid of the frame [no clue how to]
- Run OCR on the Title Block [ocr()] and look for specific text strings
- Run OCR on the X Y Z Projections [ocr()] and look for dimensions etc..
- Store the data in a predefined xls [xlswrite()]
The task seems to be quite easy, as techincal drawings should follow standards and images are usually black&white, however it looks like my approach is insufficient, especially in detecting shapes of the Title Block and quite irregular parts.
Do you think it might be worth exploring functions like fill holes or region fill or it will be better to create a heatmap to segment the image?
댓글 수: 0
답변 (1개)
Selva Karna
2020년 1월 14일
you can work on follow:
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!