Database generation method and device, electronic device and medium

JP2025505904AInactive Publication Date: 2025-03-05CHOO JUNG
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022570259
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2022-01-28
Publication Date
2025-03-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Benefits of technology

【0021】 本出願の実施形態により提供された技術構成は、以下の有益な効果をもたらすことができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025505904000001_ABST
    Figure 2025505904000001_ABST
Patent Text Reader

Abstract

The present application provides a database generating method and device, electronic device and medium, which includes obtaining a Kanji image, determining a basic component contained in the Kanji based on the Kanji image, determining a position of the basic component in the Kanji image, determining a position code corresponding to the position of the basic component, and storing the basic component and the position code corresponding to the position of the basic component in a corresponding manner to obtain a component library in a database, thereby reducing the difficulty of database generation.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of artificial intelligence, in particular to a database generation method and apparatus, an electronic device and a medium. [Background technology]

[0002] Artificial intelligence (AI) is a branch of computer science and is considered one of the three major cutting-edge technologies of the 21st century. In the past 30 years, AI has undergone rapid development, been widely used in many fields, and has produced fruitful results.

[0003] Artificial intelligence information retrieval technology can be used to search for Chinese characters. Most of the Chinese character databases used in existing Chinese character search methods rely on manual input, and the inputter must have a thorough knowledge of Chinese characters. Summary of the Invention

[0004] An object of the present application is to provide a database creation method and device, electronic device, and medium that can reduce the difficulty of creating a kanji database to some extent.

[0005] According to one aspect of an embodiment of the present application, there is provided a database generation method, the method including: obtaining a Chinese character image; determining elementary components contained in the Chinese character based on the Chinese character image and determining positions of the elementary components in the Chinese character image; determining position codes corresponding to the positions of the elementary components; and storing the elementary components and the position codes corresponding to the positions of the elementary components in a corresponding manner to obtain a component library in a database.

[0006] According to one aspect of an embodiment of the present application, there is provided a database generation device comprising an acquisition module, a first judgment module, a second judgment module, and a storage module, wherein the acquisition module is arranged to acquire a Chinese character image, the first judgment module is arranged to determine basic components contained in the Chinese character based on the Chinese character image and to determine a position of the basic components in the Chinese character image, the second judgment module is arranged to determine a position code corresponding to the position of the basic components, and the storage module is arranged to obtain a component library in a database by storing the basic components and the position codes corresponding to the positions of the basic components in a corresponding manner.

[0007] In one embodiment of the present application, based on the above technical configuration, after acquiring the Chinese character image, the acquisition module is configured to acquire the Chinese character structure, store the Chinese character structure in a structure library in the database, and store the Chinese character in a Chinese character library in the database.

[0008] In one embodiment of the present application, based on the above technical configuration, the first judgment module is configured to obtain a plurality of Chinese character image segments by dividing the Chinese character image, identify basic components corresponding to the Chinese character image segments, and determine that the basic components corresponding to the plurality of Chinese character image segments are the basic components contained in the Chinese character.

[0009] In one embodiment of the present application, based on the above technical configuration, the second judgment module determines a position map corresponding to the Chinese character based on the position of the basic component part in the Chinese character image, the position map includes a plurality of structural positions, and the position map is provided with the position code corresponding to each structural position, and is arranged to determine the structural position of the basic component part in the position map based on the position of the basic component part in the Chinese character image, and to set the position code of the structural position corresponding to the basic component part as the position code of the position corresponding to the basic component part.

[0010] In one embodiment of the present application, based on the above technical configuration, the second determination module is configured to: determine a map code of the location map before determining a location map corresponding to the Chinese character; determine an identification code of the location map for identifying the structural location; and obtain a location code corresponding to the structural location by combining the map code and the identification code corresponding to the structural location.

[0011] In one embodiment of the present application, based on the above technical configuration, the location map is a square array diagram, and the second determination module is configured to obtain the row number or column number of the square array, subtract 1 from the row number or column number to obtain the map code, and number the structural positions using alphabet letters according to the order of the structural positions.

[0012] In one embodiment of the present application, based on the above technical configuration, the apparatus further includes an extraction module, which is configured to obtain a target stroke, extract a candidate component part including the target stroke from the component part library, further display the candidate component parts, and in response to a component part selection command of selecting a target component part from the candidate component parts, display the target component part and display at least one position selection button for selecting a position of the target component part, and in response to a position selection command of selecting the position of the target component part received by the at least one position selection button, extract a target structure including a position of the target component part from the structure library, extract a candidate character having the target structure and where the target component part is at the position of the target component part from the Chinese character library, further display the candidate characters, and in response to a character selection command of selecting a character to be extracted from the candidate characters, extract the character to be extracted.

[0013] In one embodiment of the present application, based on the above technical configuration, the extraction module is configured to: obtain a base stroke in response to an extraction command, and further display the base stroke; and obtain a target stroke in response to a stroke selection command for selecting the target stroke from the base strokes, and obtain a candidate component part including the target stroke by searching the component library using a position code corresponding to the candidate component part including the target stroke, and further display the candidate component part.

[0014] In one embodiment of the present application, based on the above technical configuration, the device further includes a learning module, which is configured to obtain a learning character, extract a target structure corresponding to the learning character from the structure library based on the learning character, display the learning character and display a character structure diagram corresponding to the target structure, wherein the character structure diagram displays the positions of a plurality of components contained in the learning character, and in response to a component selection command received by the character structure diagram, extract a learning target component corresponding to the component selection command from the component library and extract a component description corresponding to the learning target component, and display the learning target component and the component description corresponding to the learning target component.

