DATABASE GENERATION METHOD AND APPARATUS, ELECTRONIC DEVICE AND MEDIUM
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.