Database generation method and apparatus, electronic device and medium
OwnerJohn Chuinventor
Life of this patent
Estimating the term…
Abstract
The present application provides a database generation method and apparatus, an electronic device and a medium. The method includes: acquiring an image of a Chinese character, determining, based on the image of the Chinese character, elementary components contained in the Chinese character and positions of the elementary components in the image of the Chinese character; determining position codes corresponding to the positions of the elementary components; and storing the elementary components and the corresponding position codes thereof in a corresponding manner to obtain a component library of a database. Thus, the difficulty of generating the database is reduced.
Claims17
A database generation method, comprising:
- acquiring an image of a Chinese character;
- determining, based on the image of the Chinese character, elementary components contained in the Chinese character and positions of the elementary components in the image of the Chinese character;
- determining position codes corresponding to the positions of the elementary components;
- and
- storing the elementary components and their corresponding position codes in a corresponding manner to obtain a component library of a database;
- wherein the step of determining position codes corresponding to the positions of the elementary components comprises:
- determining a position map corresponding to the Chinese character based on the positions of the elementary components in the image of the Chinese character, the position map being a square array diagram comprising at least two rows and two columns, the position map containing at least four structural positions, and the position codes being provided corresponding to the structural positions in the position map.
A database generation method, comprising:
- acquiring an image of a Chinese character;
- determining, based on the image of the Chinese character, elementary components contained in the Chinese character and positions of the elementary components in the image of the Chinese character;
- determining position codes corresponding to the positions of the elementary components;
- and
- storing the elementary components and their corresponding position codes in a corresponding manner to obtain a component library of a database;
- after acquiring the image of the Chinese character, the method further comprising:
- acquiring a structure of the Chinese character;
- storing the structure of the Chinese character in a structure library of the database;
- and
- storing the Chinese character in a Chinese character library of the database;
- wherein the method further comprises:
- acquiring a character structure diagram and characters to be selected;
- displaying the character structure diagram and the characters to be selected;
- in response to a character selection instruction to select from the characters to be selected a result character, marking the result character corresponding to the character selection instruction, and displaying the result character in the character structure diagram;
- and
- comparing the result character with a standard character to obtain and display a comparison result.
A database generation apparatus, comprising:
- an acquisition module configured to acquire an image of a Chinese character;
- a first determination module configured to determine, based on the image of the Chinese character, elementary components contained in the Chinese character and positions of the elementary components in the image of the Chinese character;
- a second determination module configured to determine a position map corresponding to the Chinese character based on the positions of the elementary components in the image of the Chinese character, the position map being a square array diagram comprising at least two rows and two columns, the position map containing at least four structural positions, and the position codes being provided corresponding to the structural positions in the position map;
- determine structural positions of the elementary components in the position map based on the positions of the elementary components in the image of the Chinese character;
- and take the position codes of the structural positions corresponding to the elementary components as the position codes of the positions corresponding to the elementary components;
- and
- a storage module configured to store the elementary components and their corresponding position codes in a corresponding manner to obtain a component library of a database;
- wherein the acquisition module, the first determination module;
- the second determination module and the storage module are all hardware modules.
Dependencies are inferred from the claim text.