Text matching method and device for graphic control, medium, and electronic device

By acquiring and matching images and logos of graphic controls, the problem of inaccurate matching of graphic controls and text information in the prior art is solved, and the accuracy and completeness of voice broadcast for visually impaired people is achieved.

CN112287738BActive Publication Date: 2024-10-18BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010313405.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-20
Publication Date
2024-10-18
Estimated Expiration
2040-04-20

AI Technical Summary

Technical Problem

The existing technology cannot accurately match the mobile terminal graphic controls and their corresponding text information, resulting in the visually impaired being unable to fully understand the information of the graphical user interface.

Method used

By obtaining the image and logo of the graphic control, text recognition technology is used to identify the text information in the image. If the image does not contain text, the corresponding text information is determined from the information matching database, and the text information is matched with the logo for broadcasting .

Benefits of technology

It achieves accurate matching of graphic controls and text information, improves the completeness and accuracy of text information determination, and helps visually impaired people understand the content of the graphical user interface through voice.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112287738B_ABST
    Figure CN112287738B_ABST
Patent Text Reader

Abstract

The present disclosure provides a text matching method for a graphic control, a text matching device for a graphic control, a computer-readable storage medium, and an electronic device, and relates to the field of image information technology. A text matching method for a graphic control includes: obtaining an image of a graphic control and an identifier of the graphic control; performing text recognition on the image of the graphic control; if the image of the graphic control does not contain text information, determining the text information corresponding to the image of the graphic control from an information matching database; matching the text information with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control. The present disclosure can accurately match the graphic control with the corresponding text information.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of information technology and the popularization of the Internet, people's lives and work have undergone tremendous changes. Especially for the visually impaired, they can use the Internet for learning, shopping, etc.

[0003] At present, when a visually impaired person uses a mobile terminal, the mobile terminal can first obtain the text content of the graphical user interface of the mobile terminal, and then use a screen reader to convert the text content into voice and transmit it to the visually impaired person so that the visually impaired person can understand the text content of the graphical user interface. In addition to the text content, the graphical user interface of the mobile terminal also displays various functions or information through various graphic controls.

[0004] However, the mobile terminal cannot obtain corresponding functions or information from various graphic controls, nor can it accurately match various graphic controls with corresponding functions or information, so that the visually impaired can only understand part of the information of the mobile terminal graphical user interface.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a text matching method for a graphic control, a text matching device for a graphic control, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the problem that a graphic control cannot be accurately matched with the corresponding text information due to the limitations and defects of the relevant technology.

[0007] According to the first aspect of the present disclosure, a text matching method for a graphic control is provided, comprising: obtaining an image of the graphic control and an identifier of the graphic control; performing text recognition on the image of the graphic control; if the image of the graphic control does not contain text information, determining text information corresponding to the image of the graphic control from an information matching database; matching the text information with the identifier of the graphic control so as to broadcast the matched text information based on the identifier of the graphic control.

[0008] According to a second aspect of the present disclosure, a text matching device for a graphic control is provided, comprising: an information acquisition module for acquiring an image of the graphic control and an identifier of the graphic control; a text recognition module for performing text recognition on the image of the graphic control; a text determination module for determining text information corresponding to the image of the graphic control from an information matching database if the image of the graphic control does not contain text information; and a text matching module for matching the text information with the identifier of the graphic control so as to broadcast the matched text information based on the identifier of the graphic control.

[0009] Optionally, the text determination module may be configured to execute: determining whether the information storage database contains text information based on the identification of the graphic control; if the information storage database does not contain text information, determining the text information corresponding to the image of the graphic control from the information matching database.

[0010] Optionally, the text matching device of the graphic control also includes: a text comparison module, which can be configured to execute: if the image of the graphic control contains text information, the text information is matched with the identification of the graphic control, so as to broadcast the matching text information based on the identification of the graphic control.

[0011] Optionally, the text comparison module can also be configured to execute: if the image of the graphic control contains text information, determine the text information as the first matching information; determine the second matching information corresponding to the image of the graphic control from the information matching database; and match the first matching information, the second matching information and the identifier of the graphic control.