[0015] In one embodiment of the present application, based on the above technical configuration, the learning module is configured to obtain a structure code corresponding to the position of each component in the character structure diagram in response to a component look-up instruction, and to determine a learning target component corresponding to the component selection command in response to a component selection command received by the structure code, and to extract the learning target component corresponding to the component selection command from the component library.

[0016] In one embodiment of the present application, based on the above technical configuration, the device further includes a game module, which is configured to obtain a character structure diagram and a selection target character, display the character structure diagram and the selection target character, select a result character from the selection target characters according to a character selection command, mark and display the result character corresponding to the character selection command, and display the result character in the character structure diagram, compare the result character with a standard character to obtain a comparison result, and further display the comparison result.

[0017] In one embodiment of the present application, based on the above technical configuration, the game module is configured to extract a result structure corresponding to the result character from the structure library, compare the result position with the character structure diagram, and determine that the comparison result is correct if the structure position corresponds to the character structure diagram, and determine that the comparison result is incorrect if the structure position does not correspond to the character structure diagram.

[0018] According to one embodiment of the present application, there is provided a computer readable program medium having computer program instructions stored thereon, the computer program instructions, when executed by a computer, causing the computer to perform any one of the methods described above.

[0019] According to one embodiment of the present application, there is provided an electronic device comprising a memory and a processor, the memory storing computer-readable instructions, the electronic device implementing any one of the methods described above when the processor executes the computer-readable instructions.

[0020] According to one embodiment of the present application, a computer program product or computer program product is provided, comprising computer instructions stored on a computer readable storage medium, wherein a processor of a computing device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, thereby causing the computing device to perform the methods provided by the various alternative embodiments described above.

[0021] The technical configurations provided by the embodiments of the present application can provide the following beneficial effects.

[0022] In the technical configuration provided by some embodiments of the present application, the method includes obtaining a Chinese character image, determining basic components contained in the Chinese character based on the Chinese character image and determining the positions of the basic components in the Chinese character image, determining a position code corresponding to the positions of the basic components, and storing the basic components and the position codes corresponding to the positions of the basic components in a corresponding manner to obtain a component library in a database, so that the components are stored in a computer and can be extracted by a code, thereby enabling the database to be automatically generated without manual input, and reducing the difficulty of generating the database.

[0023] It is to be understood that the foregoing general description and the following detailed description are merely exemplary and are not restrictive of the present application. [Brief description of the drawings]

[0024] The drawings are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application, and together with the description serve to explain the principles of the present application. [Figure 1] FIG. 1 illustrates an exemplary system architecture to which the technical configurations of the embodiments of the present application can be applied. [Diagram 2] FIG. 2 illustrates a schematic flow chart of a database generation method according to one embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of a location map according to one embodiment of the present application; [Figure 4] FIG. 2 is a schematic diagram of a location map according to one embodiment of the present application; [Diagram 5] FIG. 2 is a schematic diagram of a location map according to one embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram of a location map according to one embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of a location map according to one embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram of a text search display interface according to an embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of a text search interface according to one embodiment of the present application. [Figure 10] FIG. 2 is a schematic diagram of a character learning interface according to one embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of a character game interface according to one embodiment of the present application. [Figure 12] FIG. 1 illustrates a schematic block diagram of a database generator according to one embodiment of the present application. [Figure 13] FIG. 2 is a hardware diagram of an electronic device in accordance with an illustrative embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments may be embodied in various forms and should not be construed as being limited to the examples set forth herein. On the contrary, these embodiments are provided to make this application more thorough and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.

[0026] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of the embodiments of the present application. However, those skilled in the art should understand that the technical configurations of the present application may be practiced without one or more specific details, or may be practiced using other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present application.

[0027] The block diagrams shown in the drawings are merely functional entities which do not necessarily correspond to physically separated entities, i.e. these functional entities can be realized in the form of software, or in the form of one or more hardware modules or integrated circuits, or in the form of different network and / or processor and / or microcontroller devices.

[0028] The flowcharts illustrated in the drawings are illustrative and do not necessarily include all contents and operations / steps, and do not necessarily require the operations / steps to be performed in the order described. For example, some operations / steps can be separated, some operations / steps can be combined or partially combined, and the actual execution order may be changed according to actual circumstances.

[0029] FIG. 1 is a diagram illustrating an exemplary system architecture 100 to which the technical configurations of the embodiments of the present application can be applied.

[0030] 1, the system architecture 100 may include a client 101, a network 102, and a server 103. The network 102 is a medium for providing a communication link between the client 101 and the server 103. The network 102 may include various connection types, such as, but not limited to, wired communication links and wireless communication links.

[0031] It should be understood that the number of clients 101, networks 102, and servers 103 in FIG. 1 are merely exemplary. There may be any number of clients 101, networks 102, and servers 103 depending on the requirements of the implementation. For example, the server 103 may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), big data, and artificial intelligence platforms. The client 101 may be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a robot, and the like.

