NC Program Conversion Device Using OCR and Format Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing character recognition devices struggle to accurately convert handwritten or printed NC programs from images into executable code, often mistaking characters and resulting in non-functional program codes due to incorrect recognition and lack of specific formatting knowledge.
Innovation Solution
An NC-program conversion device with an OCR processing unit, storage units for numerical and code formats, and a character-string segmenting unit that associates alphabetic letters with numbers and effective characters to segment recognized character strings into functional program codes, utilizing a numeral-letter conversion list to correct mistaken characters and generate executable NC programs.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If OCR processing is applied to recognize character strings from images, then character recognition speed is improved, but recognition accuracy deteriorates due to mistaken character recognition
Solution Approach 1:
The system uses stored format information as feedback to verify and correct OCR recognition results. The character string segmenting unit continuously compares recognized characters against the stored numerical-form and code-form formats, using this feedback loop to identify and correct recognition errors while maintaining high processing speed.
Solution Approach 2:
The system performs preliminary action by storing common NC program format patterns (numerical-form with alphabetic letters followed by numbers, code-form with program codes and effective characters) in advance. This pre-prepared format knowledge enables rapid verification and correction of OCR results without requiring complex real-time analysis.
2Ease of operation
If general character recognition is used, then ease of operation is improved, but manufacturing precision deteriorates due to inability to generate correctly formatted NC program codes
Solution Approach 1:
The system applies local quality by implementing format-specific processing rules for different parts of the character string. The character string segmenting unit identifies specific patterns (alphabetic letters followed by numbers, program codes followed by effective characters) and applies appropriate segmentation and correction rules to each local segment, ensuring each part conforms to NC program standards.
Solution Approach 2:
The system changes parameters by transforming the character string structure from general text format to specific NC program format. The character string segmenting unit modifies the arrangement, spacing, and formatting parameters of recognized characters to match the target NC program code structure, converting unstructured text into precisely formatted executable codes.
3Device complexity
If simple character replacement is applied, then device complexity is reduced, but reliability deteriorates due to inability to handle format-specific correction needs
Solution Approach 1:
The system uses segmentation by dividing the character string processing into distinct segments: numerical-form segments (alphabetic letters with number of digits) and code-form segments (program codes with effective characters). The character string segmenting unit processes each segment type with appropriate rules, improving reliability through structured handling of different code formats without requiring overly complex unified processing.
Data Source
AI summary
An NC-program conversion device includes an OCR processing unit that recognizes a character string from an input image; a first storage unit that stores one alphabetic letter and the number of digits of a number subsequent to the alphabetic letter, in an associated manner; a second storage unit that stores a program code that is composed of a combination of one alphabetic letter and a two-character number and an effective character that is composed of one alphabetic letter subsequent to the program code, in an associated manner; and a character-string segmenting unit that refers to the first storage unit and the second storage unit, to segment each line of the character string, which is recognized by the OCR processing unit, as program codes stored in the first storage unit in an associated manner.