[0012] Optionally, the information acquisition module may also be configured to execute: acquiring an image of a graphic control on the terminal device, and determining an identifier of the graphic control based on position information of the image of the graphic control on the terminal device.

[0013] Optionally, the text matching module can also be configured to perform: determining whether the amount of text in the text information is greater than a preset amount; if the amount of text is greater than the preset amount, determining the text information as candidate text; and determining the target text information corresponding to the position information from the candidate text; and matching the target text information with the identifier of the graphic control.

[0014] Optionally, the text recognition module can also be configured to execute: performing text recognition on the image of the graphic control within a preset time; if no text recognition result corresponding to the image of the graphic control is obtained within the preset time, sending a reminder message to the terminal device to reacquire the image of the graphic control.

[0015] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the text matching method of the graphic control as described above is implemented.

[0016] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the text matching method of the graphic control as described above.

[0017] The exemplary embodiments of the present disclosure have the following beneficial effects:

[0018] In the technical solutions provided by some embodiments of the present disclosure, first, the image of the graphic control and the identifier of the graphic control are obtained; then, the image of the graphic control is subjected to text recognition; then, if the image of the graphic control does not contain text information, the text information corresponding to the image of the graphic control is determined from the information matching database; then, the text information is matched with the identifier of the graphic control so that the matched text information is broadcast based on the identifier of the graphic control. On the one hand, the present disclosure can identify whether the image of the graphic control contains text information, avoid using only the image of the graphic control to determine the text information corresponding to the image of the graphic control, and improve the integrity of the text information determination process. On the other hand. The present disclosure can match the identifier of the graphic control with the determined text information, so that the graphic control and the corresponding text information are accurately matched, which is conducive to the server accurately obtaining the text information corresponding to the image of the graphic control based on the identifier of the graphic control, and further, it is helpful for the terminal device to play the voice corresponding to the matched text information based on the identifier of the graphic control in the future, so as to facilitate the user to perceive.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 A flowchart of a text matching method for a graphic control according to an exemplary embodiment of the present disclosure is schematically shown;

[0022] Figure 2 A schematic diagram schematically shows a flow chart of a text matching method for a graphic control according to an exemplary embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram schematically shows a flow chart of a text matching method for a graphic control according to another exemplary embodiment of the present disclosure;

[0024] Figure 4 An interactive diagram schematically illustrates a text matching method for a graphic control according to an exemplary embodiment of the present disclosure;

[0025] Figure 5 A block diagram schematically shows a text matching device for a graphic control according to an exemplary embodiment of the present disclosure;

[0026] Figure 6 A block diagram schematically shows a text matching device for a graphic control according to another exemplary embodiment of the present disclosure;

[0027] Figure 7 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0029] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0030] It should be noted that, in the present disclosure, the terms "include" and "comprising" are used to express an open-ended meaning of inclusion, and mean that in addition to the listed elements / components / etc., there may be other elements / components / etc. In addition, the terms "first" and "second" used in the present disclosure are only for the purpose of distinction and should not be used as limitations of the present disclosure.

[0031] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation.

[0032] With the rapid development of the Internet and mobile terminal devices, the visually impaired can use Internet technology on mobile terminal devices to study, shop, etc.

[0033] In the case where a visually impaired person operates a mobile terminal device, the existing technical solution includes: the mobile terminal can determine the text content in the graphical user interface, and use a screen reader program to output the text content in the form of voice so that the visually impaired person can understand the content on the graphical user interface. However, the mobile terminal cannot obtain and output the information in the graphic control of the graphical user interface through the screen reader program, nor can it match the graphic control with the corresponding information so that the visually impaired person can understand the content of the graphic control of the graphical user interface.

[0034] To address this problem, the present disclosure proposes a text matching method for a graphic control.

[0035] It should be noted that, in the exemplary embodiment of the present disclosure, the text matching method of the graphic control described below can generally be implemented by a server, that is, the various steps of the text matching method of the graphic control can be executed by the server. In this case, the text matching device of the graphic control can be configured in the server.

