Application control method, device and electronic device

By receiving and processing control information on the first electronic device, determining the target control and using the accessibility service touch, and combining the cloud platform to process and send the interface information, the problem of incomplete interface display and inconvenient control in the projection display is solved, and the problem is achieved Convenient control over applications.

CN114237479BActive Publication Date: 2024-08-30APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111495170.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2024-08-30
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

During the screen projection process, due to the different display screen parameters of the first electronic device and the second electronic device, the interface of the application cannot be adjusted according to the display screen parameters of the second electronic device. The user controls the application through the second electronic device. The program is not convenient and the interface display is not comprehensive.

Method used

The first electronic device receives control information to obtain the current interface image, determines the target control, and touches the target control through the accessibility service to control the application. The cloud platform obtains and processes the interface image information, and sends the control to the first electronic device. information for easier control.

Benefits of technology

Convenient and effective control of the first application is realized. The user does not need to manually touch the display interface on the second electronic device and can control the application displayed on the screen through voice, which solves the problems of incomplete display and inconvenient control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237479B
    Figure CN114237479B
Patent Text Reader

Abstract

The present disclosure provides a control method for an application, a first electronic device, and a cloud platform, and relates to the field of communication technology, and in particular, to the field of data processing technology. A specific implementation scheme is as follows: a first electronic device receives first control information, and in response to the first control information, obtains a current interface image of a first application; the first electronic device obtains information about the current interface image; the first electronic device receives second control information, and in response to the second control information, determines a target control for the first application based on information about the current interface image; touches the target control through an accessibility service; wherein the current interface image is projected to a second electronic device through a second application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a control method, device and electronic device for an application in the field of data processing technology. Background Art

[0002] With the development of computer technology, people's demand for screen projection is becoming more and more obvious; for example, the interface of an application running on a first electronic device is projected and displayed on a second electronic device. How the user of the second electronic device can control the application conveniently and effectively is a goal that has always been pursued. Summary of the invention

[0003] The present disclosure provides a method, device and electronic device for controlling an application.

[0004] According to a first aspect of the present disclosure, a method for controlling an application is provided, comprising:

[0005] The first electronic device receives the first control information, and acquires the current interface image of the first application in response to the first control information;

[0006] The first electronic device acquires information of the current interface image;

[0007] The first electronic device receives second control information, and determines, in response to the second control information, a target control for the first application based on information of the current interface image;

[0008] The target control is touched through the accessibility service; wherein the current interface image is projected to the second electronic device through the second application.

[0009] According to a second aspect of the present disclosure, a method for controlling an application is provided, the method comprising:

[0010] The cloud platform obtains a current interface image of a first application running on the first electronic device;

[0011] The cloud platform determines information of the current interface image, wherein the information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image;

[0012] The cloud platform sends information of the current interface image to the first electronic device.

[0013] According to a third aspect of the present disclosure, a first electronic device is provided, the first electronic device comprising:

[0014] A first acquisition module, configured to receive first control information, and acquire a current interface image of a first application in response to the first control information;

[0015] A second acquisition module is used to acquire information of the current interface image;

[0016] A first determination module, configured to receive second control information, and determine a target control for the first application based on information of the current interface image in response to the second control information;

[0017] A touch control module, used for touching the target control through an accessibility service;

[0018] Wherein, the current interface image is projected to the second electronic device through the second application.

[0019] According to a fourth aspect of the present disclosure, a cloud platform is provided, the cloud platform comprising:

[0020] A third acquisition module, used to acquire a current interface image of a first application running on the first electronic device;

[0021] A second determination module is used to determine information of the current interface image, wherein the information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image;

[0022] The sending module is used to send the information of the current interface image to the first electronic device.

[0023] According to a fifth aspect of the present disclosure, there is provided a first electronic device, including:

[0024] at least one processor; and a memory in communication with the at least one processor; wherein,

[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the above-mentioned application program.

[0026] According to a sixth aspect of the present disclosure, there is provided a cloud platform, including:

[0027] at least one processor; and a memory in communication with the at least one processor; wherein,

[0028] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the above-mentioned application program.

[0029] According to a seventh aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the control method of the above-mentioned application program.

[0030] According to an eighth aspect of the present disclosure, there is provided a computer program product, comprising a computer program / instruction, which implements the control method according to the above-mentioned application program when executed by a processor.

[0031] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0033] Figure 1 It is a schematic diagram of projecting the interface of an application running on a first electronic device onto a second electronic device;

