Control identification method, data acquisition method and electronic equipment

By recognizing the outline information of controls in electronic devices and matching semantic annotation information, the problem of poor semantic recognition of controls in existing technologies is solved, and accurate recognition and support for visible and talkable services for icon-type controls are achieved.

CN118732984APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310371920.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing semantic recognition solutions for controls perform poorly in electronic devices, especially in terms of insufficient recognition and operation support for icon-type controls.

Method used

By acquiring a screenshot of the screen display content, the outline information of the control is identified, and semantic recognition is performed in combination with the outline information. The outline information is then matched with pre-stored semantic annotation information to achieve semantic recognition and operation of the control.

Benefits of technology

It improves the accuracy and efficiency of control semantic recognition, can reliably recognize various types of controls, especially icon controls, reduces latency, and supports voice operation for visible and spoken services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732984A_ABST
    Figure CN118732984A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a control recognition method, a data acquisition method and electronic equipment, and relates to the technical field of terminal equipment, and the method comprises the following steps: obtaining the contour of a control from a screenshot image, describing the control by the contour, and recognizing the semantics of the control by using the contour, so that the recognition effect of the semantics of the control can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of terminal devices, and in particular to a control identification method, a data acquisition method and an electronic device. Background Art

[0002] With the development of electronic devices, the voice operation function of electronic devices is becoming more and more mature. Visible and Sayable service is a functional service that can realize voice operation of electronic devices. Visible and Sayable service can simulate manual operation on the screen display content of electronic devices through voice to realize the control of the screen display content. For example, the voice command can be "return to the home page", "click on the address book", "swipe up", "swipe down", etc., so as to realize the operation functions such as returning to the home page, opening the address book page, swiping up the page, and swiping down the page.

[0003] In order to provide visible and talkable services, electronic devices need to perform semantic recognition on controls in the screen display content. However, current control semantic recognition solutions have poor semantic recognition effects. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a control recognition method, a data acquisition method and an electronic device. In the method, the control is described by contour information and the semantics of the control is recognized in combination with the contour information to improve the recognition effect of the control semantics.

[0005] In a first aspect, an embodiment of the present application provides a control identification method, which is applied to a first electronic device, the method comprising: obtaining a screenshot image of screen display content; determining first contour information of a control to be identified in the screenshot image; and identifying first semantic information of the control to be identified based on the first contour information.

[0006] Among them, the first electronic device can be a terminal, which can also be called a terminal device. The terminal can be a cellular phone, a tablet computer, a wearable device or an Internet of Things device (such as a smart TV), a vehicle-mounted device, a smart car, and other devices with a display screen or a rear-mounted display screen.

[0007] In various implementations, the first electronic device is taken as a smart car as an example for explanation.

[0008] The display screen of a smart car may be an on-board display screen, or a display screen of an aftermarket device of the smart car.

[0009] Take the screen display content of a smart car's onboard display screen as an example.

[0010] The vehicle display screen can display the application interface of a single application, or can display the application interfaces of different applications in multiple windows simultaneously in a multi-window manner. However, the smart car of the present application can obtain a screenshot image of the application interface in each window displayed on the vehicle display screen.

[0011] For example, the screenshot image of the screen display content mentioned in the first aspect may include a screenshot image of each application interface in the screen display content.

[0012] This application does not limit the specific implementation method of taking screenshots of the content displayed on the display screen of a smart car to obtain screenshot images of each application interface displayed on the display screen.

[0013] For another example, the screenshot image of the screen display content mentioned in the first aspect may also be a screenshot image of the entire screen display content, also referred to as a full-screen screenshot image.

[0014] In addition, the number of the above-mentioned controls to be identified is one or more.

[0015] In one possible implementation, when the smart car obtains the first contour information for the above-mentioned screenshot image, it may not care about the type of control in the screenshot image, but instead use edge detection and other methods to identify the contour information belonging to the control from the screenshot image, so as to identify the semantics of the control in the screen display content through the contour.

[0016] Optionally, the control to be identified may be an icon-type control.

[0017] In another possible implementation, the smart car can obtain the control types of some or all controls in the application interface by parsing the control tree of the application interface corresponding to the screenshot image, so as to determine which controls in the application interface are non-icon controls (such as text boxes, selection boxes, drop-down boxes, switch controls, and other Android standard controls).

[0018] Accordingly, when the smart car obtains the first contour information from the screenshot image, it can perform contour detection on the controls other than the non-icon controls in the screenshot image of the corresponding application interface to obtain the contour information of the icon controls in the corresponding application interface, so that the control to be identified can be an icon control, so as to realize the semantic recognition of the icon controls in the screen display content.

[0019] In addition, when the smart car identifies the first semantic information of the control to be identified based on the first contour information, it can obtain the first semantic information of the control related to the first contour information (for example, the control whose contour information is the same or similar to the first contour information).

[0020] For example, the semantics of a control may be descriptive information such as the function, effect, and name of the control, without specific limitation, so as to help users understand the impact of triggering the control on the application to which the screenshot image belongs or the application interface to which the screenshot image belongs.

[0021] In an embodiment of the present application, the semantics of the control in the screen display content can be obtained by using a screenshot image of the screen display content. In this way, the recognition process of the control semantics is independent of the refresh process of the screen display content. The screen display content is refreshed to the next frame image, which does not affect the semantic recognition of the control in the previous frame image displayed on the screen. In addition, the present application describes the control with contour information, which can reduce the amount of data of the description information of the control. Then, when the semantics of the corresponding control is identified with the contour information, the recognition speed of the control semantics can be improved, and the delay time of the control identification can be reduced to improve the recognition efficiency of the control semantics. In addition, the present application describes the control with contour information, and only needs to identify the contour information of the control to obtain the semantics of the corresponding control, and any type of control has contour information, so that reliable semantic recognition of various types of controls in the screen display content can be achieved, and the identified control types are more comprehensive and accurate, so as to improve the recognition accuracy of the control semantics. In this way, the recognition effect of the control semantics is improved.

[0022] According to the first aspect, the identifying the first semantic information of the control to be identified based on the first contour information includes: obtaining at least one first semantic annotation information related to the second contour information as the first semantic information of the control to be identified; wherein the second contour information is control contour information whose contour difference with the first contour information satisfies a preset condition; and the first semantic annotation information is used to indicate the semantic information that has been annotated for the control related to the second contour information.

[0023] Among them, the contour difference between the two contour information satisfies the preset conditions and may include but is not limited to: the similarity of the two contour information is greater than a first preset threshold (for example, 70% or 90% or other values ​​greater than 50%), or the contour difference between the two contour information is less than a second preset threshold (for example, 30% or 40% or other values ​​less than 50%).

[0024] The contour difference between the two contour information satisfies the preset conditions, and can be expressed as the two contours are contours of the same pattern, or contours of similar patterns, but there is no restriction on whether the sizes of the two contours are the same. For example, if the patterns of the two contours are both five-pointed stars, but the sizes are different, then the contour difference between the contour information corresponding to the two contours satisfies the preset conditions. For another example, among the two contours, the pattern of one contour is a five-pointed star, and the pattern of the other contour is a five-pointed star with a circle inside the five-pointed star, then the two contours are contours with similar patterns, and they are similar contours.

[0025] Among them, when the smart car uses the outline of the control in the screen display content to identify the semantics of the control, it can obtain at least one of the first semantic annotation information related to the outline that is the same as or similar to the outline of the control (that is, the at least one first semantic annotation information mentioned above) as the first semantic information of the control.

[0026] In an application interface, whether it is the same application or the application interface of different applications, controls with the same or similar outlines often have the same or similar semantics. In this case, the embodiment of the present application uses the outline to find the semantic annotation information of controls with similar outlines, and thus can obtain the semantic information of the control to be identified. In addition, the first semantic annotation information is the semantic information of the related controls that have been annotated with the second outline information. The annotated semantic information is used to perform semantic recognition of the control to be identified, thereby improving the accuracy of semantic recognition of the control.

[0027] In addition, the first semantic annotation information is the semantic information of the related controls that have been annotated with the second contour information. The annotation process of the first semantic annotation information can be manual or automatic by the electronic device, which is not limited here.

[0028] For example, the semantic annotation information related to the above-mentioned second contour information (referred to as "second semantic annotation information" in the subsequent implementation) may be one or more pieces, and the smart car may select one or more pieces of second semantic annotation information (referred to as the above-mentioned at least one first semantic annotation information) from the second semantic annotation information as the first semantic information identified for the control to be identified having the above-mentioned first contour information.

[0029] According to the first aspect, or any implementation of the first aspect above, the first semantic information is used to indicate at least one of the following information: the role of the control to be identified, and the behavior information of the control to be identified after being triggered.

[0030] Among them, the semantics recognized by the smart car of the present application for the control to be identified in the screen display content may be the function of the control to be identified, and / or the behavior information after the control to be identified is triggered (for example, a touch operation such as single-click, double-click or touch, without limitation).

[0031] For example, the dial control in the dialing interface of the phone application is used to make a call, and the action triggered after the dial control is clicked is dialing. Then the smart car can obtain the semantics of the dial control as "making a call" and / or "dialing".

[0032] Among them, the behavior information triggered after the dial control is clicked, the smart car can obtain the parameters (such as the interface name, here "dial") of the system-level service interface (in other scenarios, it can also be an application-level interface, such as an interface provided by the application) called by the corresponding phone application after the dial control is triggered (for example, clicked) as the behavior information after the dial control is triggered.

[0033] In an embodiment of the present application, the first electronic device can obtain the role of the control to be identified in the screen display content, and / or the behavior information after the control to be identified is triggered, as semantic information identified for the control to be identified, so that the user can understand the function of the control to be identified based on the semantic information, and perform voice control on the control to be identified based on the corresponding semantic information, thereby realizing the visible and speakable function of the control to be identified.

[0034] According to the first aspect, or any implementation of the first aspect above, the first semantic annotation information includes at least one of the following: first potential annotation information for indicating the function of the corresponding control; second potential annotation information for indicating text displayed around the corresponding control; third potential annotation information for indicating behavior information after the corresponding control is triggered.

[0035] For example, the semantic annotation information related to the above-mentioned second contour information (referred to as "second semantic annotation information" in the subsequent implementation) may be one or more pieces, and the smart car may select one or more pieces of second semantic annotation information (referred to as the above-mentioned at least one first semantic annotation information) from the second semantic annotation information as the first semantic information identified for the control to be identified having the above-mentioned first contour information.

[0036] The first semantic annotation information related to the second contour information may include but is not limited to at least one of the following: first potential annotation information, second potential annotation information, and third potential annotation information.

[0037] The first potential annotation information is used to indicate the function of a control related to the second contour information (eg, a control having the second contour information, and / or a control having contour information similar to the second contour information).

[0038] The second potential annotation information is used to indicate a control related to the second outline information, and is the text displayed around the control when the control is displayed in the application interface.

[0039] For example, the application interface of a desktop application includes multiple application icons, and the name of the application icon may be displayed below each application icon. The name may be the text displayed around the application icon.

[0040] However, the text displayed around the control is not necessarily the text describing the control, so the second potential annotation information may be used to express the function of the corresponding control.

[0041] The third potential annotation information is used to indicate the behavior information after the control related to the second outline information is triggered. The specific explanation can refer to the above implementation method, which will not be repeated here.

[0042] In addition, the second contour information can be a contour information, or each contour information in a group of contour information after clustering. Similarly, the first semantic annotation information related to the second contour information can be a group of first semantic annotation information related to the second contour information, or a class of first semantic annotation information related to the group of contour information after clustering, and the class of first semantic annotation information can be a collection or clustering result of first semantic annotation information related to each second contour information in the group of contour information, etc., without specific limitation.

[0043] In the embodiment of the present application, the first semantic annotation information annotated with the second contour information can reflect the function of the control with the contour of the second contour information, the display text around the control when the control is displayed in the corresponding application interface (which may reflect the function of the control), and the behavior information of the control after being triggered. Controls with the same or similar contours have basically the same functions with small differences. Therefore, the first semantic information identified by the control to be identified based on the first semantic annotation information of the second contour information can more accurately describe the function of the control to be identified and / or the behavior information after being triggered.

[0044] According to the first aspect, or any implementation manner of the first aspect above, the at least one first semantic annotation information is part or all of the second semantic annotation information related to the second contour information obtained from the target storage unit; wherein the target storage unit stores third contour information, and second semantic annotation information of controls related to the third contour information; wherein the second contour information is the third contour information in the target storage unit whose contour difference with the first contour information meets a preset condition.

[0045] Among them, the target storage unit can be a local storage unit of the first electronic device (such as internal memory, or internal memory, etc.), or an external storage unit accessible to the first electronic device, for example, an external memory (external storage card, such as a Micro SD card), or a database in the cloud, etc.

[0046] In one implementation, the target storage unit may have an icon database, which includes a clustered contour set and a semantic annotation set related to the contour set.

[0047] Therein, the number of the contour sets is one or more, and the number of the semantic annotation sets is one or more.

[0048] For mutually related contour sets and semantic annotation sets, the contour set may include one third contour information, or may include multiple third contour information whose differences between contour information meet preset conditions. The corresponding semantic annotation set may include second semantic annotation information of the control related to each third contour information in the contour set.

[0049] When performing semantic recognition on the control to be recognized, the smart car can identify a certain contour set in the icon database whose contour difference with the first contour information meets the preset conditions, and each third contour information in the certain contour set is used as the above-mentioned second contour information mentioned in the above implementation method. And the smart car can identify a certain semantic annotation set related to the certain contour set in the icon database, and the smart car can use part or all of the semantic annotation information in the certain semantic annotation set (such as part or all of the second semantic annotation information named above) as at least one first semantic annotation information related to the second contour information (that is, as the first semantic information of the control to be recognized).

[0050] The second semantic annotation information is used to indicate the semantic information that has been identified for the control related to the third contour information. Similar to the above explanation of the first semantic annotation information, the second semantic annotation information may also include at least one of the following: first potential annotation information for indicating the function of the corresponding control (e.g., the control related to the third contour information); second potential annotation information for indicating the text displayed around the corresponding control; third potential annotation information for indicating the behavior information after the corresponding control is triggered.

[0051] The second semantic annotation information in the icon database is used to indicate the annotated semantic information of the control related to the third outline information.

[0052] Among them, any one of the first potential annotation information, the second potential annotation information, and the third potential annotation information may include at least one entry. For example, the first potential annotation information indicating the function of a certain control may include entry 1 and entry 2.

[0053] According to the first aspect, or any implementation of the first aspect above, the third outline information is stored in the target storage unit in a scalable vector graphics (SVG) format.

[0054] In this way, storing contour information in SVG format can reduce the amount of storage data describing the contour information of the control in the target storage unit compared to storing the contour in pixel form, and can store more contour and semantic annotation information in a limited storage space.

[0055] According to the first aspect, or any implementation manner of the first aspect above, the method further includes: converting the first contour information into SVG format; based on the similarity between the first contour information in SVG format and the third contour information in SVG format stored in the target storage unit, determining the second contour information in SVG format in the target storage unit whose contour difference with the first contour information in SVG format meets a preset condition.

[0056] For example, the smart car may use the third contour information in SVG format in the target storage unit, whose similarity with the first contour information in SVG format is greater than a preset threshold (for example, 90%), as the second contour information in SVG format in the target storage unit, whose contour difference with the first contour information in SVG format satisfies a preset condition.

[0057] In this way, by comparing the outline information in the SVG format recognized from the screenshot image with the icon outline in the SVG format in, for example, an icon database, if the similarity is >90%, it is determined that a control with the same outline as the first outline information is found in the icon database. The first electronic device can then obtain semantic annotation information related to the similar outline found in the icon database to obtain a semantic recognition result for the control to be identified.

[0058] Among them, judging the contour differences between control contours in SVG format can improve the retrieval efficiency of contours in the target storage unit and the recognition speed of the semantics of the corresponding icons.

[0059] Furthermore, when the present application compares the first contour information with the second contour information in the target storage unit in SVG format, it can improve the calculation speed of determining whether the contours of controls are similar, thereby improving the recognition speed of the semantic information of controls in the screen display content and reducing the control recognition delay in visible and speakable scenes.

[0060] According to the first aspect, or any implementation of the first aspect above, the method further includes: outputting the first semantic information of the control to be identified.

[0061] In this way, by outputting the semantics of the recognized controls, the user can understand what kind of voice commands to issue based on the output semantics to control the controls displayed on the screen, so as to realize voice control of the controls in a visible and audible scenario.

[0062] The output method of the first semantic information may include but is not limited to: text output, voice input, etc.

[0063] According to the first aspect, or any implementation of the first aspect above, the method also includes: determining a first position of the first contour information in the screenshot image; wherein the first semantic information is semantic information of the control to be identified at the first position in the screen display content.

[0064] For example, when a smart car identifies contour information of a screenshot image, it can also determine the first position of the contour information in the screenshot image. In other words, the first position can reflect the position of the control having the first contour information in the above-mentioned screen display content. Then, the first semantic information identified by the smart car for the control to be identified having the first contour information is reflected in the screen display content, which can be the semantic information of the control at the above-mentioned first position. In this way, semantic recognition of the control in the screen display content is achieved.

[0065] According to the first aspect, or any implementation of the first aspect above, the method further includes: displaying prompt information corresponding to the first semantic information on the screen according to the first semantic information of the control to be identified related to the first position.

[0066] The implementation of the prompt information may include but is not limited to: a corner mark.

[0067] For example, the smart car can determine the first position of the control that has recognized the first semantic information in the screen display content, then the smart car can display a corner mark for the control in the first position on the screen, and display prompt information about the first semantic information in the corner mark. In this way, the user can understand the semantics of the control by browsing the corner mark of the control, and then refer to the semantics to perform voice control on the control. In this way, the user can obtain the voice command that can control the corresponding control through the information prompted by the corner mark.

[0068] Here, the method of outputting prompt information of the first semantic information of the control in the first position on the screen is explained in the form of the control's corner mark. In other embodiments, the display method of the prompt information corresponding to the first semantic information is not limited to the control's corner mark, and the prompt information for prompting the semantics of the control in the first position may be displayed at any position on the screen.

[0069] According to the first aspect, or any implementation manner of the first aspect above, the method further includes: in response to the received user voice input, based on the relevant first semantic information, the first contour information and the first position, determining the target control of the user-indicated operation in the screen display content; wherein the display position of the target control in the screen display content is the target position, the target position is the first position related to the target contour information, the target contour information is the first contour information related to the target semantic information, wherein the target semantic information is the first semantic information of the control to be identified that matches the semantics of the user voice input.

[0070] Among them, the target control can be at least one control to be identified. In other words, the user can use voice commands to control one or more of the controls to be identified in the screen display content.