[0036] In addition, the text matching method of the graphic control can also be implemented by a terminal device (such as a mobile phone, a tablet, a personal computer, etc.), that is, the various steps of the text matching method of the graphic control can be executed by the terminal device. In this case, the text matching device of the graphic control can be configured in the terminal device.

[0037] Below, each step of the text matching method for a graphic control in this example implementation will be described in more detail with reference to the accompanying drawings and embodiments.

[0038] Figure 1 The flowchart of the text matching method of the graphic control of the exemplary embodiment of the present disclosure is schematically shown. In the following example description, the server is used as the execution subject for example description. Figure 1 , the text matching method of the graphic control may include the following steps:

[0039] S102. Obtain an image of a graphic control and an identifier of the graphic control.

[0040] In an exemplary embodiment of the present disclosure, a graphic control may be displayed in the form of an image, may respond to a user's interactive instructions and provide information or functions corresponding to the graphic control. The image of the graphic control may contain text information and an image, or may not contain text information. The image of the graphic control may be determined based on the click position of the visually impaired person on the graphical user interface of the terminal device, or may be determined by the terminal device based on the hierarchical structure and position coordinates of the graphic control. Among them, the image may be obtained by the terminal device by intercepting the image of the graphical user interface.

[0041] The identification of the graphic control can be the storage number of the graphic control on the server or terminal device, or it can be determined based on the location information of the graphic control on the terminal device, or it can be determined based on the location information of the image of the graphic control on the terminal device. Among them, the location information of the image of the graphic control can include the position coordinates and hierarchical structure of the image of the graphic control in the graphical user interface. The location information of the graphic control is the same as the location information of the image of the graphic control. For example, the image of the graphic control is a left-pointing arrow located in the upper left corner of the graphical user interface, and the image of the graphic control is on the first level of the graphical user interface. It should be noted that any information that can correspond one-to-one to a graphic control can be used as a setting rule for the identification of the graphic control.

[0042] According to an exemplary embodiment of the present disclosure, the server can obtain an image of a graphic control on the terminal device, and determine the identity of the graphic control based on the position information of the image of the graphic control on the terminal device. The identity of the graphic control can also be determined by the terminal device and sent to the server.

[0043] S104. Perform text recognition on the image of the graphic control.

[0044] After acquiring the image of the graphic control, the server may use optical character recognition (OCR) technology to perform text recognition on the image of the graphic control to determine whether the image of the graphic control contains text information.

[0045] According to an exemplary embodiment of the present disclosure, the server can perform text recognition on the image of the graphic control within a preset time; if the text recognition result corresponding to the image of the graphic control is not obtained within the preset time, a reminder message is sent to the terminal device to reacquire the image of the graphic control.

[0046] The preset time may refer to the time that the server may need to determine text recognition based on the size of the image of the graphic control. The text recognition result may include: the result that the server can recognize that the image of the graphic control contains text information, or the result that the server cannot recognize whether the image of the graphic control contains text information. The text recognition result may include recognized text information. The reminder information may include that the terminal device needs to re-determine the image of the graphic control and upload it to the server.

[0047] The present disclosure avoids the situation where the determined text information is incomplete due to unclear images of the acquired graphic controls by sending reminder information, thereby improving the completeness and accuracy of the graphic control matching process.

[0048] S106. If the image of the graphic control does not contain text information, determine the text information corresponding to the image of the graphic control from the information matching database.

[0049] In an exemplary embodiment of the present disclosure, the image and text information contained in the information matching database may be matched one by one. The information matching database may be obtained from the Internet. The server may query the text information corresponding to the image of the image control from the information matching database based on the image of the image control. Specifically, the server may also first determine the feature points or similarities of the image of the image control, and then compare the feature points of the image of the image control with the feature points of the image contained in the information matching database, and then obtain the text information corresponding to the image of the image control.

[0050] For example, the image A of the graphic control is a leftward arrow, and the identifier of the graphic control is 1-31-02. 1-31-02 indicates that the image A of the graphic control is located in the second image in the upper left corner of the first hierarchical structure in the terminal device graphical user interface. In addition, in the information matching database, the text information corresponding to the image of a leftward arrow is return.