[0034] Figure 2 is a schematic diagram of an optional processing flow provided by an embodiment of the present disclosure;

[0035] Figure 3 is an optional schematic diagram of the current interface image provided by the embodiment of the present disclosure;

[0036] Figure 4 It is an optional schematic diagram of a prompt image corresponding to the current interface image provided by an embodiment of the present disclosure;

[0037] Figure 5 is another optional processing flow diagram of the control method of the application provided by the embodiment of the present disclosure;

[0038] Figure 6 It is a schematic diagram of a processing flow of determining information of a current interface image by a cloud platform provided by an embodiment of the present disclosure;

[0039] Figure 7 is a detailed processing flow diagram of the control method of the application provided by the embodiment of the present disclosure;

[0040] Figure 8 is a schematic diagram of an optional composition structure of a first electronic device provided by an embodiment of the present disclosure;

[0041] Fig. 9 This is a schematic diagram of an optional structure of the cloud platform provided by the embodiment of the present disclosure;

[0042] Fig.10 The present invention is a block diagram of an electronic device for implementing the control method of the application program according to the embodiment of the present disclosure. DETAILED DESCRIPTION

[0043] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0044] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0045] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

[0047] In the related art, in response to the continuous development of smart terminal devices, screen projection display of smart terminal devices has been widely used, such as projecting the interface of an application running on a first electronic device onto a second electronic device; however, since the parameters of the display screens of the first electronic device and the second electronic device (such as the size of the display screen and the resolution of the display screen) may be different, directly projecting the interface of the application running on the first electronic device onto the second electronic device may result in the interface of the application running on the first electronic device being unable to be adjusted and displayed according to the parameters of the display screen of the second electronic device. Schematic diagram of projecting the interface of an application running on a first electronic device onto a second electronic device, such as Figure 1As shown, the display screen of the first electronic device is smaller than the display screen of the second electronic device. If the application running on the first electronic device is displayed in full screen on the first electronic device, when the interface of the application is projected and displayed on the second electronic device, the application is not displayed in full screen on the second electronic device, resulting in problems such as inconvenience for the user to control the application through the second electronic device. In some scenarios, if the display screen of the first electronic device is square and the second electronic screen is rectangular, when the interface displayed in full screen on the first electronic device is projected and displayed on the second electronic device, there may be problems such as incomplete display of the projected interface.

[0048] The present disclosure provides a method for controlling an application. When a current interface image of a first application running on a first electronic device is projected to a second electronic device, the first electronic device can determine a target control for controlling the first application based on information about the interface image of the first application currently running on the first electronic device and second control information received for controlling the first application, and control the first application by touching the target control through an accessibility service.

[0049] Figure 2 This is an optional processing flow diagram of the application control method provided by the present disclosure. The application control method may include at least the following steps:

[0050] Step S201: A first electronic device receives first control information, and acquires a current interface image of a first application in response to the first control information.

[0051] In some embodiments, the first electronic device may be a smart terminal device, such as a smart phone, a tablet computer, or any other electronic device that can install an application.

[0052] In some embodiments, if the user needs to control the current interface of the first application, the user sends a first control message, which may be voice information input by the user or touch information of the user to the first electronic device; after the first control message, it is used to trigger the first electronic device to obtain the current interface image of the first application.

[0053] The user controlling the current interface of the first application may refer to the user controlling the first application through a control on the current interface; the control may also be referred to as a button or an icon. The first application is an application installed on the first electronic device, and the first application is an application currently running on the first electronic device, and the current interface image of the first application is an image currently displayed on the display screen of the first electronic device.

[0054] In some embodiments, the first electronic device obtains the current interface image of the first application through a screenshot function of the first electronic device.

[0055] In some embodiments, the current interface image of the first application running on the first electronic device is projected to the second electronic device through the second application. The first electronic device and the second electronic device on which the second application is installed have the function of projecting and displaying; for example, by activating or running the second application on the first electronic device and the second electronic device, the current interface image of the first application running on the first electronic device is synchronously displayed on the second electronic device.

[0056] Step S202: the first electronic device obtains information of the current interface image.

[0057] In some embodiments, the implementation process of the first electronic device obtaining information about the current interface image may be: the first electronic device sends the current interface image to the cloud platform; after the cloud platform receives the current interface image, it obtains information about the current interface image and sends the obtained information about the current interface image to the first electronic device.