[0071] In the visible and utterable scenario, the user issues a voice command to operate the target control in the screen display content. The smart car can semantically match the voice command with the first semantic information of each control that has been identified in the screen display content (the above-mentioned control to be identified) to determine the first semantic information of the target control that the user indicates to operate. When the smart car identifies the first semantic information of the control to be identified, it refers to the first contour information of the control to be identified. Then the smart car can obtain the first contour information of the target control to be operated in combination with the first semantic information of the target control. When the smart car identifies the first contour information, it also determines the first position of the corresponding control on the screen. Therefore, in combination with the first contour information of the target control, the first position of the target control on the screen can be obtained to find the target control to be operated on the screen. Optionally, the smart car can recognize the voice command input by the user to perform the corresponding operation on the target control to achieve the visibility and utterability of the control.

[0072] According to the first aspect, or any implementation of the first aspect above, the first contour information of at least one of the controls to be identified is composed of multiple groups of contour information in the same contour range.

[0073] In this way, the first electronic device of the present application can identify multiple graphics within the same contour range in the screen display content as the same control (here, an icon) to improve the recognition accuracy of the contour information of the control.

[0074] According to the first aspect, or any implementation of the first aspect above, the method further includes: when it is determined that the screen display content has changed, obtaining a screenshot image of the changed screen display content.

[0075] Among them, the steps in this implementation method may be further included in the method of the present application, or may be a further refinement of obtaining a screenshot image of the screen display content in the above-mentioned first aspect.

[0076] In this way, when the display content on the display screen of the first electronic device changes, the first electronic device can obtain a screenshot image of the changed screen display content, thereby executing the method in the above-mentioned first aspect or any one of the implementation methods of the above-mentioned first aspect, so that after the screen display content is refreshed, the first electronic device of the present application can perform semantic recognition of the controls on the refreshed screen display content to realize voice control of the controls in the refreshed screen display content.

[0077] In a second aspect, an embodiment of the present application provides a data acquisition method, which is applied to a second electronic device. The method includes: acquiring a screenshot image of screen display content; determining first contour information of a control to be annotated in the screenshot image; acquiring first semantic annotation information for the control to be annotated related to the first contour information; annotating second semantic annotation information as semantic information of the control related to the first contour information, wherein the second semantic annotation information is at least one of the first semantic annotation information.

[0078] The second electronic device may be a terminal, which may also be called a terminal device. The terminal may be a cellular phone, a tablet computer, a wearable device, an IoT device (such as a smart TV), an in-vehicle device, a smart car, or other device with a display screen or a rear-mounted display screen. In addition, the second electronic device may also be a server.

[0079] The first electronic device and the second electronic device may be the same or different, which is not limited here.

[0080] The number of controls to be annotated is one or more, and there is no limit here.

[0081] The control to be annotated is a control whose semantic information is to be annotated.

[0082] In addition, the number of first semantic annotation information obtained for the control to be annotated may be one or more pieces.

[0083] Then, when the second electronic device annotates semantic information of controls related to the first profile information, at least one of the first semantic annotation information may be annotated as semantic information of controls related to the first profile information (which may not specifically refer to the controls to be annotated, but may be controls related to the clustered profile set to which the first profile information belongs).

[0084] In addition, when the second electronic device annotates the second semantic annotation information as the semantic information of the control related to the first contour information, the annotation method may be to store the second semantic annotation information in association with the first contour information; or, the annotation method may be to store the second semantic annotation information and the first contour information separately, but by adding a preset mark to the first contour information, the preset mark may indicate the second semantic annotation information, thereby realizing the semantic annotation of the second semantic annotation information for the control related to the first contour information. The annotation method is not limited here.

[0085] The present application describes the control with contour information, which can reduce the amount of data in the description information of the control. Then, when the semantic annotation information of the corresponding control is obtained with the contour information, not only the automatic semantic annotation of the control is realized, the manual annotation operation is reduced, but also the semantic annotation speed of the control can be improved. In addition, the present application describes the control with contour information, and only needs to identify the contour information of the control to semantically annotate the control to be annotated with the corresponding contour, and any type of control has contour information, so that reliable semantic annotation of various types of controls in the screen display content can be achieved, and the control types of semantic annotation are more comprehensive and accurate. Then the accurate semantic annotation information can help electronic devices use contour information to combine the semantic annotation information to accurately identify the semantics of the control, so as to improve the recognition accuracy and efficiency of the control semantics, and improve the recognition effect of the control semantics.

[0086] According to the second aspect, the first semantic annotation information is semantic information obtained for the control to be annotated at a first position in the screen display content, and the first position is a position of the first contour information in the screenshot image.

[0087] When determining the first outline information of the control to be annotated in the screenshot image, the second electronic device may also determine the first position of the first outline information in the screenshot image, where the first position is the position of the control to be annotated in the above screen display content.

[0088] Then, when obtaining the first semantic annotation information for the control to be annotated that is related to the first outline information, the second electronic device can determine that it is necessary to obtain semantic annotation information for the control (such as the control to be annotated) that is in the first position in the above-mentioned screen display content. Specifically, the second electronic device can parse the application interface corresponding to the screen display content to obtain the first semantic annotation information of the control to be annotated that is in the first position in the screen display content.

[0089] In the embodiment of the present application, the outline information of the control to be annotated can be determined from the screenshot image, and the first position of the control to be annotated in the application interface corresponding to the screenshot image can be determined based on the outline information, so as to obtain the first semantic annotation information of the control to be annotated in combination with the first position. By recognizing the outline of the control, automatic semantic annotation of the control is achieved, and the semantic accuracy of the annotation is high.

[0090] According to the second aspect, or any implementation of the second aspect above, the first semantic annotation information includes at least one of the following: first potential annotation information for indicating the function of the control to be annotated; second potential annotation information for indicating text displayed around the control to be annotated; third potential annotation information for indicating behavior information after the control to be annotated is triggered.

[0091] For example, the second electronic device can obtain first semantic annotation information of the control to be annotated in the first position by parsing or OCR identifying the application interface corresponding to the screen display content, wherein the first semantic annotation information may include at least one of the following potential annotation information of the control to be annotated: first potential annotation information, second potential annotation information and third potential annotation information.

[0092] The first potential annotation information may include information indicating the function of the control to be annotated. Specifically, the first potential annotation information may include control description information, such as at least one of the Description attribute and Text attribute of the control. The Description attribute may indicate information about the control that can be output in the blind mode, and the Description attribute may include information indicating the function of the control.

[0093] The second potential annotation information may include text information indicating the surrounding of the control to be annotated in the above application interface, and the second potential annotation information may include information indicating the function of the corresponding control.

[0094] The third potential annotation information may include information for indicating the behavior information of the control to be annotated in the above application interface after being triggered (for example, a triggering operation such as a single click, double click, or touch, which is not limited here).

[0095] In an embodiment of the present application, contour information of a control to be annotated is determined by performing contour recognition on a screenshot image of the screen display content, and the application interface corresponding to the screenshot image is parsed or OCR recognized based on the contour information to obtain the first semantic annotation information of the control to be annotated. However, when semantically annotating the control related to the first contour information, part of the first semantic annotation information (such as the first potential annotation information and the third potential annotation information) or all of the first semantic annotation information can be annotated as the semantic information of the control related to the first contour information. In other words, the second electronic device may obtain three types of potential annotation information for the control to be annotated, but when semantically annotating the control related to the first contour information, at least one of the three types of potential annotation information can be stored in association with the first contour information to achieve semantic annotation of the control related to the first contour information. While achieving automatic semantic annotation of controls (such as icon-type controls), the annotation cost of manual semantic annotation of controls is reduced, and the accuracy of the semantic information annotated for the controls can be improved.

[0096] According to the second aspect, or any implementation method of the second aspect above, the second semantic annotation information is used to indicate at least one of the following information: the role of the control related to the first contour information (not specifically referring to the above-mentioned control to be annotated with the first contour, but a type of control whose contour information and the contour difference of the first contour information meet the preset conditions), and the behavior information after the control related to the first contour information is triggered.

[0097] The second semantic annotation information is semantic information annotated on the control related to the first outline information, and the entries in the second semantic annotation information may include at least one of the first potential annotation information, the second potential annotation information, and the third potential annotation information.

[0098] Then the second semantic annotation information can be used to indicate at least one of the following information: the role of a type of control related to the first outline information, and the behavior information after the type of control related to the first outline information is triggered.

[0099] According to the second aspect, or any implementation of the second aspect above, the method also includes: storing the first contour set and the first semantic annotation set in association with the target storage unit; wherein the elements in the first contour set include the first contour information, and the control contour information whose contour difference with the first contour information satisfies a preset condition; the elements in the first semantic annotation set are the second semantic annotation information related to the elements in the first contour set (for example, the second semantic annotation information annotated for the first contour information).

[0100] Among them, the steps of this implementation method can be a detailed description of the step of "marking the second semantic annotation information as semantic information of the control related to the first contour information" in the above-mentioned second aspect, or it can be a further limitation of the method of the second aspect, and is not limited here.

[0101] Among them, the target storage unit can be a local storage unit of the second electronic device (such as internal memory, or internal memory, etc.), or an external storage unit accessible to the second electronic device, for example, an external memory (external storage card, such as a Micro SD card), or a database in the cloud, etc.

[0102] In one implementation, the target storage unit may have an icon database, which includes a clustered contour set and a semantic annotation set related to the contour set.

[0103] The second electronic device can cluster the contour information of the control to be labeled. The clustering can be performed before the contour information is stored in the icon database, or when the contour information is stored in the database (for example, clustering the contour information of the control to be labeled with the contour set already stored in the icon database), or both methods can exist, and there is no limitation here.

[0104] In one implementation, when the second electronic device annotates the second semantic annotation information as semantic information of a control related to the first contour information, it may add the first contour information to a certain contour set in an icon database whose contours are similar to the first contour information, and add the second semantic annotation information to a certain semantic annotation set related to the certain contour set.

[0105] In one implementation, the above-mentioned first contour set may be one of the contour sets obtained by clustering multiple first contour information obtained by the second electronic device for multiple controls to be labeled before the first contour information is stored in the icon database. Then, when the first contour set is stored in the icon database, the first contour information of each control to be labeled in the first contour set may be stored in the icon database as a contour set.

[0106] The first profile set may include first profile information. In addition, the first profile set may be a new clustering set or a profile set already existing in the target storage unit.

[0107] In this way, the efficiency of semantic annotation of controls can be improved through contour clustering.

[0108] According to the second aspect, or any implementation method of the second aspect above, the second semantic annotation information related to the first contour information of the control to be annotated includes a target term in the second potential annotation information; wherein, the target term is: the intersection between the second potential annotation information related to the control to be annotated, and the second potential annotation information in the first semantic annotation information related to the target element; wherein, the target element is the control contour information in the first contour set whose contour difference with the first contour information meets a preset condition.

[0109] The target terms are part or all of the terms in the second potential annotation information.

[0110] Specifically, when the first semantic annotation information of the control to be annotated includes the second potential annotation information, when determining whether to store the entry in the text displayed around the control to be annotated in the first semantic annotation set related to the first contour set, the second electronic device may, when determining that the entry is a repeated entry, write the entry as the second semantic annotation information into the first semantic annotation set.

[0111] The process of determining whether a term appears repeatedly is explained in detail in the specific implementation method section and will not be repeated here.

[0112] Since the second potential annotation information is the text displayed around the control to be annotated on its application interface, the text is not necessarily the text information describing the control to be annotated. Therefore, in order to improve the accuracy of the semantic information of the control annotation related to the contour information, only if the entry in the second potential annotation information has appeared repeatedly in the second potential annotation information of the similar contour, it means that there is a high probability that the entry describes the control of this type of contour. In this case, the entry can be annotated as the second semantic annotation information of the control related to the first contour information.

[0113] According to the second aspect, or any implementation of the second aspect, the elements in the first outline set are stored in the target storage unit in a scalable vector graphic (SVG) format.

[0114] In this way, storing contour information in SVG format can reduce the amount of storage data describing the contour information of the control in the target storage unit compared to storing the contour in pixel form, and can store more contour and semantic annotation information in a limited storage space.

[0115] According to the second aspect, or any implementation manner of the second aspect above, the method also includes: converting the first contour information into SVG format; based on the similarity between the first contour information in SVG format and the elements (part or all of the elements, without limitation) in SVG format within each contour set (which may include the above-mentioned first contour set) in the target storage unit, determining the first contour set in the target storage unit whose contour difference with the first contour information in SVG format meets a preset condition.

[0116] When the second electronic device stores the first contour information into the database, it can store the first contour information in SVG format, and compare the contour similarity with the elements in each contour set in the icon database in SVG format to determine the first contour set in the icon database that is similar to the first contour information, and add the first contour information to the first contour set in the icon database.

[0117] In this way, calculating the contour difference with the contour in SVG format can improve the speed of finding similar contours, thereby improving the speed and efficiency of semantic annotation of controls.

[0118] According to the second aspect, or any implementation of the second aspect above, the first contour information of at least one of the controls to be labeled is composed of multiple groups of contour information in the same contour range.

[0119] In this way, the second electronic device of the present application can identify multiple graphics within the same contour range in the screen display content as the same control (here, an icon) to improve the recognition accuracy of the contour information of the control.

[0120] In a third aspect, an embodiment of the present application provides a control identification system, comprising the first electronic device that executes the method in the first aspect and any one of the implementations of the first aspect, and the second electronic device that executes the method in the second aspect and any one of the implementations of the second aspect, wherein the first electronic device is different from the second electronic device.

[0121] For example, the first electronic device is a smart car, and the second electronic device is a server in the cloud. Alternatively, the first electronic device and the second electronic device are both terminal devices. This is not limited here.

[0122] The second electronic device is used to semantically annotate the control, generate outline information of the control and semantic information annotated on the control. The first electronic device can use the above information generated by the second electronic device to identify the first semantic information of the control to be identified whose outline has been identified.

[0123] The first electronic device and the second electronic device may interact with each other in any manner, such as wired or wireless, without limitation.

[0124] According to a third aspect, the second electronic device comprises the target storage unit.

[0125] The technical effects corresponding to the third aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, as well as the technical effects corresponding to the above-mentioned second aspect and any implementation method of the second aspect, and will not be repeated here.

[0126] In a fourth aspect, an embodiment of the present application provides a control identification device, which is used to execute the method in the first aspect and any one of the implementations of the first aspect.

[0127] For example, the control identification device may be the above-mentioned first electronic device, or a software module in the first electronic device, or a chip of the first electronic device, etc.

[0128] The technical effects corresponding to the fourth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0129] In a fifth aspect, an embodiment of the present application provides a first electronic device. The first electronic device includes: a memory and a processor, the memory and the processor are coupled; the memory stores program instructions, and when the program instructions are executed by the processor, the first electronic device executes the method in the first aspect and any one of the implementations of the first aspect.

[0130] The technical effects corresponding to the fifth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0131] In a sixth aspect, an embodiment of the present application provides a computer-readable medium. The computer-readable medium is used to store a computer program, and when the computer program is run on an electronic device (e.g., a first electronic device), the electronic device executes the method in the first aspect and any one of the implementations of the first aspect.

[0132] The technical effects corresponding to the sixth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0133] In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is caused to execute the method in the first aspect and any one of the implementations of the first aspect.

[0134] The technical effects corresponding to the seventh aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0135] In an eighth aspect, an embodiment of the present application provides a chip. The chip includes one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of a first electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the first electronic device executes the method in the first aspect and any one of the implementations of the first aspect.

[0136] The technical effects corresponding to the eighth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0137] In a ninth aspect, an embodiment of the present application provides a data acquisition device, which is used to execute the method in the second aspect and any one of the implementations of the second aspect.

[0138] For example, the data acquisition device may be the second electronic device mentioned above, or a software module in the second electronic device, or a chip of the second electronic device, etc.

[0139] The technical effects corresponding to the ninth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0140] In a tenth aspect, an embodiment of the present application provides a second electronic device. The second electronic device includes: a memory and a processor, the memory and the processor are coupled; the memory stores program instructions, and when the program instructions are executed by the processor, the second electronic device executes the method in the second aspect and any one of the implementations of the second aspect.

[0141] The technical effects corresponding to the tenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation method of the second aspect, and will not be repeated here.

[0142] In an eleventh aspect, an embodiment of the present application provides a computer-readable medium. The computer-readable medium is used to store a computer program, and when the computer program is run on an electronic device (such as a second electronic device), the electronic device executes the method in the second aspect and any one of the implementations of the second aspect.

[0143] The technical effects corresponding to the eleventh aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation method of the second aspect, and will not be repeated here.

[0144] In a twelfth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is caused to execute the method in the second aspect and any one of the implementations of the second aspect.

[0145] The technical effects corresponding to the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation method of the second aspect, and will not be repeated here.

[0146] In the thirteenth aspect, the embodiment of the present application provides a chip. The chip includes one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of a second electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the second electronic device executes the method in the second aspect and any one of the implementations of the second aspect.

[0147] The technical effects corresponding to the thirteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation method of the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0148] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0149] Figure 1 One of the structural schematic diagrams of an electronic device is shown as an example;

[0150] Figure 2 A schematic diagram of the software structure of an electronic device is shown as an example;

[0151] Figure 3 is a schematic diagram of an application scenario shown as an example;

[0152] Figure 4a is a schematic diagram of a data processing process shown as an example;

[0153] Figure 4b is a schematic diagram of an application scenario shown as an example;

[0154] Figure 4c is a schematic diagram of an application scenario shown as an example;

[0155] Figure 4d is a schematic diagram of an application scenario shown as an example;

[0156] Figure 5a is a schematic diagram of a data processing process shown as an example;

[0157] Figure 5b is a schematic diagram of a data processing process shown as an example;

[0158] Figure 5c is a schematic diagram of a data processing process shown as an example;

[0159] Figure 6a is a schematic diagram of an application scenario shown as an example;

[0160] Figure 6b is a schematic diagram of an application scenario shown as an example;

[0161] Figure 6c is a schematic diagram of an application scenario shown as an example;

[0162] Figure 7 is a schematic diagram of an application scenario shown as an example;

[0163] Figure 8a is a block diagram of a cloud structure shown as an example;

[0164] Figure 8b is a structural block diagram of an electronic device shown as an example;

[0165] Fig. 9 A schematic diagram of the structure of the device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0166] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0167] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0168] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0169] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0170] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0171] Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. It should be understood that Figure 1 The electronic device 100 shown is only an example of an electronic device. Optionally, the electronic device 100 may be a terminal, which may also be called a terminal device. The terminal may be a cellular phone, a tablet computer (pad), a wearable device or an IoT device (such as a smart TV), a vehicle-mounted device, a smart car, or other device with a display screen or a rear-mounted display screen. This application does not limit this. It should be noted that the structural diagram of the electronic device 100 may be applicable to Figure 3 The mobile phone 201 and smart TV 202 can also be applied to Figure 3 The electronic device 100 is not limited to the smart car 203 in the figure. It should be further explained that the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0172] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0173] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0174] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0175] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0176] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0177] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0178] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0179] The charging management module 140 is used to receive charging input from a charger.