[0051] The server first obtains the image A of the graphic control and the identifier of the graphic control, then performs text recognition on the image A of the graphic control, and determines that the image of the graphic control does not contain text information. Subsequently, the server compares the image A of the graphic control with the image contained in the information matching database, and determines that the text information corresponding to the image A of the image control is: return.

[0052] According to an exemplary embodiment of the present disclosure, the server may also determine whether the information storage database contains text information based on the identification of the graphic control; if the information storage database does not contain text information, the text information corresponding to the image of the graphic control is determined from the information matching database.

[0053] The information storage database may include the identifier of the graphic control and the text information corresponding to the image of the graphic control. It should be noted that there is a one-to-one correspondence between the image of the graphic control, the identifier of the graphic control, and the text information corresponding to the image of the graphic control. In other words, if the information storage database includes the identifier of the graphic control and the text information corresponding to the image of the graphic control, the server can determine the text information corresponding to the image of the graphic control from the information storage database.

[0054] For example, the image A of the graphic control is a left-pointing arrow, and the identifier of the graphic control is 1-31-02. Among them, 1-31-02 means that the image A of the graphic control is located in the second image in the upper left corner of the first hierarchical structure in the graphical user interface of the terminal device. In addition, in the information matching database, the text information corresponding to the image of a left-pointing arrow is return. The identifier "1-31-02" of the graphic control and the text information "return" corresponding to the identifier "1-31-02" of the graphic control are not stored in the information storage database.

[0055] The server first obtains the image A of the graphic control and the identifier of the graphic control; then, it performs text recognition on the image A of the graphic control and determines that the image A of the graphic control does not contain text information; then, the server compares the identifier "1-31-02" of the graphic control with the identifier of the graphic control contained in the information storage database, and concludes that the information storage database does not contain text information; then, the server compares the image A of the graphic control with the image contained in the information matching database, and determines that the text information corresponding to the image A of the graphic control is: return.

[0056] S108. Match the text information with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control.

[0057] After determining the text information corresponding to the image of the graphic control, the server can match the text information with the identifier of the graphic control and store it in an information storage database, so that the server can query the text information corresponding to the image of the graphic control from the information storage database.

[0058] In an exemplary embodiment of the present disclosure, the server may feed back the text information corresponding to the image of the graphic control to the terminal device so that the terminal device can broadcast it. The server may also convert the text information corresponding to the image of the graphic control into voice and send the converted voice to the terminal device, which broadcasts the converted voice based on the identification of the graphic control, which is helpful for the visually impaired to understand the text information corresponding to the image of the graphic control in the graphical user interface.

[0059] According to an exemplary embodiment of the present disclosure, if the image of the graphic control includes text information, the text information is matched with the identifier of the graphic control so that the matched text information is broadcast based on the identifier of the graphic control.

[0060] For example, the image A of the graphic control is a left arrow and the text message "Return", and the identification of the graphic control is 1-31-02. The image B of the graphic control is a magnifying glass image, and the identification of the graphic control is 1-33-01. Among them, 1-31-02 means that the image A of the graphic control is the second image in the upper left corner of the first hierarchical structure in the graphical user interface of the terminal device. 1-33-01 means that the image B of the graphic control is the first image in the upper right corner of the first hierarchical structure in the graphical user interface of the terminal device. In addition, in the information matching database, the text information corresponding to the image of a left arrow is Return; the text information corresponding to the image of a magnifying glass is Search.

[0061] refer to Figure 2 For the image A of the graphic control, in step S201, the server obtains the image A of the graphic control and the identifier "1-31-02" of the graphic control; in step S203, text recognition is performed on the image A of the graphic control, and it is determined that the image A of the graphic control contains the text information "return", and step S207 is executed; in step S207, the identifier "1-31-02" of the graphic control is matched with the text information "return", stored in the information storage database, and sent to the terminal device, so that the terminal device broadcasts the text information "return" based on the identifier "1-31-02" of the graphic control.