[0058] In some embodiments, the information of the current interface image may include at least: information of controls in the current interface image and a prompt image corresponding to the current interface image. The information of controls in the current interface image may include: the size of each control in the current interface image, the coordinates of each control, and the name of each control. The prompt image corresponding to the current interface image is obtained by adding control prompt information corresponding to each control to the current interface image, wherein the control prompt information is used to prompt the user that the corresponding control can be controlled through the control prompt information; the control prompt information may be in the form of text.

[0059] In some embodiments, an optional schematic diagram of the current interface image is as follows: Figure 3 As shown, the current interface of the first application includes three controls, namely the first control, the second control and the third control; an optional schematic diagram of the prompt image corresponding to the current interface image, such as Figure 4 As shown, including control prompt information corresponding to each control.

[0060] In some embodiments, Figure 3Taking the current interface image shown as an example, the information of the current interface image may include the coordinates of the first control in the current interface, the size of the first control, and the name of the first control, the coordinates of the second control in the current interface, the size of the second control, and the name of the second control, and the coordinates of the third control in the current interface, the size of the third control, and the name of the third control. Among them, the name of the first control, the name of the second control, and the name of the third control can be named according to the functions that can be realized by each, such as the name of the first control is "previous page", the name of the second control is "next page", and the name of the third control is "return".

[0061] Step S203: The first electronic device receives second control information, and in response to the second control information, determines a target control for the first application based on information of the current interface image.

[0062] In some embodiments, the second control information may be sent by the user according to a prompt image displayed on the second electronic device. Optionally, the user may send the second control information according to the control prompt information corresponding to the control on the prompt image; as an example, if the control prompt information corresponding to the control is "previous page", the second control information sent by the user may be "previous page".

[0063] In some embodiments, in response to second control information, the specific implementation process of determining the target control for the first application based on information of the current interface image may include: parsing the second control information to obtain a command word corresponding to the second control information; in response to the command word hitting the first control in the information of the current interface image, determining that the first control is the target control for the first application.

[0064] As an example, if the second control information is voice information for input, the voice information is parsed; parsing the voice information may include converting the voice information into text information, identifying words in the text information, and determining the command word from the identified words. The process of determining the command word corresponding to the second control information may also be referred to as command word recognition or grammar recognition; wherein command word recognition (grammar recognition) is a technology that converts natural language audio that is consistent with grammar into text output based on grammar rules.

[0065] As an example, if the command word is consistent with or matches the first control in the information of the current interface image, it is considered that the command word hits the first control in the information of the current interface image; and the first control is determined to be the target control. The command word is consistent with or matches the first control, which may mean that the command word is consistent with or matches the name of the first control; for example, if the command word is "previous page" and the name of the first control in the information of the current interface image is "previous page", the command word hits the first control, and the first control is the target control.

[0066] Step S204: touch the target control through the accessibility service.

[0067] In some embodiments, the specific implementation process of the first electronic device touching the target control through the accessibility service may include: the first electronic device applies for permission for the accessibility service, determines the coordinates of the target control and the size of the target control; based on the coordinates of the target control and the size of the target control, simulates the touch function through the accessibility service to touch the target control.

[0068] The accessibility service is a system-level application programming interface (API) that can simulate operations. After the user agrees that the application on the first electronic device obtains the permission of the accessibility service, the application can simulate operations to control the first electronic device.

[0069] In specific implementation, in step S202, the first electronic device receives the information of the current interface image sent by the cloud platform, including the size and coordinates of each control; after determining the target control, the first electronic device searches for the size and coordinates of the target control in the information of the current interface image; and simulates the touch function through the barrier-free service, and touches the target control according to the coordinates and size of the target control; specifically, the range in which the target control can be touched can be determined according to the coordinates and size of the target control, and the target control can be touched within the range, and the control of the first application can be achieved by touching the target control. Among them, touching the target control can be operations such as single-clicking the target control, double-clicking the target control, or long pressing the target control.

[0070] In an embodiment of the present application, the first electronic device calls an accessibility service based on second control information input by the user to control the first application; the current interface image of the first application is projected and displayed on the second electronic device through the second application, so that the user does not need to manually touch the display interface on the second electronic device, but can control the interface image displayed on the second electronic device through voice on the second electronic device, thereby conveniently and effectively controlling the first application projected and displayed on the second electronic device.

[0071] Figure 5 FIG. 1 is another optional processing flow diagram of the application control method provided by the present disclosure. The application control method may include at least the following steps:

[0072] Step S301: the cloud platform obtains a current interface image of a first application running on a first electronic device.