[0032] In one embodiment of the present application, the client 101 obtains a Chinese character image, and based on the Chinese character image, determines the basic components contained in the Chinese character, determines the positions of the basic components in the Chinese character image, and determines a position code corresponding to the positions of the basic components. Furthermore, the basic components and the position codes corresponding to the positions of the basic components are stored in correspondence with each other to obtain a component library in a database. The components are stored in a computer and can be extracted by code, which allows the database to be automatically generated without manual input, thereby reducing the difficulty of generating the database.

[0033] In one embodiment of the present application, the server 103 obtains a Chinese character image uploaded by the client 101, and determines the basic components contained in the Chinese character based on the Chinese character image, determines the positions of the basic components in the Chinese character image, and determines a position code corresponding to the positions of the basic components. Furthermore, the basic components and the position codes corresponding to the positions of the basic components are stored in correspondence with each other, thereby obtaining a component library in a database, and the components are stored in a computer and can be extracted by a code, thereby enabling the database to be automatically generated without manual input, and reducing the difficulty of generating the database.

[0034] It should be noted that the database generation method provided by the embodiment of the present application is usually executed by the client 101, and correspondingly, the database generation device is usually installed in the client 101. However, in other embodiments of the present application, the server 103 can also have the same function as the client 101 to execute the database generation method provided by the embodiment of the present application.

[0035] The implementation details of the technical configuration of the embodiments of the present application are described in detail below.

[0036] 2 is a schematic diagram illustrating a flow chart of a database generation method according to an embodiment of the present application. The execution entity of the database generation method can be a server, for example, the client 101 shown in FIG.

[0037] As shown in FIG. 2, the database generating method includes at least steps S210 to S240, and details are as follows.

[0038] In step S210, a Chinese character image is obtained.

[0039] In one embodiment of the present application, the character can be an English character, a Chinese character, a Mongolian character, and so on.

[0040] In one embodiment of the present application, the Chinese character image can be acquired by the terminal that executes the database generating method, or can be acquired by other terminals and then sent to the terminal that executes the database generating method. The acquisition method can be photography, optical character recognition, etc.

[0041] In step S220, the basic components contained in the Chinese character are determined based on the Chinese character image, and the positions of the basic components in the Chinese character image are determined.

[0042] In one embodiment of the present application, a Chinese character image is segmented to obtain a plurality of Chinese character image segments, and basic components corresponding to each of the Chinese character image segments are identified, and the basic components corresponding to the plurality of Chinese character image segments are regarded as basic components included in the Chinese character.

[0043] In one embodiment of the present application, segmentation can be performed according to the continuity between strokes in the image, while in another embodiment of the present application, segmentation can be performed according to the radicals contained in the Chinese characters.

[0044] In one embodiment of the present application, the basic components included in the image segment can be regarded as the basic components corresponding to the image segment, that is, the basic components can be identified according to whether the strokes are connected or not connected. In another embodiment of the present application, the basic components can be radicals, and the radicals included in the Chinese character image segment can be the basic components corresponding to the Chinese character image segment.

[0045] In one embodiment of the present application, the position of a basic component in a Chinese character image can be determined according to the position of an image segment in the Chinese character image; for example, if an image segment is in the first position from the left, the position of the basic component corresponding to this image segment can be determined to be left-top.

[0046] In one embodiment of the present application, the position of the basic component in the image can be determined according to the positions of the image segments in the Chinese character image and the number of image segments at each position; for example, if the number of image segments located on the left side of the Chinese character image is 3, the position of the basic component located second from the left is left-center, and if the number of image segments located on the left side of the Chinese character image is 4, the position of the basic component located second from the left is left-top-center.

[0047] Continuing with reference to FIG. 2, in step S230, a location code corresponding to the location of the base component is determined.

[0048] In one embodiment of the present application, position codes corresponding to the locations of base components can be manually preset.

[0049] In one embodiment of the present application, a position map corresponding to the Chinese character is determined based on the position of a basic component part in the Chinese character image, the position map includes a plurality of structural positions, and a position code corresponding to the structural position in the position map is provided; a structural position of the basic component part in the position map is determined based on the position of the basic component part in the Chinese character image, and the position code of the structural position corresponding to the basic component part is the position code of the position corresponding to the basic component part.

[0050] In one embodiment of the present application, before determining a location map corresponding to a Chinese character, a map code of the location map is determined, and an identification code of the location map for identifying the structural location is determined, and a location code corresponding to the structural location is obtained by combining the map code with the identification code corresponding to the structural location.

[0051] In one embodiment of the present application, the location map may be a square array, and the number of rows or columns of the square array is obtained, and 1 is subtracted from the number of rows or columns to obtain the map code. For example, if the location map is a square array with 2 rows and 2 columns, the map code is 1, and if the location map is a square array with 4 rows and 4 columns, the map code is 3. In one embodiment of the present application, the structural positions are numbered using alphabet letters according to the order of the structural positions, and the identification codes of the structural positions are obtained. For example, the structural positions are numbered using alphabet letters for each row from left to right, and the identification codes are a, b, c, d.... The location code obtained by combining the map code and the identification code is 1a, 1b, 1c, 1d or 4a, 4b, 4c, 4d.... 4y, as shown in Figures 3 to 7. Figures 3 to 7 are schematic diagrams of a location map according to one embodiment of the present application.

[0052] In step S240, the basic components and the position codes corresponding to the basic components are stored in association with each other to obtain a component library in the database.