[0062] For the image B of the graphic control, in step S201, the server first obtains the image B of the graphic control and the identifier "1-33-01" of the graphic control; in step S203, text recognition is performed on the image B of the graphic control, and it is determined that the image B of the graphic control does not contain text information, and step S205 is executed; in step S205, the server compares the image B of the graphic control with the image contained in the information matching database, and determines that the text information corresponding to the image B of the image control is: search; in step S207, the identifier "1-33-01" of the graphic control is matched with the text information "search", stored in the information storage database, and sent to the terminal device, so that the terminal device broadcasts the text information "search" based on the identifier "1-33-01" of the graphic control.

[0063] The present invention determines whether the image of the graphic control contains text information, executes different steps, and matches the identification of the graphic control with the determined text information, thereby avoiding the situation where the information is incomplete due to the process of determining the text information only based on the image of the graphic control, thereby improving the completeness and accuracy of the graphic control text matching process.

[0064] According to an exemplary embodiment of the present disclosure, if the image of a graphic control contains text information, the server can first determine that the text information is the first matching information; then, determine the second matching information corresponding to the image of the graphic control from the information matching database; then, match the first matching information, the second matching information and the identifier of the graphic control.

[0065] For example, the image C of the graphic control includes a leftward arrow and the text information "first page", and the identification of the graphic control is 1-11-02. Among them, 1-11-02 indicates that the image C of the graphic control is located at the second image in the middle of the bottom of the first hierarchical structure in the terminal device graphical user interface. In addition, in the information matching database, the text information corresponding to the image of a leftward arrow is return.

[0066] The server obtains the image C of the graphic control and the identification "1-11-02" of the graphic control; then, the text recognition is performed on the image C of the graphic control to determine that the image C of the graphic control contains the text information "first page"; secondly, the server determines the text information "first page" as the first matching information; thirdly, the server compares the image C of the graphic control with the image contained in the information matching database, and determines that the second matching information corresponding to the image C of the image control is: return; then, the server can match the first matching information "first page", the second matching information "return" and the identification "1-11-02" of the graphic control, store them in the information storage database, and send them to the terminal device so that the terminal device can broadcast them. In other words, the text information corresponding to the image of the graphic control is: return to the first page.

[0067] The present invention matches the text information contained in the image of the graphic control, the text information determined from the information matching database and the identifier of the graphic control, so that the text information corresponding to the image of the graphic control is more comprehensive and accurate, and also helps the terminal device to subsequently broadcast the voice corresponding to the matching text information based on the identifier of the graphic control for user perception.

[0068] According to an exemplary embodiment of the present disclosure, in a case where there may be one image corresponding to multiple text information in the information matching database, the server may determine whether the number of texts in the text information is greater than a preset number; if the number of texts is greater than the preset number, the text information is determined as candidate text; and the target text information corresponding to the position information is determined from the candidate text; and the target text information is matched with the identifier of the graphic control.

[0069] For example, the image B of the graphic control is a magnifying glass image, and the identifier of the graphic control is 1-33-01. 1-33-01 indicates that the image B of the graphic control is located at the first image in the upper right corner of the first hierarchical structure in the graphical user interface of the terminal device. In addition, in the information matching database, the text information corresponding to a magnifying glass image may be search, zoom in, zoom out, etc.

[0070] The server obtains the image B of the graphic control and the identifier "1-33-01" of the graphic control; then, the image B of the graphic control is subjected to text recognition, and it is determined that the image B of the graphic control does not contain text information; secondly, the server compares the image B of the graphic control with the image contained in the information matching database, and obtains three text information, namely: search, zoom in, and zoom out; thirdly, the server obtains that the three text information are greater than the preset number 1, and then determines the three text information as candidate texts, and the image B of the graphic control is located in the upper right corner of the first hierarchical structure in the graphical user interface of the terminal device. The server determines that the text information "search" is the target text information based on the position information of the image B of the graphic control; then, the target text information "search" is matched with the identifier "1-33-01" of the graphic control, and sent to the terminal device so that the terminal device can broadcast it.