[0073] In some embodiments, the cloud platform receives a current interface image of a first application sent by a first electronic device. The first electronic device may be an intelligent terminal device, such as a smart phone, a tablet computer, or any other electronic device capable of installing an application.

[0074] Step S302: the cloud platform determines information of the current interface image.

[0075] In some embodiments, the information of the current interface image includes at least: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image.

[0076] In some embodiments, the cloud platform determines the processing flow of the information of the current interface image, such as Figure 6 As shown, including:

[0077] Step 3a, the cloud platform determines the first application corresponding to the current interface image and the page information corresponding to the current interface image according to the current interface image.

[0078] In some embodiments, the cloud platform pre-stores interfaces of different applications, and each application interface may include multiple interfaces. As an example, a playback application may include a main interface of the playback application, a radio interface, and a live broadcast interface.

[0079] In specific implementation, the cloud platform can search for images in pre-stored images whose similarity with the current interface image meets the matching conditions; determine that the application corresponding to the image that meets the matching conditions is the first application, and the page information corresponding to the current interface image. Specifically, the cloud platform can compare the current interface image and the pre-stored images from multiple dimensions such as text, pictures, and image layouts to obtain the similarity between the current interface image and the pre-stored images; when the similarity meets the matching conditions, determine that the application corresponding to the image that meets the matching conditions is the first application, and determine that the page information corresponding to the image that meets the matching conditions is the page information corresponding to the current interface image. Among them, the matching condition can be that the similarity between the two images reaches a set threshold.

[0080] Step 3b: The cloud platform determines the information of each control in the current interface image according to the page information.

[0081] In some embodiments, when the cloud platform receives the current interface image sent by the first electronic device, it may also include the resolution information of the current interface image. The cloud platform first determines the information of each control in the pre-stored image that matches the current interface image (such as the coordinates of the control in the image that matches the current interface image, the size of the control, and the name of the control), and then determines the information of each control in the current interface image (such as the coordinates, size, and name of the control in the current interface image) based on the resolution information of the current interface image.

[0082] Step 3c: the cloud platform adds control prompt information of each control on the current interface image according to the information of each control, and obtains a prompt image corresponding to the current interface image.

[0083] In some embodiments, the control prompt information may be the same as the name of the control, and the control prompt information is used to prompt the functions that the corresponding control can implement.

[0084] The following takes the first electronic device as a smart terminal device, the second electronic device as a vehicle-mounted terminal device, and the second application as CarLife as an example to illustrate the control method of the application provided in the embodiment of the present application. A detailed processing flow of the control method of the application provided in the embodiment of the present application can be as follows: Figure 7 As shown, including:

[0085] Step S401: The smart terminal device and the vehicle-mounted terminal device are interconnected through CarLife.

[0086] Step S402: The smart terminal device projects the display interface of the third-party application to the vehicle-mounted terminal device through CarLife.

[0087] In some embodiments, the smart terminal device runs CarLife, so that CarLife enters the global screen recording mode. The smart terminal device runs a third-party application, and the current interface image of the third-party application is projected and displayed on the vehicle terminal device through CarLife.

[0088] Step S403: The user activates the screenshot function of the smart terminal device through voice information.

[0089] In some embodiments, when the user wishes to control the current interface of a third-party application, the user activates the screenshot function of the smart terminal device through voice information, and the smart terminal device takes a screenshot of the current interface image of the third-party application.

[0090] Step S404: The smart terminal device sends the current interface image to the cloud platform.

[0091] In some embodiments, the intelligent terminal device may also send resolution information of the current interface image to the vehicle-mounted terminal device.

[0092] Step S405: The cloud platform determines the attribute information of the current interface.

[0093] In some embodiments, the attribute information of the current interface includes the application corresponding to the current interface and the page information corresponding to the current interface (which interface in the application does the current interface belong to). Specifically, the cloud platform searches for an image that meets the matching condition based on the similarity with the current interface image in pre-stored images; determines that the application corresponding to the image that meets the matching condition is the application corresponding to the current interface. And determines that the page information corresponding to the image that meets the matching condition is the page information corresponding to the current interface image. Among them, the matching condition can be that the similarity between the two images reaches a set threshold.

[0094] Step S406: The cloud platform determines the prompt image corresponding to the current interface image, as well as the coordinates, size and name of the button on the current interface.

[0095] In some embodiments, the prompt image corresponding to the current interface image is obtained by adding control prompt information corresponding to each button on the current interface image, wherein the control prompt information is used to prompt the user that the corresponding button can be controlled through the control prompt information; the control prompt information can be in the form of text.