[0180] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0181] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0182] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0183] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0184] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0185] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0186] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0187] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0188] The camera 193 is used to capture still images or videos. The object is projected onto the photosensitive element by generating an optical image through the lens.

[0189] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0190] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 enables the electronic device 100 to execute the method in the embodiment of the present application by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0191] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0192] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0193] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0194] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0195] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.

[0196] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0197] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0198] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0199] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0200] The layered architecture of the electronic device 100 divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0201] The application layer can include a series of application packages.

[0202] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0203] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0204] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an icon semantic recognition module, and the like.

[0205] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0206] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0207] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0208] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0209] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0210] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.

[0211] The icon semantic recognition module is used to obtain a screenshot image through the window manager and process the screenshot image to identify the controls (described by outlines) and the semantics of the controls in the screenshot image, and in response to voice input received by the electronic device 100, determine the target control for the operation indicated by the voice input and the target operation to be performed on the target control based on the identified controls and their semantics.

[0212] The specific processing process of the icon semantic recognition module will be described in detail in the following embodiments.

[0213] The system library and runtime layer include the system library and Android Runtime. The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The 3D graphics library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc. The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library contains two parts: one part is the function functions that need to be called by the Java language, and the other part is the core library of Android. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

[0214] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0215] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0216] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0217] A 2D graphics engine is a drawing engine for 2D drawings.

[0218] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0219] Understandably, Figure 2 The components included in the system framework layer, system library and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.

[0220] With the increasing development of electronic devices, the voice operation function of electronic devices is becoming more and more mature. Visible and Sayable service is a functional service that can realize voice operation of electronic devices. Visible and Sayable service can simulate manual operation on the screen display content of electronic devices through voice to realize the control of the screen display content. For example, the voice command can be "return to the home page", "click on the address book", "swipe up", "swipe down", etc., so as to realize the operation functions such as returning to the home page, opening the address book page, swiping up the page, and swiping down the page. The specific instructions are not limited here.

[0221] The Kankeshuo service is mainly divided into three functional modules: page element acquisition module, page element understanding module, and page element operation module.

[0222] The page element acquisition module can be used to obtain all user-visible controls on the current page.

[0223] The page element understanding module can determine the function of controls based on the control layout and the relationship between controls.

[0224] The page element operation module can perform corresponding operations on the corresponding controls in the current page according to the received voice commands.

[0225] When implementing the visible and talkable service, the related technology can be implemented by utilizing the page element acquisition module, the page element understanding module, and the page element operation module. The specific implementation method is as follows:

[0226] The page element acquisition module can obtain the control tree of the current page through an auxiliary service (a system-level service), and then obtain the control set of the current page by parsing the control tree.

[0227] The page element understanding module can obtain the description (Description) attribute, text (Text) attribute, etc. of the control on the current page to obtain the control description information (which may include the control type) of the control in the current page; in addition, the page element understanding module can infer the operations that the control can support based on the control type. Among them, the Description attribute can indicate the information about the control that can be output in the blind mode, and the Description attribute can include information used to indicate the function of the control. The Text attribute can be used to indicate the text content displayed in the control.

[0228] The page element operation module can determine the control to be operated and the operation to be performed on the control based on the received voice instructions, control description information and operations supported by the control; and the page element operation module can call the control interface through the auxiliary service to perform corresponding operations on the control.

[0229] However, when the auxiliary service obtains the control tree of the current page in the above-mentioned page element acquisition module in the related art, the auxiliary service can only obtain Android standard controls (such as input boxes, drop-down lists, switch options, scroll bars and other controls), but cannot obtain icon controls (such as controls including graphics). At present, a large proportion of the control types in the application interface are icon controls. For example, icon controls may include controls developed in Flutter language and javaScript language, custom controls, webView type controls, etc., which are not limited here. As a result, the control types of controls obtained by the page element acquisition module in the related art are limited, and it is difficult to obtain icon controls.

[0230] In addition, the page element understanding module in the related art mainly relies on the Description attribute, Text attribute and other attributes of the control itself to obtain the operations supported by the control. However, these control attributes are highly dependent on the developer settings, and these control attributes are not control attributes that are required to be written compulsorily, so that in most cases the values ​​of these control attributes are empty. Then the page element understanding module cannot obtain the control description information of the control through the Description attribute, Text attribute and other attributes of the control. In addition, icon-type controls are mainly composed of graphics and rarely include text content. Then the page element understanding module in the related art cannot obtain the control description information for icon-type controls by obtaining the Text attribute of the control (used to indicate the text content in the control).

[0231] Therefore, the visible and speakable service in the related art does not support the recognition and operation of icon-type controls.

[0232] To this end, the present application provides a method, an electronic device, a cloud, and a system, which may include a cloud and an electronic device.

[0233] Exemplarily, the structure of the electronic device can be implemented as Figure 1 , Figure 2 The structure of the electronic device 100 shown in FIG. 1 is not limited here.

[0234] Exemplarily, the cloud can be a server or a server cluster or a data center, which is also not limited here.

[0235] The method of the present application can identify icon-type controls in the display interface of an electronic device. Specifically, the method can identify the contour information of each icon-type control in the display interface, wherein the display position of each icon-type control in the display interface can also be determined simultaneously through contour recognition, and the method can also perform semantic recognition on each icon-type control in the display interface. In this way, in a visible and speakable scenario, the method of the present application can respond to the received voice input, and determine the target control that needs to be operated in the display interface and the operation to be performed on it based on the semantic information, contour information and position information obtained for each icon-type control in the display interface, wherein the semantic information of the target control matches the semantics of the voice input, and the contour information of the target control can be used to determine the display position of the target control in the display interface, so as to implement the operation of the icon-type controls in the display interface in a visible and speakable scenario.

[0236] It should be understood that the method of the present application is not limited to identifying icon-type controls, but other types of controls displayed on the display interface can also be identified using the above method.

[0237] Figure 3 The following is a schematic diagram of an application scenario of the system of the present application, as shown in FIG. Figure 3 As shown, the system may include a cloud 200 (eg, a server cluster, which is not limited here) and an electronic device (eg, a server cluster) that interacts with the cloud 200. Figure 1 , Figure 2 The electronic device 100 shown, Figure 3 Multiple electronic devices are shown, namely, a mobile phone 300, a smart TV 400, and a smart car 500. In other embodiments, the electronic devices interacting with the cloud 200 may include: Figure 3 More (or fewer) types and more (or fewer) numbers of electronic devices, for details on the introduction of the electronic devices, please refer to Figure 1 The introduction of the electronic device 100 in FIG. 1 will not be repeated here and will not be limited thereto.

[0238] The cloud 200 can extract contour information from any application interface to determine the controls within the application interface, wherein the controls are described by contour information, and the cloud 200 can semantically annotate the controls within the application interface to obtain the semantic annotation information of the controls, wherein the semantic annotation information may include information indicating the function of the control and / or the operations supported by the control (e.g., the call control may support the operation of making a call), etc., without specific limitation. And the cloud 200 can write the contour information of the control and the semantic annotation information of the control into the icon database 700 for storage in association. Among them, the cloud 200 can deploy a database as the icon database 700, for example, the icon database 700 can be a database in a storage cluster within the cloud 200, wherein the storage cluster can be implemented as a server cluster for storing data. Alternatively, the icon database 700 is an external database to which the cloud 200 can connect, without limitation here.

[0239] The cloud 200 can store the data in the icon database 700, specifically Figure 3 The outline of the control shown and the semantic annotation information of the control are sent to the mobile phone 300, the smart TV 400, and the smart car 500 respectively.

[0240] For example, the cloud 200 may send the data in the icon database 700 to the mobile phone 300, smart TV 400, and smart car 500 before or after the mobile phone 300, smart TV 400, and smart car 500 leave the factory.

[0241] In addition, after the cloud 200 sends the data in the icon database 700 to the mobile phone 300, smart TV 400, and smart car 500, the cloud 200 can update the data in the icon database 700. When the updated data in the icon database 700 meets specific conditions, the cloud 200 can synchronously send the updated data in the icon database 700 to the mobile phone 300, smart TV 400, and smart car 500. The above-mentioned specific conditions, for example, can be that the amount of data of the newly added contour information is greater than the first preset threshold, and / or the amount of data of the newly added semantic annotation information is greater than the second preset threshold. The specific conditions are not limited here and can be flexibly configured according to needs.

[0242] In this way, the outlines of controls and the semantic annotation information of controls stored in the above-mentioned mobile phones 300, smart TVs 400, smart cars 500 and other electronic devices can be updated as the data in the icon database 700 is updated, ensuring that the data stored in the icon database 700 on the electronic device side is synchronized with the data stored in the icon database 700 on the cloud 200 side.

[0243] In a possible implementation, the data of the icon database 700 sent by the cloud 200 to the mobile phone 300, the smart TV 400, and the smart car 500 respectively may be the same set of contour information and semantic annotation information.

[0244] In the embodiment of the present application, the profile information and its related semantic annotation information generated by the cloud 200 may distribute the same set of data to each electronic device regardless of the device type or the operating system of the device.

[0245] In another possible implementation, when there are differences in electronic devices that interact with the cloud 200 (for example, at least one of device type, operating system, etc.), considering that the application interface of the same application displayed on electronic devices of different types and electronic devices with different operating systems may have differences in control display and / or triggering methods, the cloud 200 may match the outline of the control sent to different types of electronic devices and the specific content of the semantic annotation information of the control with at least one device parameter of the corresponding electronic device, such as the device type, operating system, etc.

[0246] For example, Figure 3 In the example, the mobile phone 300 is installed with the Hongmeng system, the smart TV 400 is installed with the Android operating system, and the smart car 500 is installed with the car system. Then, the outline of the control and the semantic annotation information of the control sent by the cloud 200 to the mobile phone 300 may be adapted to the mobile phone of the Hongmeng system. The outline of the control and the semantic annotation information of the control sent by the cloud 200 to the smart TV 400 may be adapted to the smart TV of the Android operating system, for example, not adapted to the mobile phone or tablet computer of the Android operating system. And the outline of the control and the semantic annotation information of the control sent by the cloud 200 to the smart car 500 may be adapted to its car system (for example, specifically the Hongmeng system), but not adapted to other types of devices such as mobile phones or tablet computers of the Hongmeng system.

[0247] The following is generated by Cloud 200 and is suitable for Figure 3 Taking the process of generating the outline of the control of the smart car 500 and the semantic annotation information of the control, and the cloud 200 sending the generated outline and semantic annotation information to the smart car 500 as an example, the method of the present application can be explained with reference to the following Example 1.

[0248] Furthermore, taking the process of the smart car 500 using the pre-acquired outline of the control and the semantic annotation information of the control to identify and process the icon-type control as an example, please refer to the following Example 2 to illustrate the implementation process of the method of the present application.

[0249] When the electronic device is replaced by other electronic devices from the smart car 500, the method principle is similar and will not be repeated here.

[0250] Example 1

[0251] Figure 4a FIG. 2 is a schematic diagram showing an exemplary data processing process in the cloud 200 .

[0252] In this example 1, the cloud 200 sends the generated icon database data to Figure 3 The smart car 500 in the example is used for illustration. Then the cloud 200 can install multiple applications adapted to the vehicle system of the smart car 500, and process the display interface of the application to generate data of the icon database adapted to the above vehicle system. The data in the icon database can refer to the above introduction, which will not be repeated here. In this way, the contour information, semantic annotation information and other data of the controls in the icon database can match the applications installed in the vehicle system of the smart car 500.

[0253] In a possible implementation 1, the cloud 200 may be configured with a simulator of the vehicle display screen of the smart car 500, wherein the vehicle display screen is installed with the vehicle system of the smart car 500, and the vehicle display screen may be a tablet computer. In this way, the cloud 200 may use the simulator to simulate the vehicle display screen of the smart car 500. The cloud 200 may download and install an application adapted to the vehicle system from the application store of the vehicle system in the above-mentioned simulator, and run the application on the simulator, and the cloud 200 may process the display interface of the application running on the simulator, thereby generating data of an icon database that can adapt to the vehicle system of the smart car 500. Among them, the vehicle system may be a Hongmeng vehicle system, an Android vehicle system, or a Linux vehicle system, which is not limited here.

[0254] In another possible implementation 2, the cloud 200 can be connected to multiple vehicle-mounted display screens of the smart car 500 through various connection methods (such as wired connection or wireless connection, which is not limited here), wherein the device type of the multiple vehicle-mounted display screens here can be a tablet computer, and the operating system of each vehicle-mounted display screen is the vehicle-mounted system of the smart car 500. For example, Figure 4b and Figure 4cThe vehicle display screen 701 shown is one of the above-mentioned multiple vehicle display screens connected to the cloud 200. The cloud 200 can control the above-mentioned multiple vehicle display screens to batch install applications that can be run on the vehicle system from their respective application stores (all of which are application stores of the vehicle system of the above-mentioned smart car 500). Then, the cloud 200 can control the multiple vehicle display screens to run the installed applications to obtain the display interface of each application on each vehicle display screen from each vehicle display screen. The cloud 200 processes the application interface (such as the display interface) displayed on the screen of each vehicle display screen to generate data that can adapt to the icon database of the vehicle system of the smart car 500. Alternatively, the cloud 200 can control each vehicle display screen to process the display interface of its own application to generate data that can adapt to the icon database of the vehicle system of the smart car 500.

[0255] exist Figure 4a In the process, the cloud 200 adopts the above-mentioned implementation mode 2 to generate data of the icon database that can adapt to the vehicle system of the smart car 500 as an example to illustrate. When the cloud 200 adopts implementation mode 1 or other implementation modes to implement the data processing process, the implementation principle of the method is similar and will not be repeated here.

[0256] like Figure 4a As shown, the process may include the following steps:

[0257] S201, the cloud 200 can take screenshots of the display interface of the installed application and obtain the first screenshot image of each of the multiple display interfaces of the installed application.

[0258] Among them, the multiple display interfaces can be the display interfaces of each application interface of the installed applications, or the display interfaces of some application interfaces. There is no limitation here. Here, the multiple display interfaces are the display interfaces of each application interface of the installed applications as an example.

[0259] For example, the cloud 200 can control each connected in-vehicle display screen to batch download and install a predetermined number (e.g., 200, not limited here) of applications from their respective application stores. Also, the cloud 200 can control multiple connected in-vehicle display screens in parallel to traverse the installed applications, so as to start each installed application one by one on the in-vehicle display screens.

[0260] For a single launched application, the cloud 200 can control the vehicle-mounted display screen to load the application interface of the application, so that the application interface is displayed on the screen of the vehicle-mounted display screen.

[0261] Then, the cloud 200 can control the vehicle display screen to parse the control tree of the application interface through the auxiliary service (a system-level service), so as to determine which control on the application interface can be used to enter the next application interface of the application according to the control tree, so as to realize the traversal display of the application interface of the application. For example, the cloud 200 can control the vehicle display screen to traverse the control tree of the displayed application interface, such as traversing the control tree through the depth-first search (DFS) algorithm, which is not limited here, so that all user-visible application interfaces of the application can be traversed.

[0262] Furthermore, after each time the vehicle display screen displays an application interface that has not been displayed before, the cloud 200 can control the vehicle display screen to take a screenshot of the displayed application interface to obtain a screenshot image of all application interfaces of a single installed application.

[0263] For the 200 applications installed on the vehicle display screen, the cloud 200 can control the vehicle display screen according to the above process to traverse the applications to obtain screenshots of all application interfaces of the 200 applications.

[0264] Next, the cloud 200 can control the vehicle display screen to uninstall and delete the 200 installed applications, and then control the vehicle display screen to download other applications that have not been downloaded from the application store, and continue to execute the above process, thereby obtaining screenshots of application interfaces of more applications, until the cloud 200 controls the vehicle display screen to download all applications from the application store. In this way, the cloud 200 can obtain screenshots of application interfaces of all installed applications on multiple connected vehicle display screens (such as the first screenshot in S201).

[0265] It should be understood that the multiple vehicle-mounted display screens connected to the cloud 200 have different applications installed. In this way, the cloud can install, start, and take screenshots of applications by batch controlling the vehicle-mounted display screens, thereby speeding up the acquisition of screenshot images of the display interfaces of all applications in the application store.

[0266] In a possible implementation, the cloud 200 can also obtain the control types of some or all controls in the application interface by parsing the control tree of the application interface to determine which controls in the application interface are non-icon controls (for example, text boxes, selection boxes, drop-down boxes, switch controls and other Android standard controls). Then in the following S202, the cloud 200 can perform contour detection on controls other than non-icon controls in the screenshot image of the application interface to obtain the contour information of icon controls in the application interface.

[0267] S202, the cloud 200 may process each of the first screenshot images to obtain first contour information within each of the display interfaces.

[0268] The cloud 200 may process the screenshot image of the display interface of the application interface through an edge detection algorithm to identify contour information (eg, the first contour information in S202) in the screenshot image.

[0269] When the cloud 200 identifies the contour information in the screenshot image, it can determine the position of the contour in the screenshot image, thereby determining the display position (eg, pixel position) of the first control associated with each contour in the screenshot image.

[0270] The first control here may be a part of the controls or all of the controls in the screenshot image of the display interface, and there is no specific limitation.

[0271] In one possible implementation, when acquiring the first contour information in each display interface, the cloud 200 may filter the controls in the display interface according to the control type (here, non-icon type controls) in each display interface acquired by the above process, and perform contour identification on the controls other than the non-icon type controls in the screenshot image of the display interface to acquire the contour information of the icon type controls.

[0272] In another possible implementation, whether it is an icon-type control or a non-icon-type control (such as an Android standard control, etc.), as long as the control has outline information, the cloud 200 of the present application can obtain the outline information of the corresponding control through S202.

[0273] Figure 4b , Figure 4c The figure is a schematic diagram of an exemplary application scenario.

[0274] like Figure 4b , Figure 4c The vehicle-mounted display screen 701 shown is a vehicle-mounted display screen connected to the cloud 200 , and under the control of the cloud 200 , the vehicle-mounted display screen 701 sends screenshot images of application interfaces of all installed applications to the cloud 200 .

[0275] Figure 4b The display interface 702 of the vehicle-mounted display screen 701 is exemplarily shown, wherein the display interface 702 is an application interface of a desktop application.

[0276] like Figure 4bAs shown, the display interface 702 may include multiple controls, which may include but are not limited to controls 101 to 121. Among them, controls 101 to 118 are application icons of installed applications. Control 119 is a control for indicating time, control 120 is a control for indicating power, and control 121 is a control for turning pages of the desktop.

[0277] Each of the controls 101 to 118 may include an icon and text. For example, control 107 may include a music icon 1075 and text 1074 ("Music" in this case). The music icon 1075 is an icon-type control, which is the control that this application aims to identify, and the text 1074 does not belong to a graphic.