[0053] In one embodiment of the present application, a Chinese character structure can be obtained, for example, a left-right structure, a front-back structure, a front-center-back structure, a top-bottom structure, and then the Chinese character structure is stored in a structure library in a database, and the Chinese characters are stored in a Chinese character library in the database.

[0054] In one embodiment of the present application, the Chinese character structure can be determined based on the location of the basic components.

[0055] In the embodiment shown in Fig. 2, a Chinese character image is obtained, and based on the Chinese character image, basic components contained in the Chinese character are determined, and the positions of the basic components in the Chinese character image are determined, and the position codes corresponding to the positions of the basic components are determined, and the basic components and the position codes corresponding to the basic components are stored in association with each other to obtain a component library in a database. The components are stored in a computer and can be extracted by codes, which allows the database to be automatically generated without manual input, and reduces the difficulty of generating the database.

[0056] In one embodiment of the present application, the method further includes: obtaining a target stroke; extracting a candidate component including the target stroke from the component library; displaying the candidate components; displaying the target component and at least one position selection button for selecting the position of the target component in response to a component selection command for selecting the target component from the candidate components; extracting a target structure including the position of the target component from the structure library in response to a position selection command for selecting the position of the target component received by the at least one position selection button; extracting a candidate character having the target structure and having the target component at the position of the target component from the Chinese character library; displaying the candidate characters; and extracting the character to be extracted in response to a character selection command for selecting the character to be extracted from the candidate characters. As shown in FIG. 8, FIG. 8 is a schematic diagram of a character search interface according to one embodiment of the present application.

[0057] In one embodiment of the present application, the target stroke may be input by a user at the client 101, for example, the target stroke may be input by handwriting. A constituent part may be the same as a stroke or a combination of multiple strokes. A constituent part may be determined by continuity, i.e., connected strokes may be determined as a constituent part, and a user may easily use this method without knowledge of radicals. In another embodiment of the present application, the constituent part may be a radical.

[0058] In one embodiment of the present application, a basic stroke is obtained in response to an extraction command, and the basic stroke is displayed. In response to a stroke selection command for selecting a target stroke from the basic stroke, the target stroke is obtained, and a position code corresponding to the candidate part including the target stroke is used to search from a part library to obtain a candidate part including the target stroke, and the candidate part is displayed. The extraction command can be inputted into the interface shown in Fig. 9, which is a schematic diagram illustrating the transition of a terminal interface of a character search method according to one embodiment of the present application. After clicking the GAMES button in the left diagram of Fig. 9 and selecting the GAMES button, the color of the GAMES button becomes dark, and the interface in the right diagram of Fig. 9 appears, which indicates that the user has inputted the extraction command.

[0059] In one embodiment of the present application, basic strokes can be preset, for example, when the search target character is a Chinese character, the basic strokes include, for example, the following strokes: JPEG2025505904000002.jpg19129 In another embodiment of the present application, the preset basic strokes may be, for example: JPEG2025505904000003.jpg16126

[0060] In one embodiment of the present application, target strokes and base strokes can be identified from the search subject character.

[0061] In one embodiment of the present application, a Chinese character image of the character to be searched can be obtained, and by performing segmentation on the Chinese character image, a plurality of Chinese character image segments can be obtained. Strokes at a given position in each Chinese character image segment are obtained, and based on the strokes at the given position, basic strokes are determined. Among them, the positions include the entire image, top, bottom, left, right, center, outside, upper left, upper right, lower left, and lower right.

[0062] In one embodiment of the present application, characters can be segmented and segmented according to whether there is connectivity between strokes. Strokes at the upper left, left, or upper position in the image segment can be used as the strokes at the given position. The acquisition of strokes can be performed in the order of upper left, left, and upper, that is, first, the stroke at the upper left position is acquired. If the acquisition fails, the stroke at the left position is acquired. If the acquisition fails, the stroke at the upper position is acquired. Strokes at the given position in each image segment can be used as basic strokes. In other embodiments of the present application, the starting stroke within the Chinese character image segment and the preset strokes related to the starting stroke at a predetermined image position in the Chinese character image are used as basic strokes. For example, when the starting stroke of the Chinese character image segment at a predetermined image position in the Chinese character image is よこ(一), the preset strokes related to the starting stroke may include: JPEG2025505904000004.jpg17111

[0063] In one embodiment of the present application, the basic strokes can be displayed on the stroke display page to prompt the user to select target strokes from the basic strokes. The basic strokes displayed on the stroke display page can be changed. When a stroke change command rather than a stroke selection command is received, the basic strokes can be replaced with alternative candidate basic strokes. The stroke change command may be an operation of swiping horizontally or vertically on the screen.

[0064] In one embodiment of the present application, in response to a stroke selection command received by the stroke display page, candidate components can be extracted, the stroke selection screen can be switched to a component selection screen, the candidate components are displayed on the component selection screen, and the screen switching prompts the user to finish the stroke selection and start component selection. The candidate components on the component selection screen can also be changed, and all candidate components within one component selection screen can be displayed. The candidate components can be changed in response to a component change command.

[0065] In one embodiment of the present application, candidate components can be extracted that have the target stroke as the starting stroke, thus significantly reducing the number of components to be obtained compared to obtaining all components that include the target stroke, and speeding up the selection of the target component.

[0066] In one embodiment of the present application, a location of a target stroke in a candidate portion can be selected, and the candidate portion is determined according to both the target stroke and the location of the target stroke.