[0096] Step S407: The cloud platform sends the prompt image corresponding to the current interface image, as well as the coordinates, size and name of the button on the current interface to the smart terminal device.

[0097] Step S408: The smart terminal device projects the prompt image on the vehicle-mounted terminal device through CarLife.

[0098] In some embodiments, the smart terminal device can also register scenario-based command words according to the control prompt information on the prompt image, and the button can be controlled through the scenario-based command words; wherein the scenario-based command words can be consistent with the name of the button.

[0099] Step S409: The user initiates a scenario-based command word, and the smart terminal device uses an accessibility service control button.

[0100] In some embodiments, when the smart terminal device recognizes that the scenario-based command word initiated by the user is consistent with a button on the current interface, the smart terminal device applies for accessibility service permission and uses the accessibility service to simulate the control button. Specifically, the button click can be simulated according to the coordinates and size of the button to implement operations such as clicking, long pressing, and double-clicking the button.

[0101] In step S410, the smart terminal device projects the application interface after controlling the button to the vehicle-mounted terminal device.

[0102] In the embodiment of the present application, the vehicle terminal device and the smart terminal device are associated through CarLife, so that the interface image on the smart terminal device can be projected and displayed on the vehicle terminal device. When the user needs to control the projection interface on the vehicle terminal device, there is no need to manually control the vehicle terminal device and the smart terminal device. The user can initiate the corresponding scenario command words, and the smart terminal device can control the display interface on the smart terminal device through the barrier-free service, thereby realizing the control of the projection interface on the vehicle terminal device.

[0103] The present disclosure also provides a first electronic device, a schematic diagram of the first electronic device, such as Figure 8 As shown, the first electronic device includes:

[0104] A first acquisition module 501 is used to receive first control information, and acquire a current interface image of a first application in response to the first control information;

[0105] The second acquisition module 502 is used to acquire information of the current interface image;

[0106] A first determination module 503 is used to receive second control information, and determine a target control for the first application based on information of the current interface image in response to the second control information;

[0107] The touch module 504 is used to touch the target control through the accessibility service; wherein the current interface image is projected to the second electronic device through the second application.

[0108] In some embodiments, the second acquisition module 502 is used to send the current interface image to the cloud platform; receive information about the current interface image sent by the cloud platform; the information about the current interface image includes at least: information about controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image.

[0109] In some embodiments, the first electronic device further includes: a screen projection module 505, configured to project the prompt image to the second electronic device via the second application.

[0110] In some embodiments, the first determining module 503 is configured to parse the second control information to obtain a command word corresponding to the second control information;

[0111] In response to the command word hitting a first control in the information of the current interface image, the first control is determined to be a target control for the first application.

[0112] In some embodiments, the touch module 504 is used to obtain permission for the accessibility service; determine the coordinates of the target control and the size of the target control; and based on the coordinates of the target control and the size of the target control, simulate the touch function through the accessibility service to touch the target control.

[0113] The present disclosure also provides a cloud platform, and a schematic diagram of an optional structure of the cloud platform, such as Fig. 9 As shown, the cloud platform includes:

[0114] A third acquisition module 601 is used to acquire a current interface image of a first application running on a first electronic device;

[0115] The second determination module 602 is used to determine the information of the current interface image, wherein the information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image;

[0116] The sending module 603 is used to send the information of the current interface image to the first electronic device.

[0117] In some embodiments, the second determination module 602 is used to determine the first application corresponding to the current interface image and the page information corresponding to the current interface image based on the current interface image; determine the information of each control in the current interface image based on the page information; add the control prompt information of each control to the current interface image based on the information of each control, and obtain the prompt image corresponding to the current interface image.

[0118] In some embodiments, the second determination module 602 is used to search for an image in pre-stored images whose similarity with the current interface image meets a matching condition;

[0119] It is determined that the application corresponding to the image that meets the matching condition is the first application, and the page information corresponding to the current interface image.

[0120] In some embodiments, the information of the control includes: the coordinates of the control, the size of the control, and the name of the control.

[0121] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0122] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product, wherein the electronic device includes a first electronic device or a cloud platform.

[0123] Fig.10 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. In some embodiments, the electronic device 800 can be a terminal device or a server. In some embodiments, the electronic device 800 can implement the control method of the application provided in the embodiment of the present application by running a computer program. For example, the computer program can be a native program or a software module in the operating system; it can be a native application (Application, APP), that is, a program that needs to be installed in the operating system to run; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0124] In practical applications, the electronic device 800 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, where cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to achieve data computing, storage, processing and sharing. The electronic device 800 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart TV, a smart watch, etc., but is not limited thereto.