[0278] Please refer to Figure 4b , the cloud 200 can identify all contours in the screenshot image of the display interface 702 to obtain contour information of all controls in the display interface 702.

[0279] Taking the music icon shown in control 107 as an example, control 107 includes a music icon 1075 shown in a dotted frame (the actual display interface does not include the dotted frame, which is only for the convenience of explanation) and text 1074 (here "Music"), wherein the music icon 1075 is composed of graphics 1071, graphics 1072, and graphics 1073. For another example, control 116 includes icon 1161 and text 1162 (here "Address Book"), control 117 includes icon 1171 and text 1172 (here "Phone"), and control 114 includes icon 1141 and text 1142.

[0280] In a possible implementation, the cloud 200 may combine contours within the same contour range to use the combined contours as the contour of a control.

[0281] Specifically, the cloud 200 can identify the contour information of the graphic 1071, the contour information of the graphic 1072, and the contour information of the graphic 1073 in the screenshot image of the display interface 702 through the edge detection algorithm. Based on the above three contour information identified, the cloud 200 can determine that the contour of the graphic 1073 is within the contour range of the graphic 1072, and the contour of the graphic 1072 is within the contour range of the graphic 1071, then the cloud 200 can identify multiple graphics within the same contour range as the same control (here is an icon). Specifically, the cloud 200 can combine the contour information of the graphics 1071, the graphics 1072, and the graphics 1073 into a group of contour information, and determine that the group of contour information is the contour information of the same control (here is an icon), so that the cloud 200 can identify the contour information of the music icon 1075 of the control 107 (such as the above-mentioned group of contour information after the combination) by contour combination.

[0282] for Figure 4b Other controls shown in the display interface 702 can also combine multiple outlines belonging to the same control by identifying the overlap between different outlines, so as to identify the overall outline information of the control, and will not identify multiple outlines belonging to the same control as outlines of different controls. In this way, the cloud 200 can not only identify icon controls composed of a single outline, but also identify icon controls that also have graphics within the outline range of the icon, so as to fully realize the identification and operation of icon controls in the application interface.

[0283] Continue to refer to Figure 4b , the cloud 200 can identify the outline information (here is the combined outline information) of the application icon of each application in controls 101 to 118, where the maximum outline of each control is the size of the outline of the control. For example, the outline of control 107 includes the outline of graphic 1071, the outline of graphic 1072, and the outline of graphic 1073. The outline of graphic 1071 is the maximum outline of control 107, so the size of the outline of control 107 is the size of graphic 1071 (here is a rounded square frame). Then Figure 4b The size of the outlines of controls of other applications (eg, controls 101 to 106 , and controls 108 to 118 ) in the middle display interface 702 is also the outermost rounded square frame in the respective application icons.

[0284] In another possible implementation, the cloud 200 may group the contours according to their sizes.

[0285] Specifically, the cloud 200 may divide the outlines of controls with the same size into a group of controls, and determine the group of controls as controls that do not need to be filtered out (also called valid controls), for example Figure 4b The outlines of the application icons of the shown controls 101 to 118 are of the same size, and the outline information of these application icons is retained and does not need to be filtered out.

[0286] It should be understood that the cloud 200 divides the contours of the same size into a group of contours only to improve the filtering efficiency of the subsequent filtering process of the contours. In the process of subsequent operations on the contours, the grouping information of the contours may not be retained.

[0287] In another possible implementation, for example Figure 4bThe display interface 702 shown also displays a desktop wallpaper, so there are also outlines of graphics in the desktop wallpaper, so the outlines in the desktop wallpaper will also be identified by the edge detection algorithm. In order to avoid identifying outlines that do not belong to controls (also called outlines of invalid controls, such as outlines included in desktop wallpaper) as outlines of controls, the cloud 200 can filter the outline information that does not belong to controls (such as outline information of wallpaper) through a filtering algorithm, and the outlines mentioned in the above embodiment that are the same size as other outlines do not need to be filtered. Since outlines of the same size have been grouped, it can be determined that the entire group of outlines does not need to be filtered to improve the filtering efficiency of the outlines.

[0288] Exemplarily, the cloud 200 can filter the identified contours based on the distribution information of the identified contours in the screenshot image and the contour overlap between multiple contours. The specific filtering strategy is not limited as long as the purpose of filtering the contours of icons that do not belong to the control can be achieved.

[0289] For example, if a contour in a screenshot image has a large distribution range in the screenshot image (for example, a curved contour is distributed within the diagonal range of the screenshot image), then there is a high probability that the contour is a pattern contour in the background image or wallpaper in the screenshot image, and the contour can be filtered out by the cloud 200.

[0290] For example, if the degree of overlap (e.g., line intersection) or overlap rate between a certain contour in the screenshot image and other contours identified in the screenshot image is high, it means that there is a high probability that the contour is a pattern contour in the background image or wallpaper in the screenshot image, and the contour can be filtered out by the cloud 200.

[0291] In this way, the cloud 200 can filter out contour information that has a high probability of not belonging to a control in the identified contours, so as to improve the recognition accuracy of the contour information of icon-type controls.

[0292] For example, 200 pairs of Figure 4b The screenshot image of the display interface 702 shown is processed by the above process, and the outline information of the application icon of each control in controls 101 to 118 and control 121 can be identified.

[0293] Figure 4c The display interface 703 of the vehicle-mounted display screen 701 is shown as an example, wherein the display interface 703 is Figure 4b The application interface of the address book application indicated by the control 116 is shown. The display interface 703 may include a plurality of controls, which may include but are not limited to: control 119 , control 120 , controls 122 to 129 , control 1261 , control 1271 , and control 1281 .

[0294] Among them, control 122 is used to display a phone dialing interface for making a call, control 123 is used to display an interface including a contact list, control 124 is used to display an interface including a favorite contact list, and control 125 is used to display an interface of a contact list that can be used for smooth calls.

[0295] Among them, each control in controls 122 to 125 may include an icon and text, wherein control 122 may include icon 1221 and text 1222 (here, "phone"), control 123 may include icon 1231 and text 1232 (here, "contact"), control 124 may include icon 1241 and text 1242 (here, "favorites"), and control 125 may include icon 1251 and text 1252 (here, "smooth connection").

[0296] exist Figure 4c , control 123 is in a selected state, so that display interface 703 can display a contact list. Among them, control 129 indicates that the content currently displayed in display interface 703 includes contact information, and controls 126 to 128 indicate the avatar icons of each contact in the contact list. The content displayed by control 1261 is the text of the phone number of the contact corresponding to control 126. The content displayed by control 1271 is the name of the contact corresponding to control 127, and the content displayed by control 1281 is the name of the contact corresponding to control 128.

[0297] For example, control 1261, control 1271, control 1281, text 1222, text 1232, text 1242, text 1252, and control 119 are all text boxes, and control 120 is an Android standard control, and cloud 200 may not recognize the outline information of these controls. Alternatively, cloud 200 may recognize the outline information of these controls, but the outline information is filtered out because the outlines are irregular.

[0298] Please refer to Figure 4c The cloud 200 can identify the contours in the screenshot image of the display interface 703 to obtain contour information of all controls (eg, all icon-type controls) in the display interface 703 .

[0299] The specific implementation process of the cloud 200 obtaining the outline information of the control from the screenshot image of the display interface 703 can be referred to in Figure 4b The process of obtaining the contour information of the screenshot image of the display interface 702 shown is not repeated here.

[0300] For example, the cloud 200 uses an edge detection algorithm to perform edge detection on the screenshot image of the display interface 703 .

[0301] For another example, the cloud 200 may combine contours in the same contour range. For example, if the control 126 shown in the dotted box includes a graphic 1262 and a graphic 1263, the cloud 200 may combine the identified contour information of the graphic 1262 and the contour information of the graphic 1263 into the contour information of the same control (here, the control 126).

[0302] For another example, the cloud 200 may classify contours of the same size into contours of the same group. Figure 4c The outlines of the three controls 126 to 128 shown have the same size, and the cloud 200 may divide the outlines of the three controls into a group of outlines.

[0303] For example, the cloud 200 can also filter the recognized contours, for example Figure 4c The contour information of controls with irregular contours, such as control 1261, control 1271, control 1281, text 1222, text 1232, text 1242, text 1252, and control 119, are filtered.

[0304] In this way, the cloud 200 can Figure 4c The screenshot image of the display interface 703 shown identifies the outline information of each control in controls 126 to 128, controls 122 to 125, the outline information of icon 1221, the outline information of icon 1231, the outline information of icon 1241, and the outline information of icon 1251.

[0305] After S202, optionally, in S203, the cloud 200 may convert the first outline information of the multiple display interfaces into first outline information in a scalable vector graphics (SVG) format.

[0306] Among them, the format of the contour information of the control obtained by the cloud 200 from the screenshot images of each display interface can be various picture formats (such as JPEG, TIFF, RAW, BMP, GIF, PNG, etc.) or other formats, and there is no restriction here. The contour in picture format will take up a large storage space when stored, and when calculating the similarity of different contours, it is necessary to calculate the similarity through pixels, and the complexity of the calculation algorithm is also high, resulting in low efficiency in calculating the similarity between contours.

[0307] In this embodiment, the acquired contour information of the control is converted into SVG format. The graphics in SVG format are a kind of graphics composed of points, lines, curves and shapes based on mathematical formulas, which are used to render two-dimensional images. SVG format can store images with minimal data. In this way, the cloud 200 describes the control with contour information, and stores the contour information in SVG format, which can reduce the data storage capacity of the icon database 700 storing the contour information of the control. Then, after the cloud 200 sends the data of the icon database 700 to the electronic device side (here, the smart car 500), the storage space occupied by the data of the icon database on the electronic device side can be reduced. Regardless of whether the cloud 200 side or the electronic device side (such as the smart car 500) uses the contour information in the icon database 700 to compare similar contours, the contour information of the control represented in SVG format is used for similarity comparison, which can reduce the complexity of the algorithm and improve the retrieval efficiency of the control represented by the contour in the icon database 700.

[0308] After S202, optionally, in S204, a plurality of first outline information of a plurality of display interfaces are clustered to obtain a plurality of categories of first outline information.

[0309] In this embodiment, S204 is executed after S203. It should be understood that both S203 and S204 are executed after S202. In other embodiments, S204 may also be executed before S203. There is no limitation here.

[0310] In this embodiment, before clustering the contour information, the contour information is first converted into SVG format for storage. In this way, when clustering the contour information, a similarity comparison is performed on the contour information in SVG format, which can improve the clustering efficiency of the contour information compared to a pixel-level similarity comparison on the contour information in image format.

[0311] When clustering the identified contour information, the cloud 200 can calculate the similarity of different contour information. When the similarity is greater than a preset threshold (for example, 80% or 90%, which can be flexibly configured according to needs), the corresponding contour information can be clustered into one category of contour information.

[0312] For example, see Figure 4b and Figure 4c , Figure 4d To describe the process of contour clustering:

[0313] Cloud 200 through S202 Figure 4b The screenshot image of the display interface 702 shown in FIG. Figure 4c The screenshot image of the display interface 703 shown in FIG. 1 identifies the contour information. The contour information identified by the cloud 200 through S202 is displayed in FIG. Figure 4dIn the image, Figure 4d The images of the outlines of the various controls shown are only for the convenience of readers' understanding. What the cloud 200 obtains is the data in SVG format of the outline information.

[0314] Cloud 200 can Figure 4d The contour information shown is clustered, where the similarity between the contour information of icon 1161, the contour information of icon 126, and the contour information of control 1231 is greater than 90%. The cloud 200 can cluster the three contour information into one type of contour information (for the convenience of later reference, it is represented by contour category A here). Similarly, the similarity between the contour information of icon 1171 and the contour information of icon 1221 is greater than 90. The cloud 200 can cluster the two contour information into one type of contour information (for the convenience of later reference, it is represented by contour category B here). Similarly, the similarity between the contour information of icon 1141 and the contour information of icon 1251 is greater than 90. The cloud 200 can cluster the two contour information into one type of contour information (for the convenience of later reference, it is represented by contour category C here). For Figure 4d If there is no contour with a similarity greater than 90% in the first contour information of this time, no clustering processing will be performed.

[0315] In another implementation, S203 and S204 may be performed selectively, the principle is similar, and will not be described again here.

[0316] In another possible implementation, the cloud 200 may not execute S203 and S204. Then, when executing S205, the cloud 200 may write the first contour information obtained through S202 into the icon database 700. The implementation principle of the process of writing the contour information into the icon database 700 is similar to the implementation principle of S205 introduced later, and will not be repeated here.

[0317] After the above S204 , in S205 , the cloud 200 may write multiple types of first outline information into the icon database 700 .

[0318] For example, if the icon database 700 does not store any contour information in the initial state, the cloud 200 can directly write the acquired multiple types of first contour information into the icon database 700 .

[0319] For example, the cloud 200 may store multiple types of first contour information in the icon database 700 according to the contour categories.

[0320] by Figure 4d For example, the cloud 200 may store the outline information of the icon 1161 , the outline information of the control 126 , and the outline information of the icon 1231 in the icon database 700 in one outline category (eg, outline category A).

[0321] The cloud 200 may store the outline information of the icon 1171 and the outline information of the icon 1221 in the icon database 700 according to an outline category (eg, outline category B).

[0322] The cloud 200 may also store the outline information of the icon 1141 and the outline information of the icon 1251 in the icon database 700 according to an outline category (eg, outline category C).

[0323] for Figure 4d The cloud 200 can store the outline information of other non-clustered controls shown in the icon database 700 (such as music icon 1075, control 127, control 128, icon 1241, etc.), respectively, according to their respective outline categories.

[0324] In this way, the outline information of the controls can be classified and stored in the icon database 700 .

[0325] For example, the contour information stored in the icon database 700 may have contour category attributes (such as category identifiers, not specifically limited). In this way, the cloud 200 may classify and store contour information of different categories in the icon database 700 by contour category attributes.

[0326] For ease of understanding, the contour information of the same contour category can be described as a contour set, and the contour information of different contour categories can be described as different contour sets. Figure 4d The outline information of icon 1161, the outline information of control 126, and the outline information of icon 1231 are three elements in one outline set. Figure 4d The outline information of the music icon 1075 shown belongs to another outline set, but the outline set only has one element, which is the outline information of the music icon 1075. Figure 4d The contour information of other controls shown also belongs to their respective contour sets according to the clustering results.