[0071] In an exemplary embodiment of the present disclosure, after the server performs text recognition on the acquired image of the graphic control and determines that the image of the graphic control does not contain text information, the server can first determine whether the information storage database contains text information based on the identifier of the graphic control; then, if the information storage database does not contain text information, the text information corresponding to the image of the graphic control is determined from the information matching database; subsequently, the text information corresponding to the image of the graphic control is matched with the identifier of the graphic control and stored in the information storage database.

[0072] For example, the image A of the graphic control is a left-pointing arrow, and the identifier of the graphic control is 1-31-02. Among them, 1-31-02 means that the image A of the graphic control is located in the second image in the upper left corner of the first hierarchical structure in the graphical user interface of the terminal device. In addition, in the information matching database, the text information corresponding to the image of a left-pointing arrow is return. The identifier "1-31-02" of the graphic control and the text information "return" corresponding to the identifier "1-31-02" of the graphic control are not stored in the information storage database.

[0073] by Figure 3For example, in step S302, the server can obtain the image A of the graphic control and the identifier "1-31-02" of the graphic control; in step S304, text recognition is performed on the image A of the graphic control, and it is determined that the image A of the graphic control does not contain text information, and step S306 is executed; in step S306, the server compares the identifier "1-31-02" of the graphic control with the identifier of the graphic control contained in the information storage database, and obtains that the information storage database does not contain the text information corresponding to the image A of the graphic control, and step S308 is executed; in step S308, the server compares the image A of the graphic control with the image contained in the information matching database, and determines that the text information corresponding to the image A of the graphic control is: return; in step S310, the server can match the text information "return" corresponding to the image A of the graphic control with the identifier "1-31-02" of the graphic control, and store them in the information storage database, so that the terminal device can broadcast the text information "return" based on the identifier "1-31-02" of the graphic control.

[0074] According to an exemplary embodiment of the present disclosure, the information storage database and the information matching database may also include voice information. After performing text recognition on the image of the graphic control, the server may first determine the voice information corresponding to the image of the graphic control from the information matching database according to the image of the graphic control, then match the voice information with the identification of the graphic control and store it in the information storage database, and then send the voice information corresponding to the image of the graphic control to the terminal device so that the terminal device can broadcast it.

[0075] It should be noted that, in the case where the information storage database contains the voice information corresponding to the identifier of the graphic control, the terminal device can request the voice information corresponding to the identifier of the graphic control and broadcast it.

[0076] Figure 4 An interactive diagram schematically illustrates a text matching method for a graphic control according to an exemplary embodiment of the present disclosure.

[0077] In step S401, the terminal device can respond to the user's click instruction and determine the image of the graphic control; in step S403, the server obtains the image of the graphic control and the identifier of the graphic control from the terminal device; in step S405, the server performs text recognition on the image of the graphic control, if the image of the graphic control does not contain text information, execute step S407, if the image of the graphic control contains text information, execute step S409; in step S407, the server can determine the text information corresponding to the image of the graphic control from the information matching database; in step S409, the server can match the text information corresponding to the image of the graphic control with the identifier of the graphic control; in step S411, the server sends the text information to the terminal device; in step S413, the terminal device can broadcast the matching text information based on the identifier of the graphic control.

[0078] In an exemplary embodiment of the present disclosure, before the terminal device determines the image of the graphic control, the terminal device may detect the type of the control in response to the user's click instruction so that the terminal device determines the graphic control that needs to be matched. The terminal device may intercept the current page of the graphical user interface and determine the image of the graphic control according to the user's click instruction. The terminal device may also only intercept the image of the graphic control and upload the identification of the graphic control to the server.

[0079] In addition, if it is determined in step S405 that the image of the graphic control contains text information, in step S407, the server may determine that the text information contained in the image of the graphic control is the first matching information, and determine the second matching information corresponding to the image of the graphic control from the information matching database. If it is determined in step S405 that the image of the graphic control does not contain text information, in step S407, the server may determine whether the information storage database contains text information based on the identification of the graphic control; if the information storage database does not contain text information, the text information corresponding to the image of the graphic control is determined from the information matching database.