[0067] In one embodiment of the present application, if a candidate portion is not found, the target stroke is the searched character, and if a candidate portion is not found, the target portion is the searched character.

[0068] In one embodiment of the present application, in response to a component selection command received by the component selection screen, the component selection screen is switched to a character selection screen, thereby displaying target components and position selection buttons on the character selection screen and prompting the user to select characters by switching pages.

[0069] In one embodiment of the present application, when switching to the character selection screen, a position selection button for receiving a selected preset position can be set at the same time. When the character selection screen is displayed, the preset position can be acquired, a preset character having a target component at the preset position is extracted, and the preset character is displayed on the character selection screen. In response to a position selection command for selecting a target position by the position selection button, a candidate character whose target component is at the target position is extracted, and the preset character is replaced with the candidate character on the character selection screen.

[0070] In one embodiment of the present application, the position selection buttons may be multiple, and after obtaining the preset positions, one or more position selection buttons corresponding to the preset positions are marked on the character selection screen. After obtaining a position selection command, one or more position selection buttons corresponding to the preset positions are not marked on the character selection screen, and one or more position selection buttons corresponding to the position selection command are marked. The marking manner may be realized by a differentiated display manner, for example, the marked buttons may be highlighted.

[0071] In one embodiment of the present application, in accordance with a position selection command, one or more position selection buttons selected on a character selection screen can be obtained as one or more position selection buttons corresponding to the position selection command, and the positions of the one or more position selection buttons corresponding to the position selection command among the multiple position selection buttons can be obtained as target positions; for example, when a button in the "up" position among the multiple position selection buttons is selected, the target position can be determined to be "up."

[0072] In one embodiment of the present application, the number of position selection buttons is at least nine, and the position selection buttons are arranged in a square array, for example, when there are nine position selection buttons, the nine position selection buttons are arranged in a square array of three rows and three columns to indicate "inside", "center", and "outside" of the displayed positions. In this way, many positions can be displayed.

[0073] In one embodiment of the present application, the target position can be obtained by fuzzy matching. If there are nine position selection buttons, when the position selection button in the first row from the left is selected, the target position can be the left or the middle left, so that more potential candidate characters can be obtained.

[0074] In one embodiment of the present application, when a stroke addition command is received, next candidate strokes located within the same component as the target stroke are extracted, the next candidate strokes are displayed, and in response to a next stroke selection command for selecting a next target stroke from the next candidate strokes, the next target stroke is obtained, a candidate component including the target stroke and the next target stroke is searched for, and the target stroke and the next target stroke are displayed, as well as the candidate component including the target stroke and the next target stroke, thereby further reducing the number of candidate components to be obtained and accelerating the search speed.

[0075] In one embodiment of the present application, before responding to the next stroke selection command, in response to the stroke addition command received by the stroke addition button, the target stroke can be removed from the position previously reserved for displaying the next target stroke in the stroke display area; in response to the next stroke selection command, the target stroke is displayed in the stroke display area and the next target stroke is displayed in the previously reserved position of the stroke display area, so that the strokes in the stroke display area can be displayed in appropriate positions; for example, when only the target stroke is in the stroke selection area, the target stroke can be located in the center of the stroke display area; and in response to the next stroke selection command, the target stroke is moved from the center to one side, for example to the left, so that half of the stroke display area of ​​the other layer is the previously reserved position of the next target stroke; similarly, in response to the stroke addition command, one stroke can be added, which is arranged in the stroke display area according to the stroke selection order, so that the user can quickly obtain characters.

[0076] In one embodiment of the present application, when a component adding command is received, a target stroke of the next component part is obtained, a next candidate component part including the target stroke of the next component part is obtained, and the next candidate component part is displayed. In response to a component selecting command to select a next target component part from the next candidate component part, the next target component part is displayed, and at least one position selection button for selecting a position of the next target component part is displayed. In response to a position selection command to select a position of the next target component part received by the at least one position selection button, a next target position corresponding to the position selection command is obtained, the target component part is located at the target position, a candidate character that the next target component part is located at the next target position is obtained, and the candidate character is displayed, wherein the process of obtaining the next target component part may refer to a process of searching for a target component part.

[0077] In one embodiment of the present application, if no candidate character is found, the target component is taken as the search character.

[0078] In one embodiment of the present application, the database can also be used for character learning. A learning target character can be obtained, and a target structure corresponding to the learning target character can be obtained from a structure library based on the learning target character, and the learning target character is displayed, and a character structure diagram corresponding to the target structure is displayed, and the character structure diagram is configured to display the positions of a plurality of components included in the learning target character. In response to a component selection command received by the character structure diagram, a learning target component corresponding to the component selection command is obtained from the component library, and a component description corresponding to the learning target component is obtained. The learning target component and the component description corresponding to the learning target component are displayed, as shown in Figure 10, which is a schematic diagram of a character learning interface according to one embodiment of the present application.

[0079] In one embodiment of the present application, in response to a component search command, a structure code corresponding to each component position in the character structure diagram can be obtained, and in response to a component selection command received by the structure code, a learning target component corresponding to the component selection command is determined, and the learning target component corresponding to the component selection command is obtained from the component library.

[0080] In one embodiment of the present application, the database can also be used in a character game, and a character structure diagram and selectable characters can be obtained, and the character structure diagram and the selectable characters are displayed. In response to a character selection command for selecting a result character selected from the selectable characters, the result character corresponding to the character selection command is marked and displayed, the result character is displayed on the character structure diagram, and the result character is compared with a standard character to obtain and display a comparison result.