[0327] In a possible implementation, the icon database 700 has stored the outline information. Figure 4d When the outline information of each control shown is written into the icon database 700, the cloud 200 can store the outline information of the control identified this time (for example Figure 4d The contour information of each control shown in the figure is calculated with the contour information stored in the icon database 700 to determine whether there is a contour in the icon database 700 that is similar to the contour recognized this time.

[0328] In a possible implementation, when the cloud 200 determines that there is a contour similar to the contour recognized this time in the icon database 700 , the cloud 200 may write the contour recognized this time into the contour set of the corresponding contour category in the icon database 700 .

[0329] In a possible implementation, when the cloud 200 determines that there is no contour similar to the contour recognized this time in the icon database 700, the cloud 200 may write the contour recognized this time into the icon database 700 according to a new contour category.

[0330] Exemplarily, the cloud 200 can cluster the identified contour information through S204. Then, when the contour information is stored in the database, the cloud 200 can calculate the similarity between the elements of the identified clustered contour set and the contour set in the icon database 700 to determine whether there is a contour set in the icon database 700 that is similar to the identified contour set.

[0331] For example, when the cloud 200 calculates the similarity between the contour sets of the identified contours and the contour sets in the icon database 700, one or more elements in each of the two contour sets may be selected for similarity calculation. When the cloud 200 determines that the calculated similarities are greater than or equal to a preset threshold, the cloud 200 may determine that the contour information between the two contour sets is similar, for example, they belong to the same contour category, and the cloud 200 may add all the elements in the identified corresponding contour sets to the similar contour sets in the icon database 700. When the cloud 200 determines that the calculated similarities are less than a preset threshold, the cloud 200 may determine that the contour information between the two contour sets is dissimilar, for example, they belong to different contour categories, and the cloud 200 may add all the elements in the identified corresponding contour sets to the icon database 700 as a new contour set.

[0332] It should be understood that the strategy for the cloud 200 to determine whether two profile sets are similar is not limited to the above examples, and may also include other more strategies, which are not limited here.

[0333] In the embodiment of the present application, when cloud 200 stores the identified contour information, it calculates the similarity between the contour sets after clustering and the contour sets in the icon database 700. In this way, cloud 200 can only calculate the similarity between some elements between contour sets to obtain the similarity between two contour sets, so as to store the entire contour set (as a new contour set, or add it to an existing contour set), which can reduce the amount of similarity calculation between contour information when storing contour information, thereby improving the efficiency of storing the identified contour information. In addition, by comparing the similarity between contours, cloud 200 can store the same or similar contour information in one contour category to achieve classified storage of contour information.

[0334] exist Figure 4a In an embodiment, before writing the first contour information into the icon database 700, the cloud 200 may cluster the obtained multiple first contour information, and then perform similarity comparison between the clustered multiple categories of first contour information and the existing contour information in the icon database 700, so as to quickly find a set of contours with similar contours in the icon database 700, so as to realize the rapid storage of contour information.

[0335] In other embodiments, Figure 4a The clustering operation of the contour information involved in S204 is not limited to being performed before the contour information is stored in the database, and the clustering operation can also be performed when the first contour information is stored in the database. Specifically, the cloud 200 can cluster the identified first contour information (such as the first contour information obtained in S202 or S203) with the contour information in the icon database 700 (the specific implementation principle can refer to the introduction of S204 above, which will not be repeated here) to determine whether there is a contour set similar to the first contour information to be stored in the icon database 700. When the cloud 200 determines that there is a contour set similar to the first contour information to be stored in the icon database 700, the cloud 200 can write the first contour information into the similar contour set; when the cloud 200 determines that there is no contour set similar to the first contour information to be stored in the icon database 700, the cloud 200 can write the first contour information into the icon database 700 as a new contour category, where the contour set corresponding to the new contour category only has one element, the first contour information.

[0336] In some embodiments, the cloud 200 may also perform a clustering operation (eg, Figure 4aS204 in the figure), and the cloud 200 can cluster the other part of the profile information in the identified first profile information and the part of the profile information after the above clustering when entering the storage (the specific principle can be referred to the above embodiment, which will not be repeated here), so as to complete the storage process of the identified first profile information.

[0337] After S202, the cloud 200 can not only execute S203 but also execute S301.

[0338] S301, the cloud 200 may determine the position of the first control related to the first outline information in the corresponding display interface based on the position of the first outline information in the corresponding first screenshot image.

[0339] As described above with respect to S202, when the cloud 200 uses an edge detection algorithm to identify contour information in a screenshot image, it can determine the position of the contour in the screenshot image, so that the cloud 200 can use the position to determine the display position (e.g., pixel position) of the control with the corresponding contour in the corresponding display interface.

[0340] by Figure 4b For example, the cloud 200 can identify the outline information (e.g., the outline information of the music icon 1075) in the screenshot image of the display interface 702, and can also determine the position of the outline information (specifically, the outline information of the graphic 1071, the outline information of the graphic 1072, and the outline information of the graphic 1073) in the screenshot image of the display interface 702. The screenshot image and the display interface 702 have the same size, so the cloud 200 can determine the pixel position of the outline information of the graphic 1071, the outline information of the graphic 1072, and the outline information of the graphic 1073 in the above screenshot image as the display position of the first control (here, the music icon 1075) having the outline information in the display interface 702.

[0341] S302, the cloud 200 may obtain first semantic annotation information of the first control related to the first outline information based on the position of the first control in the display interface.

[0342] Continuing to take the first control as the music icon 1075 as an example, the cloud 200 executes Figure 4aDuring the processes S203, S204, and S205 shown, the cloud 200 does not need to determine which specific control in the corresponding display interface the corresponding contour information belongs to, and the process only cares about the contour information. In order to semantically annotate the control having the contour information, the cloud 200 may determine in S302 which control in the display interface the first control having the corresponding contour information belongs to based on the display position of each contour information in the display interface. For example, the cloud 200 may determine that the control having the contour information of graphic 1071, the contour information of graphic 1072, and the contour information of graphic 1073 at the same time is the music icon 1075 in the display interface 702. In this way, the cloud 200 may obtain the first semantic annotation information of the control (e.g., the music icon 1075), so that the first semantic annotation information can be combined with the first contour information (e.g., the music icon 1075) identified by S202. Figure 4d The control corresponding to the associated first semantic annotation information and the first contour information is the same control.

[0343] Continue with Figure 4b Taking an example to illustrate the process of obtaining semantic annotation information, the cloud 200 can control the vehicle display screen 701 to parse the display interface 702 to obtain semantic annotation information of the first control whose contour information has been identified. The semantic annotation information may include at least one of the following: first potential annotation information, second potential annotation information, and third potential annotation information.

[0344] The first potential annotation information may include information for indicating the function of the corresponding control. Specifically, the first potential annotation information may include control description information, such as at least one of the Description attribute and the Text attribute of the control. The Description attribute may indicate information about the control that can be output in the blind mode, and the Description attribute may include information for indicating the function of the control.

[0345] For example, the cloud 200 can control the vehicle display screen 701 to parse the display interface 702 to obtain the Description attribute value of the music icon 1075, which is "play music" here, thereby obtaining the first potential annotation information of the music icon 1075 (here "play music"), thereby obtaining the first potential annotation information of the music icon 1075. Figure 4d The first potential annotation information associated with the outline of the music icon 1075 is shown.

[0346] for Figure 4d The method for obtaining the first potential label information of each other control is similar, and will not be repeated here.

[0347] Exemplarily, the second potential annotation information may be text information around the corresponding control in the display interface, and the second potential annotation information may include information for indicating the function of the corresponding control. The second potential annotation information can be obtained not only by controlling the vehicle display screen 701 through the cloud 200 to parse the corresponding display interface (such as the display interface 702), but also by controlling the vehicle display screen 701 through the cloud 200 to perform character recognition on the display interface through optical character recognition (OCR) technology to obtain the second potential annotation information of the control.

[0348] For example, the cloud 200 can control the vehicle display screen 701 to perform OCR technology recognition on the display interface 702 to obtain the text information around the music icon 1075 (here, the text 1074 (specifically "music")), so as to use "music" as the second potential annotation information of the music icon 1075, thereby obtaining the information related to the music icon 1075. Figure 4d The second potential annotation information associated with the outline of the music icon 1075 is shown.

[0349] for Figure 4d The method for obtaining the second potential label information of each other control is similar and will not be repeated here.

[0350] Exemplarily, the third potential annotation information may include information for indicating behavior information after a corresponding control in the display interface is triggered (eg, a triggering operation such as a single click, double click, or touch, which is not limited here).

[0351] For example, the cloud 200 may obtain parameters (such as interface name, etc.) of the system-level service interface (in other embodiments, it may also be an application-level interface) called by the corresponding application after the corresponding control is triggered as behavior information after the corresponding control is triggered.

[0352] by Figure 4b For example, the music icon 1075 shown in the figure is used. After the music icon 1075 is clicked, the vehicle-mounted display screen 701 can call the music playback interface. Then, the cloud 200 can use the interface name of the music playback interface (e.g., "music playback") as the third potential annotation information of the music icon 1075, so as to obtain the information related to the music icon 1075. Figure 4d The third potential annotation information associated with the outline of the music icon 1075 is shown.

[0353] For example, Figure 4c The icon 1221 shown in the figure, after the icon 1221 is clicked, the vehicle display screen 701 can call the dial interface to display the dial interface, then the cloud 200 can control the vehicle display screen 701 to obtain the interface name of the dial interface (here "dial") as Figure 4dThe third potential annotation information of icon 1221 is obtained by Figure 4d The third potential annotation information associated with the outline of the icon 1221 is shown.

[0354] for Figure 4d The method for obtaining the third potential annotation information of each other control is similar and will not be repeated here.

[0355] Table 1 shows an example of 200 pairs of Figure 4d Three types of semantic annotation information obtained for the three controls in the middle contour category A.

[0356] Contour elements First potential annotation information Second potential annotation information Third potential annotation information Element 1 "Contacts" "Contacts" "Show Contact List" Element 2 "avatar" "Contact"; "135xxxx055" "Open contact card" Element 3 "Contacts" "Contacts" "Show Contact List"

[0357] Table 1

[0358] Among them, element 1 in Table 1 and the following Tables 2, 3, and 4 is Figure 4d The outline information of the icon 1161 in SVG format is shown, and element 2 is Figure 4d The outline information of the control 126 in SVG format is shown, and element 3 is Figure 4d The outline information of the icon 1231 is shown in SVG format.

[0359] For the first potential annotation information of element 1 to element 3:

[0360] like Figure 4b The Description attribute of the icon 1161 shown is “address book”, so the first potential annotation information of element 1 in Table 1 is “address book”.

[0361] like Figure 4c The Description attribute of the control 126 shown is “avatar”, so the first potential annotation information of element 2 in Table 1 is “avatar”.

[0362] like Figure 4c The Description attribute of the icon 1231 shown is “address book”, so the first potential annotation information of element 3 in Table 1 is “address book”.

[0363] For the second potential annotation information of element 1 to element 3:

[0364] like Figure 4b As shown, the surrounding text of icon 1161 is “address book” as shown in text 1162 , and therefore, the second potential annotation information of element 1 in Table 1 is “address book”.

[0365] like Figure 4cAs shown, the surrounding texts of control 126 are the text "Contact" shown in control 129 and the text "135xxxx055" shown in control 1261. Therefore, the second potential annotation information of element 2 in Table 1 includes two entries, namely "Contact" and "135xxxx055".

[0366] like Figure 4c As shown, the surrounding text of icon 1231 is “contact” as shown in text 1232 , and therefore, the second potential annotation information of element 3 in Table 1 is “contact”.

[0367] For the third potential annotation information of element 1 to element 3:

[0368] like Figure 4b As shown, after the icon 1161 is triggered by being clicked, the vehicle display screen 701 can call the system interface for displaying the contact list. Therefore, the third potential annotation information of element 1 in Table 1 is "display contact list".

[0369] like Figure 4c As shown, after the control 126 is triggered by being clicked, the vehicle display screen 701 can call the system interface for opening the contact business card. Therefore, the third potential annotation information of element 2 in Table 1 is "open the contact business card".

[0370] like Figure 4c As shown, after the icon 1231 is triggered by being clicked, the vehicle display screen 701 can call the system interface for displaying the contact list. Therefore, the third potential annotation information of element 3 in Table 1 is "display contact list".

[0371] It should be understood that Table 1 is only for illustrating various types of annotation information related to the contour, and is not intended to limit the technical solution of the present application.

[0372] In this way, the cloud 200 can not only obtain Figure 4d The outline information of each control shown can also be based on the display position of the related first control of each outline information in the corresponding display interface 702 or the display interface 703, to obtain the semantic annotation information of the first control with each outline information, such as at least one of the first potential annotation information, the second potential annotation information, and the third potential annotation information mentioned above, thereby facilitating the automatic semantic annotation of controls (such as icon-type controls) and reducing the annotation cost of manual semantic annotation of controls.

[0373] In a possible implementation, the cloud 200 may also fail to recognize at least one of the three types of potential annotation information of the control to which the contour information belongs, because some icon-type controls may not have control description information such as Description, or there may be no text information around the icon-type control, or the icon-type control displayed in the display interface does not need to be triggered but only serves as a prompt.

[0374] In this way, the cloud 200 can obtain the first semantic annotation information related to each contour information in the identified contour information through S302.

[0375] After S302, in S303, the cloud 200 may write part or all of the first semantic annotation information of the first control in association with the first contour information into the icon database 700 based on the first semantic annotation information of the first control related to the first contour information.

[0376] In the icon database 700 , the first semantic annotation information and the first outline information may be stored in association with each other.

[0377] For example, Figure 4d The outline information of the music icon 1075 shown may be stored in the icon database 700 in association with the first semantic annotation information of the music icon 1075 .

[0378] In addition, as described above, the outline information of the control can be stored in the icon database 700 according to the outline category, for example Figure 4d As shown, the outline information of each control in outline category A is stored in one outline set, and the outline information of each control in outline category B is stored in another outline set. Then the semantic annotation information related to the outline information can also be classified and stored in the icon database 700, for example Figure 4d As shown, each control in the outline category A may have its own first semantic annotation information, so the first semantic annotation information of the icon 1161, the first semantic annotation information of the control 126, and the first semantic annotation information of the control 123 in the outline category A may be stored in the icon database 700 as an element in a semantic annotation set. In the icon database 700, the semantic annotation set may be stored in association with the outline set corresponding to the outline category A.

[0379] It should be understood that S303 can be executed after S205 or simultaneously with S205, and this application does not limit this. In other words, the cloud 200 can first write the contour information to the icon database 700, and then write the first semantic annotation information related to the contour information to the icon database 700. Alternatively, the cloud 200 can write the first contour information and the first semantic annotation information related to each other to the icon database 700 at the same time, which is not limited here.

[0380] The first semantic annotation information related to the first contour information identified by the cloud 200 may include at least one of the above-mentioned first potential annotation information, the second potential annotation information, and the third potential annotation information, wherein the first potential annotation information and the third potential annotation information are both accurate description information of the first control with the corresponding contour, which can be used to express the function and role of the corresponding control, and the above-mentioned second potential annotation information may include information that can describe the function and role of the corresponding control.

[0381] Then, in order to ensure that the semantic annotation information related to the contour in the icon database 700 has a high accuracy, when the cloud 200 writes the first semantic annotation information related to the first contour information into the icon database 700, for the second potential annotation information in the first semantic annotation information, the cloud 200 may make a judgment on whether it is repeated before writing it into the icon database 700. The specific judgment process will be described in conjunction with the following Table 2. When the cloud 200 determines that the entry in the corresponding second potential annotation information is a repeated entry, the cloud 200 may write the repeated entry into the icon database 700. When the cloud 200 determines that the entry in the corresponding second potential annotation information is a non-repeated entry, the cloud 200 does not need to write the entry into the icon database 700.

[0382] For the first potential annotation information and the third potential annotation information in the first semantic annotation information, since they can accurately express the functions and effects of the corresponding controls, the cloud 200 does not need to judge whether they appear repeatedly, and the first potential annotation information and the third potential annotation information related to the first contour information can be written into the icon database 700.

[0383] Combined with the data in the above Table 1, Table 2 is a schematic diagram of the logical structure of a data table for storing outline information and semantic annotation information in the icon database 700.

[0384]

[0385] Table 2

[0386] Combine the following Figure 4b to Figure 4d and Table 1, to illustrate the process of cloud 200 storing the first semantic annotation information of element 1, element 2, and element 3 in sequence, thereby obtaining the data table shown in Table 2.

[0387] 1. Cloud 200 stores the first semantic annotation information of element 1 in the database

[0388] Table 3 exemplarily shows the first semantic annotation information related to element 1 stored in the icon database 700. For example, before the first semantic annotation information related to each contour of contour category A is stored in the database, Figure 4d The outline information of the three controls of outline category A shown has been stored in the library.

[0389]

[0390]

[0391] Table 3

[0392] For example, when the cloud 200 stores the first semantic annotation information of element 1, the icon database 700 already stores Figure 4d Each element in the outline set of outline category A shown. However, at this time, the icon database 700 does not include any semantic annotation information, so the cloud 200 can write the term "address book" in the first potential annotation information of element 1 as shown in Table 1 into the icon database 700, and set the number of repetitions of the term "address book" to 1. The specific writing results can be referred to Table 3.

[0393] Similarly, the cloud 200 can write the term "display contact list" in the third potential annotation information of element 1 as shown in Table 1 into the icon database 700, and set the number of repetitions of the term "display contact list" to 1. The specific writing results can be referred to Table 3.

[0394] Before storing the second potential annotation information of element 1, cloud 200 may determine whether the terms in the second potential annotation information of element 1 are repeated. Specifically, cloud 200 may detect whether there are semantically similar terms (e.g., intersections of terms) between the terms in the second potential annotation information of element 1 (here, "address book" as shown in Table 1) and the second potential annotation information associated with the similar profile. The "similar profile" refers to a profile similar to element 1, which may be a profile identified by S202 before storage, or a profile that has been stored.

[0395] Since the icon database 700 currently does not store the second potential annotation information related to the contour of contour category A, the icon database 700 currently does not have the second potential annotation information related to the contour similar to element 1. In this example, the contours similar to element 1 only include element 2 and element 3 as shown in Table 1, that is, Figure 4d The outline information of the control 126 and the outline information of the icon 1231 are shown, and other embodiments are not limited thereto.

[0396] As shown in Table 1, the second potential annotation information of element 2 that is not stored in the database includes the term "contact" and the term "135xxxx055". The cloud 200 can determine that the second potential annotation information of element 2 that is similar to element 1 does not contain the term "address book". Similarly, referring to Table 1, the second potential annotation information of element 3 is the term "contact", and the term "address book" does not exist. Therefore, there is no intersection of terms between the second potential annotation information of element 1 and the second potential annotation information corresponding to the similar profile that is not stored in the database.

[0397] Furthermore, the icon database 700 does not store any contours similar to the contours of contour category A, so that there is no intersection of terms between the second potential annotation information “address book” of element 1 and the second potential annotation information of similar contours in the icon database 700 .

[0398] Therefore, in order to ensure the accuracy of the semantic annotation information in the icon database 700, the cloud 200 may not write the second potential annotation information "address book" of element 1 into the icon database 700. As shown in Table 3, the second potential annotation information is empty.

[0399] In this way, the cloud 200 writes the first semantic annotation information related to the element 1 into the icon database 700 (here, the information in the semantic annotation set shown in Table 3).

[0400] After the cloud 200 stores the first semantic annotation information of the element 1, the cloud 200 may store the first semantic annotation information of the element 2 as shown in Table 1.

[0401] 2. Cloud 200 stores the first semantic annotation information of element 2 in the database

[0402] After the first semantic annotation information of element 2 is stored in the cloud 200 , the data table in the icon database 700 is updated from Table 3 to Table 4.

[0403]

[0404] Table 4

[0405] The following describes the process of updating the data table from Table 3 to Table 4:

[0406] When the cloud 200 writes the first potential annotation information of element 2 into the icon database 700, as shown in Table 3, the cloud 200 determines that in the semantic annotation set corresponding to the contour set similar to element 2, the first potential annotation information only has the term "address book" and the term "avatar" has not yet been stored. Then the cloud 200 can write the term "avatar" in the first potential annotation information of element 2 as shown in Table 1 into the icon database 700, and set the number of repeated occurrences of the term "avatar" to 1. The specific writing results can be referred to Table 4.

[0407] Similarly, when the cloud 200 writes the third potential annotation information of element 2 (here, "open contact business card" as shown in Table 1) into the icon database 700, as shown in Table 3, the cloud 200 determines that in the semantic annotation set corresponding to the contour set similar to element 2, the third potential annotation information only has the entry "display contact list" and the entry "open contact business card" is not stored. Then the cloud 200 can write the entry "open contact business card" of element 2 as the second potential annotation information into the icon database 700, and set the number of repeated occurrences of the entry "open contact business card" to 1. The specific writing results can be referred to Table 4.

[0408] Before storing the second potential annotation information of element 2, cloud 200 may determine whether the entries in the second potential annotation information of element 2 are repeated, and the specific principle is similar to the above-mentioned determination process for the second potential annotation information of element 1. As shown in Table 1, the second potential annotation information of element 2 includes the entry "contact" and the entry "135xxxx055".

[0409] As shown in Table 3, in the second potential annotation information in the semantic annotation set related to the contour category A in the icon database 700, there are currently no entries that are semantically similar to the above-mentioned entry "contact" and the entry "135xxxx055", that is, there is no intersection of the entries.

[0410] However, as shown in Table 1, the second potential annotation information of element 3 that has not been stored in the database is the term "contact", then the cloud 200 can determine that there is an intersection of terms between the second potential annotation information of element 2 and the second potential annotation information of element 3, which is "contact", which means that the term "contact" has appeared as text around controls in different application interfaces, so the term "contact" has a high accuracy rate when expressing the functions and effects of such controls of profile category A. The cloud 200 can write the second potential annotation information of element 2, specifically the term "contact", into the icon database 700, and set the number of repeated appearances of the term "contact" to 1. The specific writing results can be referred to Table 4. Among them, the "number of repeated appearances of the term" attribute in the icon database 700 is used to indicate the number of times the corresponding term appears repeatedly in the corresponding semantic annotation set that has been stored, or it can be understood as the number of repeated storages.

[0411] Similarly, referring to Table 1 and Table 3, the entry "135xxxx055" in the second potential annotation information of element 2 does not have an intersection with any second potential annotation information related to any similar profile of element 2 (the similar profile before storage is element 3, and the similar profile that has been stored is element 1). Therefore, it can be determined that the entry "135xxxx055" is not a repeated second potential annotation information. Figure 4c , the entry "135xxxx055" is only the phone number of a contact, and cannot express the main function and role of this type of control of profile category A. In this case, the cloud 200 may not write the entry "135xxxx055" as the second potential annotation information in the semantic annotation set related to profile category A into the icon database 700.

[0412] In this way, after the cloud 200 writes part of the second semantic annotation information of the element 2 into the icon database 700, the data table in the icon database 700 is updated from Table 3 to Table 4.

[0413] 3. Cloud 200 stores the first semantic annotation information of element 3

[0414] After the first semantic annotation information of the element 3 is stored in the cloud 200 , the data table in the icon database 700 is updated from Table 4 to Table 2.

[0415] The following describes the process of updating the data table from Table 4 to Table 2:

[0416] When the cloud 200 writes the first potential annotation information of element 3 (here, "address book" as shown in Table 1) into the icon database 700, as shown in Table 4, the cloud 200 determines that in the semantic annotation set corresponding to the contour set similar to element 3, the term "address book" is already stored in the first potential annotation information. Then, in order to save the storage space of the data of the icon database 700, the cloud 200 may no longer write the first potential annotation information "address book" of element 3 into the icon database 700, but only needs to add one to the value of the number of repeated occurrences of the term "address book" as the first potential annotation information in Table 4, so as to update it from "1" to "2". The specific update results can be referred to Table 2.

[0417] Similarly, when the cloud 200 writes the third potential annotation information of element 3 (here, "Display contact list" as shown in Table 1) into the icon database 700, as shown in Table 4, the cloud 200 determines that in the semantic annotation set corresponding to the contour set similar to element 3, the third potential annotation information already has the entry "Display contact list" stored in it. Then, in order to save the storage space of the data of the icon database 700, the cloud 200 may no longer write the third potential annotation information "Display contact list" of element 3 as shown in Table 1 into the icon database 700, but only needs to add one to the value of the number of repeated occurrences of the entry "Display contact list" as the third potential annotation information in Table 4, so as to update it from "1" to "2". The specific update results can be referred to Table 2.

[0418] Before storing the second potential annotation information of element 3, cloud 200 can determine whether the term in the second potential annotation information of element 3 is repeated. The specific principle is similar to the above-mentioned determination process for the second potential annotation information of element 1. As shown in Table 1, the second potential annotation information of element 3 is the term "contact".

[0419] The cloud 200 can determine that the second potential annotation information in the semantic annotation set related to the contour category A in the icon database 700 that is similar to the contour of element 2 as shown in Table 3 does not currently have any terms that are semantically similar to the above two terms, that is, there is no intersection of the terms.

[0420] As shown in Table 4, the second potential annotation information in the semantic annotation set corresponding to the contour set similar to element 3 includes the term "contact person". Then the cloud 200 can determine that there is an intersection of terms between the second potential annotation information of element 3 (such as "contact person" shown in Table 1) and the second potential annotation information corresponding to the similar contour that has been stored, which is "contact person". This means that the term "contact person" has appeared as text around controls in different application interfaces. The term "contact person" has a high accuracy rate when expressing the functions and effects of such controls of contour category A. The cloud 200 can add 1 to the value of the number of repetitions of the term "contact person" as the second potential annotation information in Table 4, so that its value is updated from "1" to "2". The specific update results can be referred to Table 2.

[0421] In this way, after the second semantic annotation information of element 3 is written into the icon database 700 , the data table in the icon database 700 is updated from Table 4 to Table 2 .

[0422] It should be understood that the present application does not restrict the order of storing the first semantic annotation information of each element in the contour set of the same contour category. In other embodiments, the cloud 200 can also perform a comparative analysis of similar terms on the first semantic annotation information of the above-mentioned elements 1, 2, and 3 before storing them. The principle of the analysis is similar to the principle of the processing process for storing a single element in the above-mentioned embodiment, and will not be repeated here. Then, the cloud 200 can store the first semantic annotation information of each of the above three elements at the same time according to the analysis results, so as to directly obtain the data table shown in Table 2 in the icon database 700, without generating the data tables shown in Tables 3 and 4.

[0423] In an embodiment of the present application, when semantic annotation information related to a certain contour is stored in the database, when the semantic annotation information includes the first potential annotation information (the third potential annotation information is the same and will not be repeated here), the cloud 200 may not make a judgment on the repeated appearance of the terms before storage. When the cloud 200 determines that the semantic annotation set corresponding to the similar contour set in the icon database 700 includes terms with the same (or similar) semantics as the terms in the above-mentioned first potential annotation information, the cloud 200 may update the frequency of occurrence of the corresponding terms in the semantic annotation set (for example, the number of repeated appearances of the terms in Table 2). When the cloud 200 determines that the semantic annotation set corresponding to the similar contour set in the icon database 700 does not have terms with the same (or similar) semantics as the terms in the above-mentioned first potential annotation information, the cloud 200 may write the terms in the first potential annotation information into the semantic annotation set corresponding to the similar contour set in the icon database 700.

[0424] In an embodiment of the present application, when semantic annotation information related to a certain contour is stored in the database, when the semantic annotation information includes second potential annotation information, the cloud 200 can determine whether the entry before storage is repeated. When determining that there is an intersection of entries in the second potential annotation information and the entries in the second potential annotation information corresponding to a similar contour, the cloud 200 can determine that the entry with the intersection in the second potential annotation information of the contour has also appeared as the surrounding text of the control around the control of the similar contour, and the cloud 200 can determine that the entry with the intersection will be stored in the database. Whether the cloud 200 specifically writes the entry into the icon database 700 or updates the frequency of similar entries in the icon database 700 is the same as the principle of the above-mentioned writing process for the entry of the first potential annotation information, and will not be repeated here.

[0425] In some embodiments, the data table used to store contour information and semantic annotation information in the icon database 700 may not have the attribute of "the number of times a term appears repeatedly" shown in Tables 2 to 4 above. In this case, when the cloud 200 (or the electronic device side) enters a certain term in the semantic annotation information into the database, even if the term has been stored in the semantic annotation set corresponding to the corresponding contour set, the cloud 200 can still continue to write the semantically repeated term into the corresponding semantic annotation set. The other implementation processes are similar to the principles of the above-mentioned processing processes for Tables 1 to 4, and will not be repeated here.

[0426] In a possible implementation, Figure 4a As shown, the cloud 200 may not execute S301, but after obtaining the clustered multi-class first profile information through S204, execute the following S304.

[0427] In step S304, the cloud 200 may determine the position of the first control related to the first contour information in the corresponding display interface based on the position of each first contour information in the corresponding first screenshot image among the multiple types of first contour information. Then, the cloud 200 may obtain the first semantic annotation information of the first control related to each first contour information through step S302.

[0428] That is to say, the embodiment of the present application can also obtain semantic annotation information of related controls for each clustered contour information after recognizing contour information on the display interface and clustering the recognized contour information. The present application does not limit the execution order between the process of cloud 200 obtaining semantic annotation information of controls related to contours in the display interface and the process of cloud 200 obtaining contour information of controls in the display interface, which can be serial or parallel, and is not limited to Figure 4a The execution order shown.

[0429] Through Example 1, the cloud 200 can take screenshots of each display interface of the application of the vehicle system adapted to the smart car 500, and extract contour information from the screenshot image through a computer vision algorithm. Compared with the recognition of the control on the original display interface, the control recognition in the corresponding application interface can be realized in the background without affecting the business of the application. And compared with the use of complete pixels of icons to describe controls in the related art, the present application describes controls by contours, which can greatly reduce the amount of data of the description information of the control. And the cloud 200 uses SVG format to describe and store the contours of the control, which can not only reduce the data storage volume of the icon database 700. In addition, when the cloud 200 compares the similarity of controls, it can compare the similarity of the contours of the SVG format of the control. Compared with the use of all pixels in the complete image of the control to compare the similarity between controls in the related art, the method of the present application can effectively improve the recognition efficiency of the control. In addition, the cloud 200 can automatically mark the meaning of the control by obtaining at least one of the three types of potential annotation information of the control with contours, reducing the annotation cost of manually marking the meaning of the control.

[0430] like Figure 3 As shown, the cloud 200 can write the outline of the control in the icon database 700 (for example Figure 4a The first outline information shown) and the semantic annotation information of the control (for example Figure 4a Part or all of the first semantic annotation information) is sent to the smart car 500, so that the smart car 500 also stores the data in the icon database 700 generated by the cloud 200.

[0431] In a possible implementation, when the data updated in the icon database 700 by the cloud 200 meets a specific condition, the cloud 200 can synchronously send the updated data in the icon database 700 to the mobile phone 300, the smart TV 400, and the smart car 500. The above-mentioned specific conditions may be, for example, that the amount of data of the newly added contour information is greater than a first preset threshold, and / or that the amount of data of the newly added semantic annotation information is greater than a second preset threshold. The specific conditions are not limited here and can be flexibly configured according to needs. In this way, the data of the icon database 700 stored on the smart car 500 side can also be synchronously updated with the update of the icon database 700 on the cloud 200 side.

[0432] Since the outline information in the data in the icon database 700 synchronized to the smart car 500 is in SVG format, the data in the icon database 700 stored in the smart car 500 occupies less memory.

[0433] In the embodiment of the present application, the cloud 200 generates the data of the icon database 700 and synchronizes it to the smart car 500. Compared with the smart car 500 generating the semantic annotation data in the icon database 700, the cloud 200 is more efficient in collecting the semantic annotation data, and the application interface for collecting the semantic annotation data is controlled by the cloud 200. In this way, the extra signaling overhead of the smart car 500 caused by the smart car 500 autonomously generating the data of the icon database 700 can be reduced, and the collection efficiency of the data of the icon database 700 and the controllability of the collected data can be improved.

[0434] In a possible implementation, the smart car 500 may also take screenshots of the display interface of the installed application in the smart car 500, for example, by traversing the interface of the installed application through the control tree and taking screenshots. Alternatively, screenshots may be taken based on the actual display content of the display screen of the smart car 500 to take screenshots of the display interface of the application used by the user. Then, the smart car 500 may identify the contour information of the control in the screenshot image and automatically semantically annotate the control to store the contour information and related semantic annotation information in an associated manner. Among them, the process of the smart car 500 performing contour recognition of the control and automatic semantic annotation of the control is the same as the principle of the process of the method performed by the cloud 200 described in Example 1, and specific reference may be made to Example 1. Figure 4a The process will not be described here.

[0435] In this way, the smart car 500 can also automatically recognize controls (describing controls with outline information) and automatically label the semantics of controls to generate data for the icon database 700, and autonomously update the data for the icon database 700, thereby not completely relying on synchronizing the data for the icon database 700 from the cloud 200 to the smart car 500.

[0436] In one possible implementation, after receiving data from the icon database 700 generated by the cloud 200, the smart car 500 can operate on a screenshot of the display interface of the installed application when updating the icon database 700 to recognize the contour information of the control and label the semantic information, so as to update the data of the icon database 700 maintained by the smart car 700, thereby allowing each smart car 500 to perform personalized updates on the data of the icon database 700 stored locally in combination with the applications actually installed thereon.

[0437] Example 2

[0438] by Figure 3 The smart car 500 in the example is used to illustrate the process of the electronic device 100 (here the smart car 500) of the present application executing the method of the present application. Figure 3When the mobile phone 300, smart TV 400 or other electronic devices with a display screen are used, the implementation process of the method of the present application is the same as the implementation principle of the method introduced in this example, and will not be repeated here.

[0439] Figure 5a The figure is a schematic diagram showing, for example, a process of visually and verbally controlling controls in a display interface by a smart car 500 in a visually and verbally speaking scenario.

[0440] In a possible implementation, the smart car 500 may have a function for starting execution Figure 5a The switch option of the process is a switch of the icon semantic recognition function. When the switch option is turned on, the smart car 500 can execute Figure 5a , Figure 5b The process is to identify the controls and semantics in the display interface of the vehicle display screen and make the controls "visible and audible". On the contrary, when the switch option is turned off, the smart car 500 may not execute Figure 5a , Figure 5b process to reduce the signaling overhead on the smart car 500 side.

[0441] For example, the user can turn on the switch option by operating on the vehicle display screen of the smart car 500, or the user can turn on the switch option by operating the physical buttons of the smart car 500, which is not limited here.

[0442] Combine the following Figure 5b , Figure 5c , Figures 6a to 6c and Figure 7 To describe Figure 5a process, in which Figures 6a to 6c and Figure 7 A schematic diagram of an application scenario of the smart car 500.

[0443] like Figure 5a As shown, the process may include the following steps:

[0444] S401, the smart car 500 identifies controls and the semantics of controls on the display interface of the target application to identify a second control in the display interface and second semantic annotation information of the second control.

[0445] The second control identified in S401 can be described by the contour information of the control (e.g., the second contour information). Which control in the display interface the control having the contour information is can be determined by the display position of the contour in the display interface determined by the smart car 500 when identifying the contour information of the control.

[0446] The second semantic annotation information may be information that is identified by the smart car 500 using the above-mentioned icon database 700 for the second control and can indicate the function of the second control and / or the behavior information after the second control is triggered.

[0447] In addition, the second control may be all controls in the display interface of the target application, or may be part of the controls, which is not limited here.

[0448] When one or more application interfaces (e.g., split-screen scenes) are displayed in the screen display content of the smart car 500, each application interface can be the display interface in S401, and the smart car 500 of the present application can realize the control recognition and semantic recognition of the control in each display interface in the screen display. Similarly, the number of target applications can be one or more applications, which is not limited here.

[0449] Optionally, after S401, in S403, the smart car 500 may output second semantic annotation information of the second control.

[0450] In a visible and audible scenario, the user may not be able to determine what command to say to the control that the user wants to operate in the display interface in order to realize the control. In this embodiment, the smart car 500 can output the semantic annotation information of the control identified in the display interface of the target application, so that the output second semantic annotation information of each second control can serve as a prompt to remind the user which keywords to say for the control that the user wants to operate in order to realize accurate control of the corresponding control, so as to realize the operation of the control more accurately in a visible and audible scenario.

[0451] For the specific implementation process of S401 and S403, Figure 5b , Figure 5c to describe, but Figure 5b , Figure 5c The process is not intended to limit the method performed by the smart car 500.

[0452] Figure 5c The smart car 500 is shown as an example based on Figure 2 Architectural diagram of the architecture shown.

[0453] Figure 5c The architecture shown may include an application layer, an application framework layer, and a memory. The architecture of the smart car 500 may include Figure 5c More or fewer levels, and Figure 5c The hierarchical relationship shown is not intended to limit the architecture of the smart car 500 .

[0454] like Figure 5b As shown, the process may include the following steps:

[0455] S101, the smart car 500 takes a screenshot of the display interface of the target application to obtain a second screenshot image.

[0456] The target application may be any application installed in the smart car 500, and there is no restriction here.

[0457] As described above, the screen of the smart car 500 may display one or more application interfaces, each of which may be a display interface in S101, and the smart car 500 may obtain a respective second screenshot image for each display interface.

[0458] For example, Figure 5c As shown, the icon semantic recognition module of the smart car 500 can obtain the second screenshot image from the window manager. However, the present application does not limit the specific implementation method of taking screenshots of the content displayed on the display screen of the smart car 500 to obtain the screenshot images of each application interface displayed on the display screen.

[0459] In addition, the display screen of the smart car 500 may display the application interface of a single application, or may simultaneously display the application interfaces of different applications in multiple windows in a multi-window manner. However, the smart car 500 of the present application may obtain a screenshot image of the application interface in each window displayed on the display screen.

[0460] In an application scenario, such as Figure 6a As shown, the display interface 602 of the display screen 601 of the smart car 500 is an application interface of a music application.

[0461] Among them, the display screen 601 can be the vehicle-mounted display screen of the smart car 500 (such as the central control display screen or the vehicle-mounted display screen at other seat positions), or it can be the display screen of the after-installed electronic device connected to the smart car 500, and there is no restriction here. The so-called after-installed electronic device is used to indicate the electronic device that the user can install on the smart car 500 according to the needs after the smart car 500 leaves the factory. The after-installed electronic device can communicate with the vehicle-mounted system of the smart car 500 to be used as the display screen of the vehicle-mounted system, so that the user can control the application of the smart car 500 by operating the after-installed electronic device. For example, the after-installed electronic device can be a tablet computer, or it can be other electronic devices with a display screen, and there is no restriction here.

[0462] like Figure 6a As shown, the display interface 602 of the display screen 601 is a music playing interface, and the display interface 602 may include multiple controls, which may include but are not limited to: controls 301 to 314.

[0463] Among them, the control 301 is used to display the poster image of the song currently being played.

[0464] Control 302 is used to display the title of the song currently being played.

[0465] Control 303 is used to download the currently playing song.

[0466] Control 304 is used to comment on the currently playing song.

[0467] Control 305 is used to open the video related to the song currently being played (eg, music video (MV)).

[0468] The control 306 is used to set the currently playing song as the ringtone of the smart car 500 .

[0469] Control 307 is used to collect the currently playing song.

[0470] Control 308 is used to adjust the song playing mode, wherein the icon currently displayed on control 308 is used to indicate that the current playing mode is the list loop mode, and the playing mode may also include a single loop mode, a sequential playing mode, and a random playing mode.

[0471] Control 311 is used to indicate the total duration of the currently playing song, which is 3 minutes here.

[0472] Control 309 is used to indicate the playing progress of the currently playing song, which here indicates that the song has been played for the first 20 seconds out of a total duration of 3 minutes.

[0473] Control 310 is used to move on the play progress bar to adjust the play progress of the current song.

[0474] Control 312 is used to switch the currently playing song to the previous song.

[0475] Control 314 is used to switch the currently playing song to the next song.

[0476] Control 313 is used to play or pause the currently playing song. The icon displayed by control 313 is used to indicate that the current song is in the playing state.

[0477] exist Figure 6a In the scenario, the smart car 500 can take a screenshot of the display content of the display screen 601 to obtain a screenshot image of the display interface 602 (such as the second screenshot image in S101).

[0478] S102, the smart car 500 may process the second screenshot image to obtain second contour information in the display interface of the target application.

[0479] The execution principle of S102 is similar to that in Example 1. Figure 4a The execution principle of S202 shown is the same. For example, the smart car 500 can detect the contour information in the second screenshot image through an edge detection algorithm. The smart car 500 can also combine the contours in the same contour range in the identified contour information to identify the contours belonging to the same control. In addition, the smart car 500 can also group the contours according to the size of the contours to improve the efficiency of contour filtering. In addition, the smart car 500 can also filter the identified contours according to the distribution information of the identified contours in the screenshot image, the contour overlap between multiple contours, etc., to filter out the contours that do not belong to the control to improve the recognition accuracy of the control. The specific implementation process can be referred to. Figure 4a The relevant embodiment description of S202 is omitted here.

[0480] For example, Figure 5c As shown, the icon semantic recognition module of the smart car 500 can process the second screenshot image to obtain the above-mentioned second contour information.

[0481] exist Figure 6a In the scenario, Figure 7 The example shows that the smart car 500 Figure 6a Part of the second contour information obtained from the screenshot image of the display interface 602 shown.

[0482] like Figure 7 As shown in (1), the smart car 500 obtains the contour information of the control 303, the contour information of the control 304, the contour information of the control 305, the contour information of the control 306, the contour information of the control 307, and the contour information of the control 308 by performing edge detection on the screenshot image of the display interface 602, combining contours in the same contour range, and performing contour filtering. Of course, the contour information recognized by the smart car 500 may also include Figure 6a The outline information of the controls 310, 312, 313, 314, etc. shown in FIG. 3 is not shown in FIG. Figure 7 (1) shows the outline information of each of the above controls.

[0483] Among them, the smart car 500 recognizes Figure 7 The contour information of the controls 303 to 308 shown in (1) can be processed by contour combination. Taking the control 305 as an example, the contour of the control 305 is composed of two contours, an outer rectangular frame and an inner triangle, and the contour of the inner triangle is within the range of the contour of the outer rectangular frame. Therefore, the smart car 500 combines the contour of the rectangular frame and the contour of the triangle into one contour as the contour of a control, thereby achieving accurate recognition of the contour information of the control 305. Figure 6aThe principles of the recognition process of the contour information of other controls shown in are similar and will not be repeated here.

[0484] like Figure 5b As shown, after S102, optionally, the smart car 500 may execute S103.

[0485] S103, the smart car 500 may convert the second contour information into second contour information in SVG format.

[0486] In this way, when the smart car 500 uses the identified second contour information to match the data in the icon database 700 for contour similarity, the contour similarity calculation is performed using the contour represented in SVG format, which is more efficient, thereby improving the retrieval efficiency of similar contours in the icon database 700 and shortening the recognition time of controls in the display interface.

[0487] The execution principle of S103 is similar to that in Example 1. Figure 4a The execution principle of S203 shown is the same and will not be repeated here.

[0488] After S102 or S103 , the smart car 500 may execute S104 .

[0489] S104, the smart car 500 queries the data of the icon database 700 to obtain second semantic annotation information related to the second contour information.

[0490] For example, Figure 5c As shown, the icon semantic recognition module can use the obtained second contour information in SVG format to calculate the similarity with the first contour information in SVG format in the data of the icon database 700 stored in the memory of the smart car 500, and use the first contour information with a similarity greater than a preset similarity threshold (for example, 90%, not limited to the specific one) as a contour similar to the corresponding second contour information, so as to determine the controls with similar contours as the same control. In this way, the icon semantic recognition module can find a contour in the icon database 700 that is similar to the contour of the control in the display interface of the target application, and use part or all of the semantic annotation information in the semantic annotation information associated with the similar contour in the icon database 700 as the second semantic annotation information related to the second contour information. In this way, semantic recognition of the controls in the display interface can be achieved.

[0491] Combine the following Figure 6a , Figure 7 The process of the smart car 500 acquiring the second semantic annotation information related to the second contour information can be understood from the following scenario:

[0492] The smart car 500 can query the data in the icon database 700 stored in the memory for the Figure 7(1) Contour information similar to each contour shown (can be a single contour or a set of contours).

[0493] Figure 7 (2) shows an example of the smart car 500 searching the icon database 700 for the Figure 7 (1) The contours shown are similar to the contours.

[0494] like Figure 7 (1) and Figure 7 As shown by the dotted arrow between (2), the outline similar to the outline of control 303 in icon database 700 is outline 403, the outline similar to the outline of control 304 is outline set 404, the outline similar to the outline of control 305 is outline 405, the outline similar to the outline of control 306 is outline 406, the outline similar to the outline of control 307 is outline 407, and the outline similar to the outline of control 308 is outline 408.

[0495] Among them, Figure 7 As shown in (2), the contour set 404 may include two elements, contour 4041 and contour 4042.

[0496] Table 5 shows an example of the icons stored in the icon database 700. Figure 7 (2) the outline set 404 and the related first semantic annotation information (specifically the semantic annotation set in Table 5), and Figure 7 (2) is a schematic diagram of a storage data table of the outline 407 and the related first semantic annotation information.

[0497]

[0498] Table 5

[0499] Among them, element 4 in Table 5 represents Figure 7 (2) The SVG format data of the outline 4041 shown, element 5 indicates Figure 7 In the SVG format data of the contour 4042 shown in (2), elements 4 and 5 are a type of contour obtained by clustering in the cloud 200. In Table 5, the contour type D represents the contours of element 4 and element 5.

[0500] Element 6 in Table 5 indicates Figure 7 The SVG format data of the outline 407 shown in (2) is represented by the outline type E in Table 5, which indicates the outline of element 6.

[0501] It should be understood that the data of the icon database 700 stored in the smart car 500 is not limited to the records shown in Table 5, but may include more records. Here, these two types of profiles are used as examples to illustrate the smart car 500's Figure 7(1) is a process of searching the outline of the control 304 and the outline of the control 307 for their related second semantic annotation information respectively.

[0502] like Figure 7 (1) Figure 7 (2) and Figure 7 (3) is indicated by the double-dashed arrow between Figure 7 (3) shows an example of Figure 7 (1) The relevant second semantic annotation information found (e.g., hit) by the outline of each control shown in Figure 7 (1) The semantic information found by the outline of each control shown.

[0503] Combine the following Figure 7 As shown in Table 5, the process of the smart car 500 obtaining the relevant second semantic annotation information of each control with an identified outline by searching the outline of the control 304 (here, "Message") and the process of the smart car 500 obtaining the relevant second semantic annotation information of each control with an identified outline by searching the outline of the control 307 (here, "Favorites") are described.

[0504] As shown in Table 5, 500 pairs of smart cars Figure 7 The outline of the control 304 shown in (1) finds a similar outline set, which is a outline set of outline category D. The semantic annotation set corresponding to the outline set may include three categories of potential annotation information. The smart car 500 may select one or more entries of potential annotation information from the three categories of potential annotation information as the second semantic annotation information related to the outline of the control 304.

[0505] In a possible implementation, as shown in Table 5, when the semantic annotation set corresponding to the contour category D stores the first potential annotation information and / or the third potential annotation information (i.e., the entry is not empty), the smart car 500 can select the entry with the highest frequency (here, the entry "message" with a frequency of 3) from the entry of the first potential annotation information and the entry of the third potential annotation information as the second semantic annotation information of the control 304 (for details, refer to Figure 7 (3)).

[0506] In another possible implementation, as shown in Table 5, when the semantic annotation set corresponding to the profile category D stores the entry of the first potential annotation information and the entry of the third potential annotation information (i.e., the entry is not empty), the smart car 500 can select the entry 1 with the highest frequency from the entry of the first potential annotation information (here, "Leave a message" with a frequency of 3 as shown in Table 5), and select the entry 2 with the highest frequency from the entry of the third potential annotation information (here, the entry "Open comment interface" with a frequency of 2 as shown in Table 5). For example, the smart car 500 can use both entry 1 and entry 2 as the second semantic annotation information of the control 304, or the smart car 500 can select one entry from entry 1 and entry 2 as the second semantic annotation information of the control 304 (the specific selection strategy is not limited).

[0507] As shown in Table 5, 500 pairs of smart cars Figure 7 The outline of the control 307 shown in (1) finds a similar outline set, which is a outline set of outline category E. The outline set includes element 6, which is Figure 7 (2) SVG format data of the outline 407 shown. In Table 5, the semantic annotation set corresponding to the outline category E may include three types of potential annotation information, and the smart car 500 may select one or more entries of potential annotation information from the three types of potential annotation information as the second semantic annotation information related to the outline of the control 307.

[0508] In a possible implementation, as shown in Table 5, in the semantic annotation set corresponding to the contour category E, the frequencies of the first potential annotation information and the third potential annotation information are both 0, or the first potential annotation information and the third potential annotation information do not have frequency information, which means that the first potential annotation information and the third potential annotation information do not exist in the semantic annotation set of the contour category E in the data of the icon database 700 stored on the smart car 500 side. Then, the smart car 500 can select the entry with the highest frequency (here, the entry "collection" with a frequency of 2) from the second potential annotation information in the semantic annotation set corresponding to the contour category E as the second semantic annotation information of the control 307 (for details, please refer to Figure 7 (3)).

[0509] For Smart Car 500 pairs Figure 7 The principle of the process of obtaining the relevant second semantic annotation information from the contour information of the control 303, control 305, control 306, and control 308 shown in (1) in the icon database 700 is the same as the principle of the process of obtaining the relevant second semantic annotation information from the contour information of the control 304 or control 307 by the smart car 500 introduced in the above embodiment, and will not be repeated here.

[0510] In this way, the smart car 500 can obtain Figure 7 (3) shows the second semantic annotation information respectively related to controls 303 to 308.

[0511] In this embodiment, when the first potential annotation information and / or the third potential annotation information exists in the semantic annotation set corresponding to the contour set of similar contours, because these two types of potential annotation information are accurate semantic information of such controls with similar contours, the smart car 500 may preferably use the terms in these two types of potential annotation information (for example, the terms with the highest frequency of repetition, without specific limitation) as the semantic information of the control recognized on the display interface of the display screen of the smart car 500 (for example, the second semantic annotation information). When the first potential annotation information and the third potential annotation information exist in the semantic annotation set corresponding to the contour set of similar contours, since the accuracy of the second potential annotation information is lower than that of the first two types of potential annotation information, in order to ensure the accurate recognition of the semantics of the control by the smart car 500, the smart car 500 may select the term with the highest frequency in the second potential annotation information in the semantic annotation set as the semantic information of the corresponding control (for example, the second semantic annotation information), because the term with a high frequency indicates that the term is often displayed as text around the control in the display interface including this type of control, thereby indicating that the term with a high frequency can better express the accurate semantics of this type of control, so as to improve the accuracy of the smart car 500's semantic recognition of the control in the screen display content of the vehicle display.

[0512] In some embodiments, as described in the related embodiments of Example 1, the data table in the icon database 700 for storing contour information and semantic annotation information may not set the attribute of "the number of times the term appears repeatedly" for the terms in the semantic annotation set. Then, when the cloud 200 (or the electronic device side, such as the smart car 500 here) enters a certain term in the identified semantic annotation information into the database, even if the term has been stored in the semantic annotation set corresponding to the corresponding contour set, the cloud 200 can still continue to write the semantically repeated term into the corresponding semantic annotation set.

[0513] Then, when the semantic annotation set stored in the icon database 700 does not have the attribute of the number of times the term appears repeatedly (also called frequency), the smart car 500 also prefers the first potential annotation information and / or the third potential annotation information in the semantic annotation set corresponding to the outline set similar to the outline of the icon-type control in the display interface as the semantic information of the corresponding icon-type control in the display interface of the smart car 500. When the first potential annotation information and the third potential annotation information do not exist in the corresponding semantic annotation set, the smart car 500 selects the second potential annotation information in the corresponding semantic annotation set as the semantic information of the corresponding icon-type control.

[0514] When the smart car 500 selects a term from any one of the first potential annotation information, the second potential annotation information, and the third potential annotation information as the semantic information of the corresponding icon-type control, it can adopt a strategy of randomly selecting a term to select a term in the corresponding type of potential annotation information as the semantic information of the corresponding icon-type control. Alternatively, the smart car 500 can also select the semantics of the term with a higher or highest semantic repetition rate in the corresponding type of potential annotation information as the semantic information of the corresponding icon-type control. Among them, the semantic repetition rate can be used to represent the ratio of the number of semantically repeated terms in the potential annotation information of the corresponding type in the semantic annotation set to the total number of terms in the potential annotation information of the corresponding type.

[0515] It should be understood that the present application does not impose any limitation on the specific strategy for selecting terms from a certain type of potential annotation information as the semantic information of the corresponding control.

[0516] However, the present application preferably selects at least one term from the first potential annotation information and the third potential annotation information as the semantic information of the corresponding control. When the first potential annotation information and the third potential annotation information do not exist, at least one term is selected from the second potential annotation information as the semantic information of the corresponding control.

[0517] like Figure 5b As shown, after S102, the smart car 500 can not only execute S103 but also execute S105.

[0518] S105, the smart car 500 may determine the position of the second control related to the second contour information in the corresponding display interface based on the position of the second contour information in the corresponding second screenshot image.

[0519] The execution principle of S105 is similar to that in Example 1. Figure 4a The execution principle of S301 shown is the same and will not be repeated here.

[0520] When the smart car 500 executes S102 to identify contour information from the second screenshot image of the display interface, it can also determine the position of the contour in the second screenshot image. The smart car 500 can then use the position to determine the display position (e.g., pixel position) of the control with the corresponding contour in the corresponding display interface.

[0521] like Figure 5b As shown, after S104 and S105, the smart car 500 may optionally execute S106.

[0522] S106, the smart car 500 may output second semantic annotation information of the second control based on the second semantic annotation information related to the second contour and the position of the second control related to the second contour information in the display interface.

[0523] Continue to combine Figure 6a , Figure 7 as well as Figure 6b Take the following scenario as an example:

[0524] Smart Car 500 performs Figure 5b The S104 and S105 shown in the figure can be Figure 6a The second screenshot of the display interface 602 shown in FIG. Figure 7 (1) each contour information shown, and also obtain the second semantic annotation information (such as control semantic information) related to each contour information as shown in 7 (3), and can obtain Figure 7 The second control related to each profile information shown in (1) is Figure 6a The display position in the display interface 602 shown. Figure 5c The icon semantic recognition module of the smart car 500 may notify the second semantic annotation information related to the second contour information and the display position of the second control related to the second contour in the display interface of the target application to the target application. Figure 6a The music application shown in FIG. 6 makes the display interface 602 of the music application available from Figure 6a The display interface shown switches to Figure 6b (1) The display interface 602 shown.

[0525] Optionally, in Figure 6b In the display interface 602 shown in (1), each of the controls 303 to 308 is displayed with a corner mark, and the corner mark may include the second semantic annotation information related to each control output by the smart car 500. In this way, the user can obtain the voice command that can control the corresponding control through the second semantic annotation information prompted by the corner mark.

[0526] Specifically, Figure 6b (2) For Figure 6b (1) is an enlarged schematic diagram of controls 303 to 308 with subscripts, see Figure 7 and Figure 6b (2) The smart car 500 displays a superscript 3031 at the upper right corner of the control 303 in the display interface 602 , and the display text of the superscript 3031 is the second semantic annotation information “download” recognized by the smart car 500 for the control 303 .

[0527] Reference Figure 7 and Figure 6b(2) The smart car 500 displays a corner mark 3041 at the lower left corner of the control 304 in the display interface 602 , and the display text of the corner mark 3041 is the second semantic annotation information “Message” recognized by the smart car 500 for the control 304 .

[0528] Reference Figure 7 and Figure 6b (2) The smart car 500 displays a superscript 3051 in the upper right corner of the control 305 in the display interface 602 , and the display text of the superscript 3051 is the second semantic annotation information “video” recognized by the smart car 500 for the control 305 .

[0529] Reference Figure 7 and Figure 6b (2) The smart car 500 displays a badge 3061 at the lower left corner of the control 306 in the display interface 602 , and the display text of the badge 3061 is the second semantic annotation information “ring” recognized by the smart car 500 for the control 306 .

[0530] Reference Figure 7 and Figure 6b (2) The smart car 500 displays a superscript 3071 in the upper left corner of the control 307 in the display interface 602 , and the display text of the superscript 3071 is the second semantic annotation information “Favorite” recognized by the smart car 500 for the control 307 .

[0531] Reference Figure 7 and Figure 6b (2) The smart car 500 displays a superscript 3081 in the upper left corner of the control 308 in the display interface 602 , and the display text of the superscript 3081 is the second semantic annotation information “Switch playback mode” recognized by the smart car 500 for the control 308 .

[0532] It should be understood that the present application does not limit the display position of the corner mark around the control.

[0533] The above process realizes the recognition and semantic annotation of the second control in the display interface of the target application by the smart car 500, and the semantic annotation information can be output on the display interface to realize Figure 5a The processes of S401 and S403 are shown.

[0534] Combined with Figure 5cThe icon semantic recognition module of the smart car 500 can notify the target application of the second semantic annotation information related to the second contour information queried from the icon database 700, as well as the display position of the second control related to the second contour in the display interface of the target application, so that the target application can determine the second semantic annotation information of the second control at the corresponding display position in its display interface. For example, the target application can output the second semantic annotation information of the corresponding second control as the superscript of the second control at the corresponding display position.

[0535] It should be understood that the output method of the second semantic annotation information of each second control is not limited to output in the form of a control superscript, but can also be output through voice to notify the user of the second semantic annotation information of each second control (such as the semantics of the control). The present application does not limit the output method of the second semantic annotation information.

[0536] The icon semantic recognition module of the present application can detect the outline of the control in the screenshot image of the display interface to determine the outline information of the control in the screenshot image and the position of the control with the corresponding outline in the display interface. In addition, the icon semantic recognition module of the present application can use the data of the icon database and the above-mentioned outline information to determine the semantics of each control in the screenshot image. In this way, the icon semantic recognition module can notify the target application of the semantic information of the controls related to each outline in the display interface and the display position of the controls related to each outline in the display interface, so that the target application can display the semantic information of the control in the corresponding display position in the form of a superscript. It is convenient to remind the user what kind of voice command to output to achieve visible and verbal control of the corresponding control.

[0537] Continue to refer to Figure 5a , after S401 , (or after S403 ), the smart car 500 may execute S402 .

[0538] S402, the smart car 500 can perform semantic recognition on the received user voice input, and semantically match the recognized semantics with the second semantic annotation information of the second control to determine the target control that the user wants to operate and the target operation on the target control.

[0539] For example, combined with Figure 5c and Figure 6b To describe, after the smart car 500 displays the corner mark information for the corresponding control on the display interface 602 of the display screen 601, Figure 6b As shown in (1), the user sends a voice command to the smart car 500, and the specific text content of the voice command is "Xiaoyi, switch to single song loop."

[0540] For example, the Smart Car 500 Figure 1The microphone 170C shown can receive the sound signal corresponding to the above text content of the user and send the sound signal to Figure 1 The audio module 170 shown in the figure can perform analog-to-digital conversion on the sound signal to obtain an audio signal. Then, the audio module 170 can send the audio signal to the target application (here, the music application), and the music application can send the audio signal to the automatic speech recognition (ASR) module (for example, located at Figure 2 The application framework layer shown in FIG. 1 performs speech-to-text processing to obtain the semantics of the audio signal. Finally, the ASR sends the semantics of the audio signal to the icon semantic recognition module.

[0541] The icon semantic recognition module can recognize the semantics of the audio signal. For example, if the semantics include semantic 1 "switch the playback mode of the song" and semantic 2 "switch the playback mode to the single loop mode", then the icon semantic recognition module needs to Figure 6b In the display interface 602 shown in (1), a target control is found in which the second semantic annotation information matches the semantics of the audio signal (eg, semantics 1).

[0542] On the one hand, the icon semantic recognition module combines the semantics of “switching the playing mode of the song” with Figure 7 The second semantic annotation information of each control shown (here, controls 303 to 308; the actual scene may also include other controls, which are not shown here) is calculated for semantic similarity, and it can be determined that the semantics of the audio signal "switch the playback mode of the song" has the highest similarity with the second semantic annotation information of control 308 (here, "switch playback mode"), and the two match, thereby determining that the target control that the user wants to operate is the control with the second semantic annotation information, and the icon semantic recognition module has been Figure 5b S104 shown in FIG. 1 determines that the second outline information of the target control having the second semantic annotation information is Figure 7 (1) The outline information of the control 308 shown in FIG. 1 and the icon semantic recognition module has been Figure 5b In S105, the display position of the second control having each second outline information in the display interface 602 is identified, so that the icon semantic recognition module can determine the target control (herein, Figure 6b (1) The display position of the control 308) in the display interface 602.

[0543] like Figure 5c As shown, the icon semantic recognition module can notify the target application of the display position of the target control that the user needs to operate in the display interface of the target application, for example Figure 6bThe display interface 602 shown in (1) belongs to the music application.

[0544] On the other hand, the icon semantic recognition module can also be based on the user's voice command (for example Figure 5c The above semantic 2 "switch the play mode to single song loop mode" of the audio signal shown in the figure is used to determine what event (here is a single click event) needs to be triggered for the target control.

[0545] like Figure 5c As shown, the icon semantic recognition module can also notify the target application of the target event (here, a "single-click event", in other application scenarios, it can also be a double-click event, which is not limited here).

[0546] In this way, the icon semantic recognition module can determine the outline of the target control that the user wants to operate in the second control by semantically matching the voice command input by the user with the second semantic annotation information of each second control that has been identified on the display interface, and combined with the display position of each control with each outline that has been identified on the display interface, it can determine the display position of the target control that the user needs to operate in the display interface. In addition, the icon semantic recognition module can also analyze the voice command to determine the operation that needs to be performed on the target control, and to determine what target event needs to be triggered to achieve the target operation. The icon semantic recognition module can then notify the target application of the display position of the target control indicated by the user's voice command and the target event that needs to be executed on the target control.

[0547] Continue to refer to Figure 5a , after S402, the smart car 500 may execute S404.

[0548] S404, the smart car 500 may perform a target operation on a target control in the display interface.

[0549] Continue to combine Figure 5c To describe, the target application can receive the display position of the target control notified by the icon semantic recognition module and the target event that needs to be executed when the target operation is performed on the target control. Then, the target application can call the system-level touch interface and pass in parameters in the interface. The parameters include the target event, and the target event carries the information of the display position of the target control that needs to be operated. In this way, the target application can trigger the target event of the target control at the display position in the display interface by calling the system-level trigger interface to achieve the target operation on the target control.

[0550] The following is combined with Figure 6b , Figure 6c scenario to understand the above process.

[0551] If the target control is control 308, the music application can call the system-level touch interface and pass a single-click event in the interface, and the parameters of the single-click event include the display position of control 308 in display interface 602, so as to realize the control. Figure 6b (1) The single click operation of the control 308 can be understood as simulating the operation of the user manually clicking the control 308. In this way, the smart car 500 can respond to the call of the above interface and change the display interface 602 of the display screen 601 from Figure 6b (1) The display interface shown is refreshed to Figure 6c (1) The display interface 602 shown.

[0552] contrast Figure 6b and Figure 6c (1) The control for adjusting the song playing mode in the display interface 602 is changed from Figure 6b The control 308 shown is updated to Figure 6c (1) the control 315 shown, Figure 6c The dotted ellipse box pointed by the arrow in (1) is an enlarged schematic diagram of the control 315 and its superscript 3151.

[0553] It should be understood that control 308 and control 315 are the same type of control, both of which are used to adjust the song playback mode, but the icons of the two controls are different to indicate the difference in the current playback mode.

[0554] Among them, the icon of control 315 is used to indicate that the current playback mode is the single song loop mode.

[0555] In addition, if Figure 6c As shown in (1), the display interface 602 also has a new control 316 indicating the current play mode, where the text displayed is "single loop", indicating that the current play mode of the song is the single loop mode.

[0556] Optionally, the smart car 500 displays Figure 6c After the display interface 602 shown in (1) is displayed, the smart car 500 can immediately (for example, after an interval of 1 second, the specific details are not limited) change the display interface of the display screen 601 from Figure 6c (1) The display interface shown is updated to Figure 6c (2) The display interface 602 shown. Figure 6c (1) and Figure 6c (2) Since the control 316 is only used as a prompt when the playback mode is switched, the control 316 can be cancelled after the prompt for 1 second.

[0557] In another possible implementation, Figure 6bThe control 308 shown in the figure, the icon shown in the control 308 is used to indicate that the current play mode is the list loop mode, for example, the play modes configured by the music application are the list loop mode, the single loop mode, the sequential play mode, and the random play mode. When the user clicks the control 308 once, the play mode of the music application can be switched from the current list loop mode to the single loop mode.

[0558] In one application scenario, the display screen 601 of the smart car 500 displays Figure 6b In the display interface 602 shown, as described above for the control 308, the current play mode of the music application is the list loop mode. For example, the semantics of the voice command input by the user is "switch the song play mode to the sequential play mode". When the music application switches the current play mode from the list loop mode to the sequential play mode, it is necessary to first switch the current play mode from the list loop mode to the single loop mode, and then switch the current play mode from the single loop mode to the sequential play mode. In other words, in order to switch the current play mode of the song from the list loop mode to the sequential play mode according to the user's voice command, the smart car 500 needs to perform two single-click operations on the control for adjusting the song play mode in the display interface.

[0559] Figure 5c The icon semantic recognition module shown may be pre-fabricated with the play mode switching information of the music application, wherein the play mode switching information may include information indicating how many times the system-level touch interface needs to be called to switch from the current play mode to the target play mode. Then, when the semantics of the voice command input by the user is "switch the song play mode to the sequential play mode", the icon semantic recognition module may determine that the system-level touch interface needs to be called twice when the current play mode is switched from the list loop mode to the sequential play mode.

[0560] Then the icon semantic recognition module can respond to the above voice command input by the user and convert the target control (here Figure 6b The position information of the control 308 shown in the figure and two click events are sent to the music application, so that the music application calls the control 308 using the position information and one click event. Figure 5c The system-level touch interface shown in FIG. 6 is used to implement the display interface 602 from Figure 6b The display interface shown switches to Figure 6c (1) The display interface 602 shown. Then, the music application again uses the above position information and a single click event to call a Figure 5c The system-level touch interface shown in Figure 6c The icon of the control 315 in the display interface 602 shown in (1) is updated to an icon indicating that the current play mode is the sequential play mode, so that the current play mode of the music application is switched to the sequential play mode.

[0561] In another possible implementation, when the smart car 500 determines that the display interface has changed, for example Figure 5c The icon semantic recognition module shown detects that the display content of the display interface is refreshed, or Figure 5c If the icon semantic recognition module detects the user input to the display interface (such as a single click operation, a double click operation, a touch input, etc., which are not limited to the specific ones), the smart car 500 can execute the display interface after the display content is changed again. Figure 5a , Figure 5b The process shown is to realize the recognition of the semantics of the controls in the display interface after refreshing the display content, output the semantics of the controls in the form of superscripts, and realize the visible and verbal operations of the controls, and the details will not be repeated here.

[0562] For example, in Figure 5c The icon semantic recognition module shown detects that the display interface 602 changes from Figure 6b The display interface shown is refreshed to Figure 6c (1) When the display interface is shown, the icon semantic recognition module can Figure 6c (1) The screenshot of the display interface 602 shown in FIG. Figure 5c The process is performed to refresh the corner mark of the corresponding control.

[0563] It should be understood that in the icon semantic recognition module Figure 6c When the screenshot image of the display interface shown in (1) is used for control recognition, the corner mark may not be used as a recognition object, or the outline may be filtered after being recognized to avoid accurate recognition of the control.

[0564] The icon semantic recognition module in the smart car 500 of the present application identifies the semantic annotation information and contour information of each control in the screenshot image of the display interface of the display screen, and the display position of the control with the corresponding contour in the display interface corresponding to the screenshot image. In addition, the icon semantic recognition module can respond to the received voice input, combine the semantic annotation information and contour information of each control identified to determine the contour of the target control indicated by the voice input, and use the display position of the control with each contour in the display interface to determine the display position of the target control that the user needs to operate. In this way, the icon semantic recognition module can determine which control in the screen the user indicates to operate and the target operation that needs to be performed on the control based on the voice input, and can implement the operation of the controls in the display interface in a visible and audible scenario.

[0565] In this way, the smart car 500 can identify the controls that the user intends to operate in the screen display content by performing contour recognition and semantic annotation on the controls in the screen display content, and based on the voice input issued by the user to the screen display content. As long as the controls are visible to the user in the display interface, the user can issue voice commands to make the smart car 500 perform corresponding operations on the corresponding controls, thus realizing the "visibility and speakability" of the controls.

[0566] In some embodiments, when the smart car 500 performs semantic recognition on controls within the display interface, it can use data from the locally stored icon database 700 for semantic recognition, or it can query data from the icon database of the cloud 200 online to perform semantic recognition of the controls.

[0567] It should be noted that the above Figures 4a to 4c The same reference numerals in the figures represent the same objects. Therefore, the reference numerals in the figures are not explained one by one. The reference numerals not mentioned in the figures can be referred to in Figures 4a to 4c The explanations of the same figure marks mentioned in the figure will not be repeated here.

[0568] Above Figures 6a to 6c ,and Figure 7 The same reference numerals in the figures represent the same objects. Therefore, the reference numerals in the figures are not explained one by one. The reference numerals not mentioned in the figures can be referred to in Figures 6a to 6c ,and Figure 7 The explanations of the same figure marks mentioned in the figure will not be repeated here.

[0569] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0570] Figure 8a The structure block diagram of the cloud 200 of the present application is shown as an example.

[0571] like Figure 8a As shown, the cloud 200 may include a first icon extraction module 501 , an icon marking module 502 and an icon storage module 503 .

[0572] The first icon extraction module 501 can be used to obtain the outline information and the position information of the control from any display interface.

[0573] The icon annotation module 502 can be used to semantically annotate the control with corresponding outline information based on the position information of the control extracted by the first icon extraction module 501, so as to obtain semantic annotation information related to the outline information.

[0574] The icon storage module can be used to insert the outline information of the control obtained by the first icon extraction module 501 and the semantic annotation information related to the outline information obtained by the icon annotation module 502 into the icon database.

[0575] Figure 8b Schematic diagram of the structure of the electronic device 100 of the present application.

[0576] like Figure 8b As shown, the electronic device 100 may include a second icon extraction module 601 , an icon recognition module 602 , and an icon prompt module 603 .

[0577] The second icon extraction module 601 can be used to obtain the outline information and the position information of the control on the current display interface.

[0578] The icon recognition module 602 may be used to match the outline information obtained by the second icon extraction module 601 with the outline information of the control in the icon database to obtain semantic annotation information related to the matched outline information.

[0579] The icon prompt module 603 can be used to display the semantic annotation information of the control in the form of a corner mark in the area near the icon at the corresponding position according to the position information of the control and the semantic annotation information of the control identified by the icon identification module 602.

[0580] The data of the icon database used by the electronic device 100 may come from the cloud 200 , and / or the data of the icon database may be automatically generated by the electronic device 100 .

[0581] It should be understood that the above Figure 8a and Figure 8b The structure of the cloud 200 and the structure of the electronic device 100 shown in the figure are not intended to limit the structure of the cloud 200 and the electronic device 100 of the present application. Figure 8a The modules in the cloud 200 shown can be increased, decreased, or combined, and Figure 8b The modules in the electronic device 100 shown may be increased, reduced or combined.

[0582] For example, Figure 8bThe second icon extraction module 601 and the icon identification module 602 shown in the figure can be implemented as Figure 5c The icon semantic recognition module shown.

[0583] In one example, Fig. 9 A schematic block diagram of a device 300 according to an embodiment of the present application is shown. The device 300 may include: a processor 301 and a transceiver / transceiver pin 302 , and optionally, a memory 303 .

[0584] The components of the device 300 are coupled together via a bus 304, wherein the bus 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, all buses are referred to as bus 304 in the figure.

[0585] Optionally, the memory 303 may be used for instructions in the aforementioned method embodiment. The processor 301 may be used to execute instructions in the memory 303, and control the receiving pin to receive a signal, and control the sending pin to send a signal.

[0586] The apparatus 300 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0587] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0588] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the control identification method in the above-mentioned embodiment.