[0125] Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, vehicle-mounted terminals, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0126] like Fig.10As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0127] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0128] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the control method of the application. For example, in some embodiments, the control method of the application may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the control method of the application described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured as a control method of the application by any other appropriate means (e.g., by means of firmware).

[0129] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0130] The program code for implementing the traffic identification restriction method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0131] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0133] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0134] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0136] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for controlling an application, comprising: The first electronic device receives the first control information, and in response to the first control information, obtains a current interface image of the first application, wherein the current interface image is projected to the second electronic device through the second application; The first electronic device sends the current interface image to the cloud platform; The first electronic device receives information of the current interface image sent by the cloud platform; The information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image; The first electronic device projects the prompt image to the second electronic device through the second application; The first electronic device receives second control information, and in response to the second control information, determines a target control for the first application based on information of the current interface image, wherein the second control information is sent by a user according to the prompt image displayed on the second electronic device; Touch the target control via accessibility services.

2. The method according to claim 1, wherein: The step of determining, in response to the second control information, a target control for the first application based on information of the current interface image, comprises: parsing the second control information to obtain a command word corresponding to the second control information; In response to the command word hitting a first control in the information of the current interface image, the first control is determined to be a target control for the first application.

3. The method according to claim 1, wherein: The step of touching the target control by using an accessibility service includes: The first electronic device obtains permission for the barrier-free service; The first electronic device determines the coordinates of the target control and the size of the target control; The first electronic device touches the target control by simulating a touch function through the accessibility service based on the coordinates of the target control and the size of the target control.

4. A method for controlling an application, comprising: The cloud platform obtains a current interface image of a first application program running on the first electronic device as claimed in claim 1; The cloud platform determines information of the current interface image, where the information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; The prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image; The cloud platform sends information of the current interface image to the first electronic device.

5. The method according to claim 4, wherein: The cloud platform determines the information of the current interface image, including: The cloud platform determines the first application corresponding to the current interface image and page information corresponding to the current interface image according to the current interface image; The cloud platform determines information of each control in the current interface image according to the page information; The cloud platform adds control prompt information of each control to the current interface image according to the information of each control to obtain a prompt image corresponding to the current interface image.

6. The method according to claim 5, wherein: The cloud platform determines, according to the current interface image, the first application corresponding to the current interface image and page information corresponding to the current interface image, including: The cloud platform searches for an image in pre-stored images whose similarity with the current interface image meets a matching condition; It is determined that the application corresponding to the image that meets the matching condition is the first application, and the page information corresponding to the current interface image.

7. The method according to claim 5 or 6, wherein: The information of the control includes: The coordinates of the control, the size of the control, and the name of the control.

8. A first electronic device, comprising: A first acquisition module is used to receive first control information, and in response to the first control information, acquire a current interface image of the first application, wherein the current interface image is projected to the second electronic device through the second application; The second acquisition module is used to send the current interface image to the cloud platform; receive the information of the current interface image sent by the cloud platform; the information of the current interface image at least includes: the information of the controls in the current interface image and the prompt image corresponding to the current interface image; the prompt image is obtained by adding the control prompt information of each control in the current interface image to the current interface image; A screen projection module, used for projecting the prompt image to the second electronic device through the second application; a first determining module, configured to receive second control information, and determine, in response to the second control information, a target control for the first application based on information of the current interface image, wherein the second control information is sent by a user according to the prompt image displayed on the second electronic device; The touch module is used to touch the target control through the accessibility service.

9. A cloud platform, comprising: A third acquisition module, configured to acquire a current interface image of the first application program running on the first electronic device as claimed in claim 8; A second determination module is used to determine information of the current interface image, wherein the information of the current interface image at least includes: information of controls in the current interface image and a prompt image corresponding to the current interface image; the prompt image is obtained by adding control prompt information of each control in the current interface image to the current interface image; The sending module is used to send the information of the current interface image to the first electronic device.

10. A first electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.

11. A cloud platform comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 4 to 7.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 3; Alternatively, the computer instructions are used to cause the computer to execute the method according to any one of claims 4 to 7.

Citation Information

Patent Citations

  • Speech central control method and device based on image recognition

    CN109471678A

  • Voice control method and device, computer readable storage medium and computer equipment

    CN110058838A

  • Method and device for controlling electronic equipment and electronic equipment

    CN111880870A