[0081] In one embodiment of the present application, a result structure corresponding to the result character can be extracted from the structure library, and the result position is compared with the character structure diagram, and if the structure position corresponds to the character structure diagram, the comparison result is determined to be correct, and if the structure position does not correspond to the character structure diagram, the comparison result is determined to be incorrect. As shown in Figure 11, Figure 11 is a schematic diagram of a character game interface according to one embodiment of the present application.

[0082] The following describes an embodiment of the device of the present application, which can be used to execute the database generation method in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the above embodiment of the database generation method of the present application.

[0083] FIG. 12 is a schematic block diagram of a database generator according to one embodiment of the present application.

[0084] As shown in FIG. 12, a database generating apparatus 1200 according to an embodiment of the present application includes an acquiring module 1201, a first determining module 1202, a second determining module 1203, and a storing module 1204.

[0085] According to one aspect of an embodiment of the present application, based on the above technical configuration, the acquisition module 1201 is arranged to acquire a Chinese character image, the first judgment module 1202 is arranged to determine basic components contained in the Chinese character based on the Chinese character image and to determine the positions of the basic components in the Chinese character image, the second judgment module 1203 is arranged to determine a position code corresponding to the position of the basic component part, and the storage module 1201 stores the basic components and the position codes corresponding to the basic components in association with each other, thereby obtaining a component library in a database.

[0086] In one embodiment of the present application, based on the above technical configuration, after acquiring a Chinese character image, the acquiring module 1201 is configured to acquire a Chinese character structure, store the Chinese character structure in a structure library in a database, and store the Chinese character in a Chinese character library in the database.

[0087] In one embodiment of the present application, based on the above technical configuration, the first determination module 1202 is configured to obtain a plurality of Chinese character image segments by performing division on the Chinese character image, identify basic components corresponding to each Chinese character image segment, and determine that the basic components corresponding to the plurality of Chinese character image segments are basic components included in the Chinese character.

[0088] In one embodiment of the present application, based on the above technical configuration, the second determination module 1203 is configured to determine a position map corresponding to a Chinese character based on the position of a basic component part in the Chinese character image, the position map including a plurality of structural positions, provide a position code corresponding to the structural position of the position map, determine a structural position of the basic component part in the position map based on the position of the basic component part in the Chinese character image, and make the position code of the structural position corresponding to the basic component part the position code of the position corresponding to the basic component part.

[0089] In one embodiment of the present application, based on the above technical configuration, the second determination module 1203 is configured to determine a map code of the position map before determining a position map corresponding to a Chinese character, determine an identification code of the position map for identifying each structural position, and obtain a position code corresponding to the structural position by combining the map code and the identification code corresponding to the structural position.

[0090] In one embodiment of the present application, based on the above technical configuration, the location map is a square array map, and the second determination module 1203 includes obtaining the number of rows or columns of the square array, subtracting 1 from the number of rows or columns to obtain a map code, and numbering the structural positions using alphabetical letters according to the order of the structural positions, as an identification code of the structural positions.

[0091] In one embodiment of the present application, based on the above technical configuration, the method further includes an extraction module, which is configured to obtain a target stroke, extract a candidate component part including the target stroke from a component part library, display the candidate component parts, display the target component part and display at least one position selection button for selecting a position of the target component part in response to a component part selection command for selecting the position of the target component part received by the at least one position selection button, extract a target structure including the position of the target component part from a structure library in response to a position selection command for selecting the position of the target component part received by the at least one position selection button, extract a candidate character having the target structure and whose target component part is at the position of the target component part from a Chinese character library, and further display the candidate characters, and extract the character to be extracted in response to a character selection command for selecting a character to be extracted from the candidate characters.

[0092] In one embodiment of the present application, based on the above technical configuration, the extraction module is configured to obtain a base stroke in response to an extraction command, and display the base stroke; to obtain a target stroke in response to a stroke selection command for selecting a target stroke from the base strokes, and obtain a candidate part including the target stroke by searching from a part library using a position code corresponding to the candidate part including the target stroke, and display the candidate part.

[0093] In one embodiment of the present application, based on the above technical configuration, the device further includes a learning module, which is configured to obtain a learning character, extract a target structure corresponding to the learning character from a structure library based on the learning character, display the learning character and display a character structure diagram corresponding to the target structure, wherein the character structure diagram displays the positions of a plurality of components contained in the learning character, and, in response to a component selection command received by the character structure diagram, extract a learning target component corresponding to the component selection command from the component library and extract a component description corresponding to the learning target component, and display the learning target component and the component description corresponding to the learning target component.

[0094] In one embodiment of the present application, based on the above technical configuration, the learning module is configured to obtain a structure code corresponding to the position of each component in the character structure diagram in response to a component search command, and to determine a learning target component corresponding to the component selection command in response to a component selection command received by the structure code, and to extract the learning target component corresponding to the component selection command from the component library.

[0095] In one embodiment of the present application, based on the above technical configuration, the device further includes a game module, which is configured to obtain a character structure diagram and a selection target character, display the character structure diagram and the selection target character, and in response to a character selection command for selecting a result character from the selection target character, mark and display the result character corresponding to the character selection command, and display the result character on the character structure diagram, and compare the result character with a standard character to obtain and display a comparison result.