[0589] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the control identification method in the above-mentioned embodiment.

[0590] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the control identification method in the above-mentioned method embodiments.

[0591] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0592] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0593] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0594] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0595] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0596] Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of the present application.

[0597] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0598] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0599] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device. Of course, the processor and the storage medium can also be present in a network device as discrete components.

[0600] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0601] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control identification method, characterized in that: Applied to a first electronic device, the method includes: Get a screenshot of the screen display content; Determine first outline information of a control to be identified in the screenshot image; Based on the first outline information, first semantic information of the control to be identified is identified.

2. The method according to claim 1, characterized in that The identifying, based on the first outline information, first semantic information of the control to be identified includes: Acquire at least one first semantic annotation information related to the second outline information as the first semantic information of the control to be identified; The second outline information is the outline information of the control whose outline difference with the first outline information satisfies a preset condition; The first semantic annotation information is used to indicate the annotated semantic information of the control related to the second outline information.

3. The method according to claim 1 or 2, characterized in that: The first semantic information is used to indicate at least one of the following information: the function of the control to be identified, and the behavior information of the control to be identified after being triggered.

4. The method according to claim 2 or 3, characterized in that: The first semantic annotation information includes at least one of the following: first potential annotation information for indicating a function of a corresponding control; Second potential annotation information for indicating text displayed around the corresponding control; The third potential annotation information is used to indicate the behavior information after the corresponding control is triggered.