[0080] For example, the terminal device determines that the image C of the graphic control is a left arrow and the text information "first page", and the identifier of the graphic control is 1-11-02; the image B of the graphic control is a magnifying glass image, and the identifier of the graphic control is 1-33-01. Among them, 1-11-02 means that the image C of the graphic control is located in the second image in the middle of the bottom of the first hierarchical structure in the graphical user interface of the terminal device. 1-33-01 means that the image B of the graphic control is located in the first image in the upper right corner of the first hierarchical structure in the graphical user interface of the terminal device. In addition, in the information matching database, the text information corresponding to the image of a left arrow is return; the text information corresponding to the magnifying glass image is search. The identifier "1-33-01" of the graphic control and the text information "search" corresponding to the identifier "1-33-01" of the graphic control are not stored in the information storage database.

[0081] For the image C of the graphic control, the server can first obtain the image C of the graphic control and the identification "1-11-02" of the graphic control from the terminal device; then, perform text recognition on the image C of the graphic control to determine that the image C of the graphic control contains the text information "first page"; secondly, the server determines the text information "first page" as the first matching information; thirdly, the server compares the image C of the graphic control with the image contained in the information matching database, and determines that the second matching information corresponding to the image C of the image control is: return; then, the server can match the first matching information "first page", the second matching information "return" and the identification "1-11-02" of the graphic control, store them in the information storage database, and send them to the terminal device so that the terminal device can broadcast them.

[0082] For the image B of the graphic control, the server can first obtain the image B of the graphic control and the identifier "1-33-01" of the graphic control from the terminal device; then, perform text recognition on the image B of the graphic control to determine that the image B of the graphic control does not contain text information; secondly, the server compares the identifier "1-33-01" of the graphic control with the identifier of the graphic control contained in the information storage database, and determines that the text information corresponding to the image B of the image control is not contained in the information storage database; thirdly, the server compares the image B of the graphic control with the image contained in the information matching database, and determines that the text information corresponding to the image B of the image control is: search; then, match the identifier "1-33-01" of the graphic control with the text information "search", store it in the information storage database, and send it to the terminal device so that the terminal device can broadcast it.

[0083] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0084] Furthermore, in an exemplary embodiment of the present disclosure, a text matching device for a graphic control is also provided.

[0085] Figure 5 The block diagram of the text matching device of the graphic control according to the exemplary embodiment of the present disclosure is schematically shown. Figure 5 According to an exemplary embodiment of the present disclosure, a text matching device 500 for a graphic control includes: an information acquisition module 502 , a text recognition module 504 , a text determination module 506 and a text matching module 508 .

[0086] The information acquisition module 502 is used to acquire the image of the graphic control and the identifier of the graphic control; the text recognition module 504 is used to perform text recognition on the image of the graphic control; the text determination module 506 is used to determine the text information corresponding to the image of the graphic control from the information matching database if the image of the graphic control does not contain text information; the text matching module 508 is used to match the text information with the identifier of the graphic control so as to broadcast the matched text information based on the identifier of the graphic control.

[0087] According to another embodiment of the present disclosure, the text determination module 506 can be configured to perform: judging whether the information storage database contains text information based on the identification of the graphic control; if the information storage database does not contain text information, determining the text information corresponding to the image of the graphic control from the information matching database.

[0088] According to another embodiment of the present disclosure, Figure 6 Compared with the text matching device 500 of the graphic control, the text matching device 600 of the graphic control may further include: a text comparison module 601, which may be configured to execute: if the image of the graphic control contains text information, the text information is matched with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control.

[0089] According to another embodiment of the present disclosure, the text comparison module 601 can also be configured to execute: if the image of the graphic control contains text information, then determine the text information as the first matching information; determine the second matching information corresponding to the image of the graphic control from the information matching database; and match the first matching information, the second matching information and the identifier of the graphic control.

[0090] According to another embodiment of the present disclosure, the information acquisition module 502 may also be configured to execute: acquiring an image of a graphic control on the terminal device, and determining an identifier of the graphic control based on location information of the image of the graphic control on the terminal device.