[0096] In one embodiment of the present application, based on the above technical configuration, the game module is configured to extract a result structure corresponding to a result character from a structure library, compare the result position with the character structure diagram, and determine that the comparison result is correct if the structure position corresponds to the character structure diagram, and determine that the comparison result is incorrect if the structure position does not correspond to the character structure diagram.

[0097] Those skilled in the art can appreciate that individual aspects of the present application can be implemented as a system, a method, or a program product. Accordingly, each aspect of the present application can be embodied in the following forms: an entirely hardware implementation, an entirely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be generally referred to herein as a "circuit," "module," or "system."

[0098] An electronic device 1300 according to this embodiment of the present application is described as follows with reference to Fig. 13. The electronic device 1300 shown in Fig. 13 is merely an example and does not limit the scope of functionality and application of the embodiment of the present invention.

[0099] As shown in FIG. 13, the electronic device 1300 is in the form of a general-purpose computing device, and the components of the electronic device 1300 may include, but are not limited to, at least one processing unit 1301, at least one memory unit 1302, a bus 1303 connecting different components (including the processing unit 1301 and the memory unit 1302), and a display unit 1304.

[0100] Here, the storage unit stores program code, which can be executed by the processing unit 1301 to enable the processing unit 1301 to perform steps according to various exemplary embodiments of the present application as described in the "Method Embodiments" section above in this specification.

[0101] The storage unit 1302 may comprise computer-readable media in the form of volatile memory, such as random access memory (RAM) 1321 and / or cache memory 1322, and may further include a read-only memory unit (ROM) 1323.

[0102] The storage unit 1302 may also include a program / utility tool 1324 having a set (at least one) of program modules 1325, including, but not limited to, an operating system, one or more application programs, other program modules, and program data. Each of these examples, or some combination thereof, may include implementation in a network environment.

[0103] Bus 1303 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.