5. The method according to any one of claims 1 to 4, characterized in that: The at least one first semantic annotation information is part or all of the second semantic annotation information related to the second contour information obtained from the target storage unit; The target storage unit stores the third outline information and the second semantic annotation information of the control related to the third outline information; The second profile information is the third profile information in the target storage unit whose profile difference with the first profile information satisfies a preset condition.

6. The method according to claim 5, characterized in that The third outline information is stored in the target storage unit in a scalable vector graphic (SVG) format.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: Converting the first outline information into SVG format; Based on the similarity between the first contour information in SVG format and the third contour information in SVG format stored in the target storage unit, the second contour information in SVG format in the target storage unit is determined, the contour difference between the second contour information in SVG format and the first contour information in SVG format meeting a preset condition.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Output the first semantic information of the control to be identified.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Determine a first position of the first contour information in the screenshot image; The first semantic information is the semantic information of the control to be identified at the first position in the screen display content.

10. The method according to claim 9, characterized in that The method further comprises: According to the first semantic information of the to-be-identified control associated with the first position, prompt information corresponding to the first semantic information is displayed on the screen.

11. The method according to any one of claims 1 to 10, further comprising: In response to the received user voice input, determining a target control for the user indicated operation in the screen display content based on the related first semantic information, the first contour information and the first position; Among them, the display position of the target control in the screen display content is the target position, the target position is the first position related to the target contour information, the target contour information is the first contour information related to the target semantic information, wherein the target semantic information is the first semantic information of the control to be identified that matches the semantics of the user voice input.

