Page element processing method and device and electronic equipment
A technology of page elements and processing methods, applied in the computer field
Pending Publication Date: 2021-06-04
ZHEJIANG KOUBEI NETWORK TECH CO LTD
6 Cites 0 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0004] The embodiment of the present application provides a page element processing method to solve the problem of...
Abstract
The embodiment of the invention provides two page element processing methods and devices, electronic equipment and a computer storage medium. The method comprises the following steps: in a first surface element processing method, when a target application is in a visual impairment user operation mode, judging whether a target element is a focus element or not in response to a detected trigger operation for the target element displayed in a first page of the target application; and when judging that the target element is the focus element, displaying the target element in the form of the focus element in the first page. Therefore, in the visual impairment user operation mode, the target element can be displayed in the form of the focus element based on the triggering operation of the visual impairment user for the target element, and then the target element can be identified in the subsequent process. The problem of how to accurately identify page elements such as images, icons, characters or buttons in take-out application pages is solved.
Application Domain
Input/output processes for data processing
Technology Topic
Vision basedVisual impairment +8
Image
Examples
- Experimental program(6)
Example
[0077] first embodiment
[0078] The first embodiment of the present application provides a method for processing page elements, which is combined below Figure 4 Be explained.
[0079] Please refer to Figure 4 , which is a flowchart of the page element processing method provided by the first embodiment of the application.
[0080] The page element processing method according to the embodiment of the present application includes the following steps:
[0081] Step S401: When the target application is in the visually impaired user operation mode, in response to detecting a triggering operation on the target element displayed on the first page of the target application, determine whether the target element is the focus element.
[0082] In this embodiment, the takeaway application is mainly used as an example of the target application, and the page element processing method of this embodiment is described in detail by taking the visually impaired user ordering food through the page displayed in the takeaway application as a scenario.
[0083] like figure 1 and figure 2 As shown, it corresponds to the page schematic diagrams of the first page and the second page displayed in the food delivery application under the operation mode of the visually impaired user and the operation mode of the non-visually impaired user respectively. The first page is the page displayed by the food delivery application in the operation mode of the visually impaired user, and the second page is the page displayed by the food delivery application in the operation mode of the non-visually impaired user. In fact, the content displayed in the first page and the second page may be the same. Only in the first page, that is, when the terminal application is in the operation mode of the visually impaired user, the triggered elements in the page are displayed in the form of focus elements.
[0084] In this embodiment, when the food delivery application is in the operation mode for visually impaired users, the visually impaired user can trigger on the target element on the first page. Using the page element processing method in this embodiment, after the target element is triggered, the user can determine the Whether the target element is the focused element.
[0085]The target element may refer to any page element in the first page. For example, it can refer to elements such as "order meal", "review", "merchant", "recommended meal", "new meal", "must order meal", "delicious fruit", "afternoon tea", etc. It can also refer to elements such as "braised eggplant", "No. 1 in sales of braised eggplant in area A", "monthly sales of 10,000+", "99.99% favorable rating", and "¥28".
[0086] In this embodiment, the focus element refers to an element that can be independently touched. Specifically, an element that can be independently touched may refer to an element that can be selected.
[0087] exist figure 2 It can be seen from the above, that is, when the takeaway application is in the operation mode of the non-visually impaired user, the non-visually impaired user can pass the figure 2 The displayed information to view all elements on the page. There is no need to play element information of elements in the page by voice.
[0088] In contrast, when the food delivery application is in the operation mode of the visually impaired user, the food delivery application plays the target element information of the target element in response to detecting the target element triggered by the visually impaired user on the first page to help visual Barriers for users to order food.
[0089] However, not all elements on the page displayed by the food delivery application can be independently touched. When a visually impaired user triggers a target element that cannot be independently touched, the target element information of the target element cannot be played by voice.
[0090] Based on this situation, when the food delivery application is in the visually impaired user operation mode, in response to detecting a trigger operation on the target element displayed on the first page of the food delivery application, it is determined whether the target element is the focus element.
[0091] Specifically, when figure 1 When the target element in the shown page is triggered, it is determined whether the target element is the focus element.
[0092] As a way of judging whether the target element is the focus element: whether the target element is the focus element is judged based on the focus element information list. In this embodiment, the focus element information list is a list for storing target element information.
[0093] The above-mentioned judging whether the target element is the focus element based on the focus element information list can be as follows: judging whether the target element information corresponding to the target element can be found in the focus element information list. If the target element information corresponding to the target element is found in the focus element information list, the target element is the focus element; if the target element information corresponding to the target element is not found in the focus element information list, the target element is not the focus element.
[0094] In order to be able to determine whether the target element is the focus element through the focus element information list, it is necessary to obtain the focus element information list in advance.
[0095] As an implementation manner of obtaining the focus element information list, it may refer to: sending a request message for requesting to obtain the focus element information list to the server; and obtaining the focus element information list provided by the server for the request message. Specifically, the execution subject that obtains the focus element information list may be a terminal application. In this case, the pre-configured focus element information list is pre-existed on the server. Therefore, when the terminal application wants to obtain the focus element information list, it can directly send a request message requesting to obtain the focus element information list to the server.
[0096] As another implementation manner of obtaining the focus element information list, the terminal application may also directly store the focus element information list. In this manner, the terminal application configures the focus element information list in advance.
[0097] Specifically, pre-configuring the focus element information list may be as described below. First, the elements in the second page that cannot be independently touched are obtained; then, the elements that cannot be independently touched are added to the pre-created focus element information list to obtain an updated focus element information list.
[0098] As a way to obtain the elements in the second page that cannot be independently touched, it may be to obtain all the elements in the second page, and determine whether the elements in the second page can be independently touched. Based on the judgment result of whether the elements in the second page can be independently touched, the elements in the second page that cannot be independently touched can be obtained.
[0099] In this embodiment, some elements in the food delivery application are elements that can be independently touched, and some elements cannot be independently touched. E.g, figure 2 Elements such as "order meal", "review", "merchant", "recommended meal", "new meal", "must order", "delicious fruit", "afternoon tea" and other elements shown in the Elements that can be independently touched. Assuming that "ordering" is triggered, the "ordering" information can be played by voice when the food delivery application is in the operation mode for visually impaired users.
[0100] while in figure 2 Elements such as "braised eggplant", "No. 1 in sales of braised eggplant in zone A", "monthly sales of 10,000+", "99.99% favorable rate" and "¥28" are in the operation mode of non-visually impaired users in the takeaway application. cannot be independently touched. For example, "braised eggplant" cannot be independently touched. In this case, the element information corresponding to the "braised eggplant" element is added to the pre-created focus element information list to obtain the updated focus element information list. Then, the element information of "braised eggplant" can exist in the updated focus element information list.
[0101] Triggered when the takeaway app is in the visually impaired user operation mode figure 1 When the "braised eggplant" element is shown, the element information of "braised eggplant" can be found in the updated focus element information list.
[0102] Step S402: If the target element is the focus element, display the target element in the form of the focus element on the first page.
[0103] judge figure 1 The triggered target element in the shown page can be confirmed as the focus element after the corresponding target element information can be queried in the updated focus element information list. For example, when a food delivery application is in the operation mode of a visually impaired user, when "braised eggplant" is triggered, the element information of "braised eggplant" is found in the updated focus element information list, and it can be confirmed that "braised eggplant" is the focus element.
[0104] After confirming that the triggered target element is the focus element, the target element is displayed in the form of the focus element. For example, in figure 1 Among them, "braised eggplant" is in the form of a focus element in figure 1 displayed on the page shown.
[0105] It can be understood that, in this embodiment, the target element may refer to an element that cannot be independently touched on the second page of the target application in the non-visually impaired user operation mode, that is, the target element in this embodiment is Elements that cannot be independently touched when in operating mode for non-visually impaired users. Wherein, the page content of the second page corresponds to the page content of the first page.
[0106] In this embodiment, the elements that cannot be independently touched include at least one of the following elements: elements in a combination of elements with a juxtaposed relationship; and elements in a combination of elements with a nested relationship.
[0107] For example, a combination of elements with a juxtaposed relationship can refer to the elements of "braised eggplant", "the first place in sales of braised eggplant in area A", "monthly sales of 10,000+", "99.99% favorable rating", and "¥28". combination of elements. "Braised eggplant" is: elements in a combination of elements with a juxtaposition.
[0108] A combination of elements with a nested relationship can refer to the picture of braised eggplant as well as figure 1 In the round frame on the page shown, a picture of braised eggplant is displayed inside the round frame. The element combination formed by these two elements is an element combination with a nested relationship. The picture of braised eggplant is: an element in a combination of elements with a juxtaposed nesting relationship.
[0109] While displaying the target element in the form of a focus element, in this embodiment, the target information is played by voice, and the target information is displayed on the first page according to when the target application is in the operation mode of the visually impaired user and the target element is triggered information obtained. For example, in figure 1 , the information displayed after "braised eggplant" is triggered is the name of "braised eggplant", namely: braised eggplant. At this point, you can directly play "Braised Eggplant" by voice.
[0110] Of course, in this embodiment, the target element is an element used to provide delivery services for visually impaired users. For example, the target element can refer to "braised eggplant", which is an element related to delivery services.
[0111] Therefore, the information displayed on the first page after the target element is triggered may refer to the information displayed on the first page after the target element is triggered for providing delivery services for visually impaired users.
[0112] Because in this embodiment, when the target application is in the visually impaired user operation mode, in response to detecting a trigger operation on the target element displayed on the first page of the target application, it is determined whether the target element is the focus element; When it is determined that the target element is the focus element, the target element is displayed in the form of the focus element on the first page. Therefore, in the operation mode of the visually impaired user, the target element can be displayed in the form of a focus element based on the triggering operation of the visually impaired user on the target element, so that the target element can be identified in the subsequent process. Solved the problem of how to accurately identify page elements such as images, icons, text or buttons in the food delivery application page.
Example
[0113] Second Embodiment
[0114] The second embodiment of the present application provides another method for processing page elements, which is combined below Figure 5 Be explained. Since the main content of the page element processing method of the second embodiment has been embodied in the first embodiment, that is, the process of obtaining the updated focus element information list, the relevant description of the second embodiment is only illustrative. , and the relevant parts can be referred to the partial description of the first embodiment.
[0115] Please refer to Figure 5 , which is a flowchart of the page element processing method provided by the second embodiment of the present application.
[0116] The page element processing method according to the embodiment of the present application includes the following steps:
[0117] Step S501: Obtain target element information of target elements that cannot be independently touched in the second page of the target application in the non-visually impaired user operation mode.
[0118] Step S502: Add the target element information to the focus element information list corresponding to the first page of the target application under the operation mode of the visually impaired user, wherein the first page includes the target element, and the page content of the first page is the same as that of the second page. corresponding to the page content.
[0119] Similar to the first embodiment, in this embodiment, the target element information of the target element that cannot be independently touched includes at least one of the following elements: an element in an element combination with a parallel relationship; an element combination with a nested relationship elements in .
[0120] In this embodiment, after obtaining the focus element information list, when the target application is in the visually impaired user operation mode, in response to detecting a trigger operation on the target element, the target element is displayed in the form of a focus element on the first page. Of course, as in the first embodiment, before displaying the target element in the form of a focus element, it is necessary to determine whether the target element is a focus element based on the focus element information list. If so, display the target element as the focus element on the first page.
[0121]While displaying the target element in the form of a focus element on the first page, the target information can also be played by voice. The target information is displayed on the first page after the target element is triggered when the target application is in the operation mode for visually impaired users. information obtained.
[0122] In this embodiment, the target element may also refer to an element used to provide delivery services for visually impaired users. Correspondingly, the information displayed on the first page after the target element is triggered may refer to: after the target element is triggered, information for providing delivery services to visually impaired users is displayed on the first page.
[0123] In this embodiment, the target element information of the target element that cannot be independently touched in the second page of the target application in the operation mode of the non-visually impaired user is obtained, and the target element information is added to the operation mode of the visually impaired user. in the focus element information list corresponding to the first page of the target application in mode. Therefore, in the operation mode for visually impaired users, it is possible to determine whether the target element is the focus element based on the focus element information list and then when the target element is triggered in the subsequent process, and when judging that the target element is the focus element, it can be first The target element is displayed on the page as a focus element. Furthermore, in the operation mode of the visually impaired user, the target element can be displayed and identified in the form of a focus element based on the triggering operation of the visually impaired user on the target element. Solved the problem of how to accurately identify page elements such as images, icons, text or buttons in the food delivery application page.
Example
[0124] Third Embodiment
[0125] Corresponding to the page element processing method provided by the first embodiment of the present application, the third embodiment of the present application correspondingly provides a page element processing apparatus. Since the apparatus embodiment is basically similar to the first embodiment, the description is relatively simple, and reference may be made to the partial description of the first embodiment for related parts. The apparatus embodiments described below are merely illustrative.
[0126] Please refer to Image 6 , which is a schematic diagram of a page element processing apparatus provided by the third embodiment of the present application.
[0127] The page element processing device includes:
[0128] The focus element determination unit 601 is configured to determine whether the target element is the focus element in response to detecting a triggering operation for the target element displayed in the first page of the target application when the target application is in the operation mode of the visually impaired user ;
[0129] A display unit 602, configured to display the target element in the form of a focus element on the first page if the target element is a focus element;
[0130] The target element is an element that cannot be independently touched on the second page of the target application in the operation mode of the non-visually impaired user, wherein the page content of the second page is the same as the content of the first page. corresponding to the page content.
[0131] Optionally, the focus element determination unit is specifically configured to: determine whether the target element is a focus element based on a focus element information list, where the focus element information list is a list for storing target element information.
[0132] Optionally, the focus element determination unit is specifically used for:
[0133] It is judged whether the target element information corresponding to the target element can be found in the focus element information list.
[0134] Optionally, the page element processing apparatus further includes: a focus element information list obtaining unit; the focus element information list obtaining unit is specifically configured to: obtain the focus element information list.
[0135] Optionally, the page element processing apparatus further includes: a request message sending unit; the request message sending unit is specifically configured to: send a request message for requesting to obtain the focus element information list to the server;
[0136] The unit for obtaining the focus element information list is specifically configured to: obtain the focus element information list provided by the server for the request message.
[0137] Optionally, the unit for obtaining the focus element information list is specifically used for:
[0138] obtaining elements in the second page that cannot be independently touched;
[0139] The element that cannot be independently touched is added to the pre-created focus element information list to obtain an updated focus element information list.
[0140] Optionally, the page element processing device further includes: a touch determination unit; the touch determination unit is specifically configured to: determine whether the elements in the second page can be independently touched.
[0141] Optionally, the elements that cannot be independently touched include at least one of the following elements:
[0142] elements in a combination of elements that have a juxtaposition;
[0143] Elements in a combination of elements with nested relationships.
[0144] Optionally, the page element processing device further includes: a voice playing unit; the voice playing unit is specifically configured to: play target information by voice, and the target information is based on the operation of a visually impaired user according to the target application In the mode, the information displayed on the first page after the target element is triggered is obtained.
[0145] Optionally, the target element is an element used to provide delivery services for visually impaired users;
[0146] The information displayed on the first page after the target element is triggered includes: after the target element is triggered, the information for providing delivery services for visually impaired users is displayed on the first page.
PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.