[0104] The electronic device 1300 may also communicate with one or more external devices (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that allow a user to interact with the electronic device 1300, and / or any device (e.g., a router, a modem, etc.) that allows the electronic device 1300 to communicate with one or more other computing devices. Such communication may occur via an input / output (I / O) interface 1305. Additionally, the electronic device 1300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 1306. As shown, the network adapter 1306 communicates with other modules of the electronic device 1300 via a bus 1303. Although not shown, other hardware and / or software modules may be used in conjunction with electronic device 1300, including, but not limited to, microcode, device drivers, a redundant array of independent disks (RAID) system, tape drives, data backup storage systems, and the like.

[0105] Those skilled in the art can easily understand from the above description of the embodiments that the exemplary embodiments described herein can be realized by software or by a combination of software and necessary hardware. Therefore, the technical configuration according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (e.g., CD-ROM, USB flash drive, mobile hard drive) or network, and may include some instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present application.

[0106] According to one embodiment of the present application, a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned methods of the present specification is stored. In some possible implementations, individual aspects of the application may also be embodied in the form of a program product including program code. When the program product is executed on a terminal device, the program code is executed to cause the terminal device to execute steps according to various exemplary embodiments of the present application described in the above-mentioned exemplary method section of the present specification.

[0107] According to one embodiment of the present application, a program product for implementing the above method may be a portable compact disk read only memory (CD-ROM), containing program code, and capable of being executed on a terminal device such as a personal computer. However, the program product of the present application is not limited thereto. Here, the readable storage medium may be any tangible medium that contains or stores a program, which can be used by or in combination with an instruction execution system, apparatus, or device.

[0108] The program product may use any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage media include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of these.

[0109] A computer-readable signal medium may include a propagated data signal in which computer-readable program code is embodied, for example in baseband or as part of a carrier wave. Such a propagated signal may take a variety of forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. A computer-readable medium may be any computer-readable medium that can transmit, propagate, or transfer a program for use in or in connection with an instruction execution system, apparatus, or device other than a computer-readable storage medium.

[0110] The program code embodied in the computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, fiber optic cable, RF, etc., or any suitable combination of the foregoing.

[0111] Computer program code for carrying out the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, and traditional procedural programming languages ​​such as "C" or similar programming languages. The program code may run entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may have a connection established to an external computer (e.g., utilizing an Internet connection using an Internet Service Provider).

[0112] Furthermore, the above figures are merely schematic illustrations of the processes involved in the method according to the exemplary embodiments of the present application and are not intended to be limiting. It is readily understood that the processes depicted in the above figures are not intended to indicate or limit the chronological order of these processes. Furthermore, it is readily understood that these processes can be performed, for example, synchronously or asynchronously in multiple modules.

[0113] It is to be understood that the present application is not limited to the precise construction described above and illustrated in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof, which may be limited only by the appended claims.

Claims

1. A database generation method, comprising the steps of: Obtaining a Kanji image; determining a base component part included in the Chinese character based on the Chinese character image, and determining a position of the base component part in the Chinese character image; determining a location code corresponding to a location of the base component; and and storing the basic components and position codes corresponding to the positions of the basic components in a corresponding manner to obtain a component library in a database. The database generating method comprising:

2. After obtaining the Chinese character image, obtaining a structure of the Chinese character; storing the structure of the Chinese character in a structure library in the database; and storing said kanji in a kanji library in said database; The method for generating a database according to claim 1, further comprising:

3. In the step of determining a base component contained in the Chinese character, performing segmentation on the Chinese character image to obtain a plurality of Chinese character image segments; identifying a basic component corresponding to the Chinese character image segment; and The basic components corresponding to the plurality of Chinese character image segments are defined as the basic components included in the Chinese character.

2. The method of claim 1, wherein the database is generated based on the first and second inputs.

4. determining a location code corresponding to a location of the base component, determining a position map corresponding to the Chinese character based on the position of the base component in the Chinese character image, the position map including a plurality of structural positions, the position code corresponding to the structural positions being provided in the position map; determining a structural position of the base component in the position map based on a position of the base component in the Chinese character image; and A position code of a structural position corresponding to the basic component is set to a position code of a position corresponding to the basic component.

2. The method of claim 1, wherein the database is generated based on the first and second inputs.

5. before determining a position map corresponding to the Chinese character, further determining a map code for the location map; determining an identification code of the location map for identifying the structure location; and obtaining a location code corresponding to the structure location by combining the map code with the identification code corresponding to the structure location.

5. The method of claim 4, wherein the database is generated based on the first and second inputs.

6. the location map is a square array diagram; The step of determining a map code of the location map comprises: obtaining a number of rows or columns of the square array and subtracting one from the number of rows or columns to obtain the map code; and determining an identification code of the location map for identifying the structure location, numbering the structural positions using alphabetical letters according to the order of the structural positions to provide an identification code for the structural positions; 6. The method for generating a database according to claim 5.

7. obtaining a target stroke, extracting candidate components from the component library that include the target stroke, and displaying the candidate components; displaying the target component and at least one position selection button for selecting a position of the target component in response to a component selection command for selecting a target component from the candidate components; in response to a location selection command received by said at least one location selection button for selecting a location of said target component; extracting a target structure from the structure library, the target structure including the position of the target component, extracting a candidate character from the Chinese character library, the candidate character having the target structure and the target component being at the position of the target component, and displaying the candidate character; and extracting the extraction target character in response to a character selection command for selecting an extraction target character from the candidate characters.

3. The method of claim 2, wherein the database is generated based on the first and second inputs.

8. In the step of obtaining a target stroke, extracting candidate components including the target stroke from the component library, and displaying the candidate components, acquiring basic strokes in response to an extraction command, and displaying the basic strokes; in response to a stroke selection command for selecting the target stroke from the base strokes, acquiring the target stroke, and searching in the component library using a position code corresponding to the candidate component including the target stroke to obtain a candidate component including the target stroke; And, displaying said candidate components; 8. The method for generating a database according to claim 7.

9. obtaining a training character; and extracting a target structure corresponding to the training character from the structure library based on the training character; displaying the learning object character and displaying a character structure diagram corresponding to the target structure, the character structure diagram displaying positions of a plurality of components included in the learning object character; extracting a learning target component corresponding to the component selection command from the component library in response to the component selection command received by the character structure diagram, and extracting a component description corresponding to the learning target component; and displaying the learning object components and component descriptions corresponding to the learning object components.

3. The method of claim 2, wherein the database is generated based on the first and second inputs.

10. Extracting a learning target component corresponding to a component selection command from the component library in response to the component selection command received by the character structure diagram, obtaining a structure code corresponding to a position of each component in the character structure diagram in response to a component search command; in response to a component selection command received by the structure code, determining a component to be studied corresponding to the component selection command, and extracting the component to be studied corresponding to the component selection command from the component library; 10. The method of claim 9, wherein the database is generated based on the first and second inputs.

11. Obtaining character structure diagram and selection target characters; displaying the character structure diagram and the selection target characters; selecting a result character from the selection target characters in response to a character selection command, marking the result character corresponding to the character selection command, and displaying the result character in the character structure diagram; comparing the result character with a standard character to obtain a comparison result; and displaying the comparison result.

3. The method of claim 2, wherein the database is generated based on the first and second inputs.

12. The step of comparing the result character with a standard character includes: extracting a result structure from the structure library that corresponds to the result character; comparing the structure location with the character structure diagram; and If the structure position corresponds to the character structure diagram, the comparison result is determined to be positive; If the structure position does not correspond to the character structure diagram, determining that the comparison result is incorrect.

12. The method of claim 11, wherein the database is generated based on the first and second inputs.

13. A database generating device, The apparatus includes an acquisition module, a first determination module, a second determination module, and a storage module, the acquisition module is configured to acquire a Chinese character image; the first determination module is configured to determine, based on the Chinese character image, a base component included in the Chinese character and to determine a position of the base component in the Chinese character image; the second determination module is configured to determine a location code corresponding to a location of the base component; the storage module is arranged to store the basic components in correspondence with location codes corresponding to locations of the basic components to obtain a component library in a database; The database generating device according to claim 1,

14. A memory and a processor, The memory stores a computer program, which, when executed by the processor, implements the method according to any one of claims 1 to 12.

1. An electronic device comprising:

15. The computer program instructions are stored, A computer program medium comprising computer program instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • A method for processing Chinese character information and a method for splitting and storing Chinese characters.

    CN102262683A

  • Electronic apparatus and electronic dictionary device

    JP2005165533A

  • Method and apparatus for constructing Chinese characters, method and apparatus for constructing character models, and method for constructing a font library.

    JP2014522048A

  • Method and apparatus for constructing an intermediate character library

    JP2016532897A