12. The method according to any one of claims 1 to 11, characterized in that The first contour information of at least one of the to-be-identified controls is composed of multiple groups of contour information in the same contour range.

13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: When it is determined that the screen display content has changed, a screenshot image of the changed screen display content is acquired.

14. A data acquisition method, characterized in that: Applied to a second electronic device, the method includes: Get a screenshot of the screen display content; Determine first outline information of the control to be annotated in the screenshot image; For the to-be-annotated control related to the first outline information, obtaining first semantic annotation information; The second semantic annotation information is annotated as semantic information of a control related to the first outline information, wherein the second semantic annotation information is at least one of the first semantic annotation information.

15. The method according to claim 14, characterized in that The first semantic annotation information is semantic information obtained for the control to be annotated at a first position in the screen display content, and the first position is the position of the first outline information in the screenshot image.

16. The method according to claim 14 or 15, characterized in that The first semantic annotation information includes at least one of the following: first potential annotation information for indicating the function of the control to be annotated; Second potential annotation information for indicating text displayed around the control to be annotated; The third potential annotation information is used to indicate the behavior information of the control to be annotated after being triggered.

17. The method according to any one of claims 14 to 16, characterized in that The second semantic annotation information is used to indicate at least one of the following information: the function of the control related to the first outline information, and the behavior information of the control related to the first outline information after being triggered.

18. The method according to any one of claims 14 to 17, characterized in that The method further comprises: storing the first contour set and the first semantic annotation set in association with each other in a target storage unit; The elements in the first contour set include the first contour information and the contour information of the control whose contour difference with the first contour information meets the preset condition; The elements in the first semantic annotation set are the second semantic annotation information related to the elements in the first contour set.

19. The method according to claim 18, characterized in that The second semantic annotation information includes the target term in the second potential annotation information; The target term is: the intersection of the second potential annotation information related to the control to be annotated and the second potential annotation information in the first semantic annotation information related to the target element; The target element is the control outline information in the first outline set whose outline difference with the first outline information meets a preset condition.

20. The method according to claim 18 or 19, characterized in that The elements in the first outline set are stored in the target storage unit in a scalable vector graphic (SVG) format.

21. The method according to any one of claims 18 to 20, characterized in that The method further comprises: Converting the first outline information into SVG format; Based on the similarity between the first contour information in SVG format and the elements in SVG format in each contour set in the target storage unit, the first contour set in the target storage unit whose contour difference with the first contour information in SVG format meets a preset condition is determined.

22. The method according to any one of claims 14 to 21, characterized in that The first contour information of at least one of the controls to be labeled is composed of multiple groups of contour information in the same contour range.

23. A control identification system, characterized in that: The method comprises the first electronic device executing the method according to any one of claims 1 to 13, and the second electronic device executing the method according to any one of claims 14 to 22, wherein the first electronic device is different from the second electronic device.

24. The system according to claim 23, characterized in that The second electronic device includes the target storage unit.

25. A control identification device, characterized in that: The device is used to perform the method according to any one of claims 1 to 13.

26. A data acquisition device, characterized in that: The device is used to perform the method according to any one of claims 14 to 22.

27. An electronic device, characterized in that: include: a memory and a processor, the memory and the processor being coupled; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the method as claimed in any one of claims 1 to 13, or executes the method as claimed in any one of claims 14 to 22.

28. A computer-readable storage medium, characterized in that: The invention comprises a computer program, which, when executed on an electronic device, enables the electronic device to execute the method according to any one of claims 1 to 13, or execute the method according to any one of claims 14 to 22.

29. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 13, or the method according to any one of claims 14 to 22.

30. A chip, characterized in that: The invention comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method described in any one of claims 1 to 13, or executes the method described in any one of claims 14 to 22.