[0091] According to another embodiment of the present disclosure, the text matching module 508 can also be configured to perform: determining whether the text quantity of the text information is greater than a preset quantity; if the text quantity is greater than the preset quantity, determining the text information as candidate text; and determining the target text information corresponding to the position information from the candidate text; matching the target text information with the identifier of the graphic control.

[0092] According to another embodiment of the present disclosure, the text recognition module 504 can also be configured to execute: performing text recognition on the image of the graphic control within a preset time; if the text recognition result corresponding to the image of the graphic control is not obtained within the preset time, sending a reminder message to the terminal device to reacquire the image of the graphic control.

[0093] The specific details of each module / unit in the above device have been described in detail in the embodiment of the method part, so they will not be repeated here.

[0094] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0095] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0096] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0097] Refer to the following Figure 7 An electronic device 700 according to this embodiment of the present invention will be described. Figure 7 The electronic device 700 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0098] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.

[0099] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 710 can perform the following steps: Figure 1 Steps S102 to S108 are shown.

[0100] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

[0101] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

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

[0103] The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to communicate with the electronic device 700, and / or may communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0104] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0105] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0106] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0107] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0108] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A text matching method for a graphic control, characterized in that: include: Acquire an image of a graphic control and an identifier of the graphic control; Performing text recognition on the image of the graphic control; If the image of the graphic control does not contain text information, determining the text information corresponding to the image of the graphic control from an information matching database; Matching the text information with the identifier of the graphic control so as to broadcast the matched text information based on the identifier of the graphic control; The text matching method of the graphic control also includes: If the image of the graphic control includes the text information, matching the text information with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control; If the image of the graphic control includes the text information, matching the text information with the identifier of the graphic control includes: If the image of the graphic control includes the text information, determining the text information as the first matching information; Determine second matching information corresponding to the image of the graphic control from the information matching database; The first matching information, the second matching information, and the identifier of the graphic control are matched.

2. The text matching method of a graphic control according to claim 1, characterized in that: Determining the text information corresponding to the image of the graphic control from the information matching database includes: Determining whether the information storage database contains the text information based on the identifier of the graphic control; If the information storage database does not contain the text information, the text information corresponding to the image of the graphic control is determined from the information matching database.

3. The text matching method of the graphic control according to claim 1 or 2, characterized in that: Acquiring an image of a graphic control and an identifier of the graphic control includes: An image of a graphic control on a terminal device is acquired, and an identifier of the graphic control is determined based on position information of the image of the graphic control on the terminal device.

4. The text matching method of a graphic control according to claim 3, characterized in that: Matching the text information with the identifier of the graphic control includes: Determining whether the number of texts in the text information is greater than a preset number; If the number of the texts is greater than the preset number, determining the text information as candidate texts; and determining the target text information corresponding to the position information from the candidate texts; The target text information is matched with the identifier of the graphic control.

5. The text matching method of the graphic control according to claim 1 or 2, characterized in that: Performing text recognition on the image of the graphic control includes: Performing text recognition on the image of the graphic control within a preset time; If the text recognition result corresponding to the image of the graphic control is not obtained within the preset time, a reminder message is sent to the terminal device so as to reacquire the image of the graphic control.

6. A text matching device for a graphic control, characterized in that: include: An information acquisition module, used to acquire an image of a graphic control and an identifier of the graphic control; A text recognition module, used for performing text recognition on the image of the graphic control; A text determination module, configured to determine the text information corresponding to the image of the graphic control from an information matching database if the image of the graphic control does not contain text information; A text matching module, used for matching the text information with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control; The text matching device of the graphic control is also configured as follows: If the image of the graphic control includes the text information, matching the text information with the identifier of the graphic control, so as to broadcast the matched text information based on the identifier of the graphic control; If the image of the graphic control includes the text information, matching the text information with the identifier of the graphic control is configured as follows: If the image of the graphic control includes the text information, determining the text information as the first matching information; Determine second matching information corresponding to the image of the graphic control from the information matching database; The first matching information, the second matching information, and the identifier of the graphic control are matched.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the text matching method of the graphic control according to any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the text matching method of the graphic control as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Adaptive method of graphical controls for the blind to read mobile phone screens

    CN103838464A