Information acquisition method and apparatus, electronic device and medium

By monitoring the motion information of at least two controls on the page, the difficulty in collecting sliding information caused by the increase in the types of sliding engines is solved, and more efficient and accurate sliding information acquisition is achieved, improving the sliding effect.

WO2025176127A1PCT designated stage Publication Date: 2025-08-28VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/077873
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-23
Filing Date
2025-02-18
Publication Date
2025-08-28

AI Technical Summary

Technical Problem

With the increase in the types of sliding engines in electronic devices, native sliding engines cannot accurately collect page sliding information. Especially when the page slides by the user's fingers leave the screen, the recognition accuracy of existing methods is low, and the non-real-time acquisition methods are poor in real time, resulting in lagging in sliding information collection.

Method used

By monitoring the motion information of at least two controls in the page, when their motion information matches, the sliding information of the page is obtained, and the real sliding information of the page is determined using the motion information of the control.

Benefits of technology

It improves the efficiency and accuracy of page sliding information collection, ensuring that no matter which sliding engine is used, the page sliding information can be accurately obtained, and avoids lag during the sliding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025077873_28082025_PF_FP_ABST
    Figure CN2025077873_28082025_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of electronics. Disclosed are an information acquisition method and apparatus, an electronic device and a medium. The method comprises: when a sliding input of a user on a first page is received, monitoring motion information of at least two controls on the first page; and, when the motion information of the at least two controls is matched with each other, acquiring sliding information of the first page on the basis of the motion information of the at least two controls.
Need to check novelty before this filing date? Find Prior Art

Description

Information acquisition method, device, electronic device and medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202410204166.9 filed in China on February 23, 2024, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of electronic technology, and specifically relates to an information acquisition method, device, electronic equipment and medium. Background Art

[0004] As electronic devices continue to evolve, their applications are becoming increasingly versatile and versatile, with increasingly more customization available for application page scrolling. For example, users can scroll at different speeds depending on where they scroll on an application page.

[0005] At present, with the increasing customization of application page sliding, many third-party sliding engines have emerged, and some application manufacturers will also develop a personalized sliding engine for certain applications to control the application page sliding process.

[0006] However, since electronic devices use native sliding engines when collecting page sliding information, as the types of sliding engines that control the page sliding process of applications continue to increase, it becomes increasingly difficult for electronic devices to collect page sliding information. Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide an information acquisition method, device, electronic device and medium, which can improve the efficiency and accuracy of electronic devices in collecting page sliding information.

[0008] In a first aspect, an embodiment of the present application provides an information acquisition method, which includes: upon receiving a sliding input from a user on a first page, monitoring the motion information of at least two controls within the first page; and when the motion information of at least two controls matches, acquiring the sliding information of the first page based on the motion information of the at least two controls.

[0009] In a second aspect, an embodiment of the present application provides an information acquisition device, which includes: a receiving module, a monitoring module and an acquisition module; the monitoring module is used to monitor the motion information of at least two controls within the first page when the receiving module receives a sliding input of the user on the first page; the acquisition module is used to obtain the sliding information of the first page based on the motion information of at least two controls when the motion information of at least two controls monitored by the monitoring module matches.

[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0014] In an embodiment of the present application, upon receiving a user sliding input on a first page, the motion information of at least two controls within the first page is monitored; if the motion information of at least two controls matches, the sliding information of the first page is obtained based on the motion information of the at least two controls. With this solution, as the user slides the page, the actual sliding information of the page during the user interaction can be accurately obtained based on the motion information of at least two controls on the page. This allows accurate acquisition of the page's sliding information through the controls on the page, regardless of the type of sliding engine controlling the page's sliding. This improves the efficiency and accuracy of collecting page sliding information. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] FIG1 is a flow chart of a method for obtaining information provided in an embodiment of the present application;

[0016] FIG2 is a schematic diagram of the architecture of a control in a page provided in an embodiment of the present application;

[0017] FIG3 is a second flowchart of an information acquisition method provided in an embodiment of the present application;

[0018] FIG4 is a third flowchart of an information acquisition method provided in an embodiment of the present application;

[0019] FIG5 is a fourth flowchart of an information acquisition method provided in an embodiment of the present application;

[0020] FIG6 is a schematic structural diagram of an information acquisition device provided in an embodiment of the present application;

[0021] FIG7 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;

[0022] FIG8 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described 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 are within the scope of protection of this application.

[0024] The terms "first," "second," and the like in the specification of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification indicates at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0025] The terms "at least one (item)", "at least one of" and the like in the specification of this application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". Below, in conjunction with the accompanying drawings, the information acquisition method, device, electronic device and medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0026] The information acquisition method, device, electronic device, and medium provided in the embodiments of the present application can be applied to scenarios where a user slides a page displayed on the screen of an electronic device, especially scenarios where a user slides an application page of the electronic device.

[0027] With the continuous development of electronic devices, the functions and special effects of electronic device applications are becoming more and more abundant. While ensuring the smoothness of the application and user experience, electronic device applications are increasingly customizing page sliding. The native sliding engine can no longer meet the application's customization needs for the sliding process. This has led to the emergence of many third-party sliding engines, and some leading application manufacturers will also develop a set of sliding engines for certain applications to control the application's page sliding process. Therefore, since electronic devices use the native sliding engine when collecting page sliding information, as the types of sliding engines that control the application's page sliding process continue to increase, it becomes increasingly difficult for electronic devices to collect page sliding information.

[0028] At present, the recognition scheme of page sliding usually requires the application to access the native interface to collect the sliding information of the page. Among them, in the case of the user's finger pressing and sliding on the screen of the electronic device, the electronic device usually obtains the displacement and duration of the user's finger moving on the screen of the electronic device to calculate the movement direction, movement distance and movement speed of the user's finger on the screen. However, this method can only be used for the process of the user's finger sliding on the screen of the electronic device. After the finger leaves the screen of the electronic device, the electronic device cannot recognize the sliding of the page. Therefore, this method has low accuracy in recognizing sliding information on pages that cannot be slid or pages that do not slide with the hand.

[0029] When a page scrolls inertially after a user's finger leaves the electronic device screen, the electronic device typically sends the current time to the scrolling engine after the user's finger leaves the electronic device screen. The engine continuously calculates the current speed and displacement, thereby obtaining the position of the control on the page and the scrolling information of the page. However, since this method can only be implemented through the native scrolling engine of the electronic device, its use has significant limitations.

[0030] Furthermore, although electronic devices can also calculate page sliding information through non-real-time acquisition methods, such as using a high-speed camera to capture two frames of page images, or directly acquiring two frames of image output for image recognition to calculate sliding information, such methods lack real-time performance, resulting in a lag in the electronic device's collection of page sliding information and poor accuracy of the collected page sliding information.

[0031] In the information acquisition method, device, electronic device, medium, and computer program product provided in the embodiments of the present application, when a user slides a page, the actual page sliding information during the user interaction can be accurately obtained based on the motion information of at least two controls on the page. This allows accurate acquisition of page sliding information through the controls on the page, regardless of the type of sliding engine controlling the page sliding. This improves the efficiency and accuracy of collecting page sliding information.

[0032] The information acquisition method provided in the embodiments of the present application may be executed by an information acquisition device. For example, the information acquisition device may be an electronic device, or a component within the electronic device, such as an integrated circuit or chip. The information acquisition method provided in the embodiments of the present application will be described below using an electronic device as an example.

[0033] The present invention provides an information acquisition method. FIG1 shows a flowchart of the information acquisition method provided by the present invention. The method can be applied to electronic devices. As shown in FIG1 , the information acquisition method provided by the present invention can include the following steps 101 and 102.

[0034] Step 101: Upon receiving a sliding input from a user on a first page, the electronic device monitors motion information of at least two controls on the first page.

[0035] In some embodiments of the present application, the first page may be any page in the electronic device.

[0036] Exemplarily, the first page may be a page of an application in the electronic device.

[0037] Exemplarily, the first page may also be a desktop page of the electronic device.

[0038] In some embodiments of the present application, the above-mentioned sliding input can be used to slide the first page.

[0039] In some embodiments of the present application, the sliding input may be a touch sliding input by the user on the first page, or an air sliding gesture input by the user on the first page. This embodiment of the present application does not specifically limit this.

[0040] It is understandable that when a user performs a sliding input on the first page, it is usually done by sliding the page. The sliding input of the user on the page usually includes three operations: click, slide, and lift. That is, the user can first click a certain position on the page, then slide from that position as the starting point, and after sliding to the desired position, lift the finger to end the sliding of the page.

[0041] It should be noted that the electronic device can determine the sliding information of the first page according to the input parameters of the user's sliding input. For example, the electronic device can determine the sliding information of the first page through input parameters such as the input direction of the user's sliding input, the input duration of the sliding input, the input position of the sliding input, and the sliding distance of the sliding input. Specifically, the electronic device can determine the input direction and sliding distance of the sliding input according to the starting position and ending position of the above-mentioned sliding input, and the electronic device can also determine the input duration of the sliding input according to the starting time and ending time of the above-mentioned sliding input.

[0042] In some embodiments of the present application, the above at least two controls can be any two controls among multiple controls in the first page.

[0043] In some embodiments of the present application, the shapes of the above at least two controls can be any possible shapes such as circular, rectangular, triangular, rhombic, circular ring or polygonal, etc., which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not make limitations.

[0044] In an embodiment of the present invention, the above control can be a floating control. Exemplarily, the first control can be floatingly displayed on the first page.

[0045] In an embodiment of the present invention, the above control can be superimposed and displayed in the first page with a preset transparency. For example, if the preset transparency is denoted as T1, then the value range of T1 can be 0% < T1 < 100%. In addition, the control can also be displayed on the first page with high brightness or low brightness. The present application does not make limitations on this. [[ID=!4]]

[0046] In some embodiments of the present application, the movement information of the above at least two controls can be the real sliding information of the at least two controls in the first page. That is to say, when the electronic device receives a sliding input from the user on the first page, it monitors the real movement information of at least two controls in the first page

[0047] In some embodiments of the present application, the movement information of the above at least two controls can be the position difference information of at least two controls in the first page.

[0048] It can be understood that since the sliding engines used for page sliding by electronic devices are becoming more and more diverse, the interface of the native sliding engine of the electronic device cannot obtain the real sliding information of the page. That is to say, after the electronic device receives a sliding input from the user on the first page, it can control the first page to slide through the sliding engine used by the page. However, through the native sliding engine, the electronic device can only obtain the sliding information corresponding to the sliding parameters of the user's sliding input, and cannot obtain the sliding information of the real sliding of the first page.

[0049] For example, let's assume that the first page is a shopping page in a shopping application, and the sliding method indicated by the sliding engine used by the shopping application is that after the user's finger leaves the page displayed on the electronic device screen, the page continues to slide by inertia. When the user wants to slide the shopping page down to view the content of the next page of the currently displayed shopping page, the user can slide the shopping page down. After the electronic device receives the user's sliding input, it controls the shopping page to slide according to the sliding information determined by the input parameters of the sliding input, and after the user's finger leaves the shopping page, the shopping page slides by inertia. At this time, during the inertial sliding of the shopping page, the electronic device cannot determine that the page is still sliding through the native sliding engine, resulting in the electronic device being unable to collect the sliding information of the first page, thereby resulting in the electronic device being unable to process the sliding process of the first page, and further resulting in a poor sliding effect of the first page.

[0050] In some embodiments of the present application, after receiving a sliding input from the user on the first page, the electronic device may monitor position changes of controls in the first page to obtain motion information of at least two controls in the first page.

[0051] Step 102: When the motion information of at least two controls matches, the electronic device obtains sliding information of the first page based on the motion information of the at least two controls.

[0052] In some embodiments of the present application, the matching of the motion information of the at least two controls mentioned above may mean that the information difference between the motion information of the at least two controls on the first page is less than or equal to a predetermined threshold. That is, at least two controls on the first page are sliding in the same direction, the same distance, and the same speed. Therefore, the electronic device can determine that the first page is sliding with the same motion information as the at least two controls. In this way, the electronic device can obtain the sliding information of the first page based on the motion information of the at least two controls.

[0053] In some embodiments of the present application, the above-mentioned predetermined threshold value may be a default value of the electronic device or may be set by the user, which is not specifically limited in the embodiments of the present application.

[0054] It should be noted that a page displayed on an electronic device screen typically contains multiple controls. As shown in Figure 2, a page may contain a first-level control, which may contain multiple second-level controls. Each second-level control may contain multiple third-level controls, and so on, resulting in multiple controls of different levels contained in the page. In this way, during the page scrolling process, the electronic device can obtain the scrolling information of the entire page by obtaining the motion information of at least two controls on the page.

[0055] Exemplarily, the electronic device may determine that the first page has slid upward by 8 units when the motion information of at least two controls on the first page both indicates that the first page has slid upward by 8 units.

[0056] It is understandable that, when the electronic device obtains the sliding information of the first page, the electronic device can accurately process the sliding process of the first page, thereby controlling the sliding of the first page with a better sliding effect.

[0057] For example, after determining the sliding information of the first page, the electronic device can control the sliding of the first page based on the actual sliding information, and perform frame addition and frequency increase on the sliding process of the first page to obtain a better sliding effect of the first page.

[0058] In some embodiments of the present application, the electronic device may determine that a control on the first page is sliding, while the first page is not sliding, when the difference in actual sliding information between at least two controls is greater than a first threshold. Therefore, the electronic device may not process the first page. In other words, the electronic device does not control the first page to slide.

[0059] The information acquisition method provided by the embodiments of the present application can accurately obtain the actual page sliding information during the user interaction process based on the motion information of at least two controls on the page. This allows accurate acquisition of page sliding information through the controls on the page, regardless of the type of sliding engine controlling the page sliding. This improves the efficiency and accuracy of collecting page sliding information.

[0060] In some embodiments of the present application, the at least two controls may include a first control and a second control.

[0061] In some embodiments of the present application, in combination with FIG. 1 , as shown in FIG. 3 , the above-mentioned step 101 may include the following steps 101a and 101b.

[0062] Step 101a: When the electronic device receives a sliding input from the user on the first page, it monitors the position change information between the position information of the first control in the first page of the i-1th frame and the first position information of the first control in the first page of the i-th frame, and uses the monitored first position change information as the first motion information of the first control in the first page.

[0063] Here, i is an integer greater than 1.

[0064] Step 101b: When the electronic device receives a sliding input from the user on the first page, it monitors the position change information between the position information of the second control in the first page of the i-1th frame and the second position information of the second control in the first page of the i-th frame, and uses the monitored second position change information as the second motion information of the second control in the first page.

[0065] In some embodiments of the present application, the first control may be any control on the first page.

[0066] In some embodiments of the present application, the second control may be any control on the first page except the first control.

[0067] In some embodiments of the present application, the i-th frame may be the current moment in the sliding process of the first page. It is understandable that the i-1-th frame may be the moment before the current moment in the sliding process of the first page.

[0068] In some embodiments of the present application, the above-mentioned position information may be information about the display position of the control in the first page.

[0069] Exemplarily, the position information may be coordinate information of the control in the first page.

[0070] In some embodiments of the present application, the first position change information may indicate motion information of the first control between two adjacent frames, namely the (i-1)th frame and the (i)th frame.

[0071] In some embodiments of the present application, the second position change information may indicate motion information of the second control between two adjacent frames, namely the (i-1)th frame and the (i)th frame.

[0072] For example, taking the position information of a control as the coordinate information of the control, the first position change signal may indicate the coordinate change information of the first control in the current frame relative to the previous frame; and the second position change signal may indicate the coordinate change information of the second control in the current frame relative to the previous frame.

[0073] It is understandable that, when the first position change information matches the second position change information, it indicates that the first page has slid, and the page content of the first page in the (i-1)th frame is not completely the same as the page content of the first page in the (i)th frame. When the first position change information does not match the second position change information, it indicates that the first page has not slid, and the page content of the first page in the (i-1)th frame is the same as the page content of the first page in the (i)th frame.

[0074] In this way, the electronic device can accurately obtain actual sliding information of the control on the page based on the position change information of the control on the page between two adjacent frames, thereby improving the accuracy of identifying the sliding information of the page.

[0075] In some embodiments of the present application, before the above step 101a, the information acquisition method provided by the embodiment of the present application may further include the following step A; before the above step 101b, the information acquisition method provided by the embodiment of the present application may further include the following step B.

[0076] Step A: The electronic device monitors the difference between the position information of the first vertex of the first control in the first page of the (i-1)th frame and the position information of the first vertex of the first control in the first page of the i-th frame to obtain first position change information.

[0077] Step B: The electronic device monitors the difference between the position information of the second vertex of the second control in the first page of the (i-1)th frame and the position information of the second vertex of the second control in the first page of the (i)th frame to obtain first position change information.

[0078] In some embodiments of the present application, the first vertex of the first control may be at least one vertex of the first control.

[0079] In some embodiments of the present application, the second vertex of the second control may be at least one vertex of the second control.

[0080] In some embodiments of the present application, the electronic device may determine the position change information of the control by monitoring the difference between the position information of the same vertex of the control between two adjacent frames.

[0081] For example, take the position information of the vertex as the coordinate information of the vertex. Assuming that the coordinate information of the upper left corner vertex of the first control in the first page of the i-1 frame is (1, 2), and the coordinate information of the upper left corner vertex of the first control in the first page of the i-1 frame is (2, 2), then the electronic device can determine that the first position change information of the first control is a position that is translated one unit to the right. Assuming that the coordinate information of the upper right corner vertex of the second control in the first page of the i-1 frame is (5, 6), and the coordinate information of the upper right corner vertex of the second control in the first page of the i-1 frame is (6, 6), then the electronic device can determine that the second position change information of the second control is also a position that is translated one unit to the right.

[0082] In this way, since the electronic device can accurately calculate the position change information of the control based on the difference between the position information of the same vertex of the control in two adjacent frames, the accuracy of identifying the sliding information of the page can be improved.

[0083] In some embodiments of the present application, in combination with FIG. 1 , as shown in FIG. 4 , the above-mentioned step 102 may include the following step 102a.

[0084] Step 102a: When the difference in motion displacement of at least two controls is less than a first threshold and the motion directions are the same, the electronic device obtains sliding information of the first page based on the motion information of the at least two controls.

[0085] In some embodiments of the present application, the movement displacement of the above-mentioned control may indicate the movement distance of the control.

[0086] In some embodiments of the present application, the motion displacement of the above-mentioned control may include but is not limited to: displacement of the center point of the control, and displacement of at least one vertex of the control.

[0087] In some embodiments of the present application, the difference in motion displacement of the at least two controls is less than a first threshold value, and the same motion direction can indicate that: the motion displacement of the at least two controls is small or the same, and the motion direction and motion distance of the at least two controls in the first page are consistent, so that the electronic device can determine that the first page is sliding, and the electronic device can obtain the sliding information of the first page based on the motion information of the at least two controls.

[0088] In some embodiments of the present application, the first threshold may be a default value of the electronic device or may be set by the user, which is not specifically limited in the embodiments of the present application.

[0089] It should be noted that for a detailed description of how the electronic device obtains the sliding information of the first page based on the motion information of at least two controls, please refer to the relevant descriptions in the above steps 101a and 101b. To avoid repetition, they will not be described here.

[0090] In this way, since the electronic device can determine that the first page is sliding in accordance with the motion information of at least two controls in the first page when the difference in motion displacement of the at least two controls in the first page is less than the first threshold value and the motion directions are the same, the electronic device can obtain the sliding information of the first page based on the motion information of the at least two controls, thereby improving the accuracy of the electronic device in obtaining the sliding information of the page.

[0091] In some embodiments of the present application, the "obtaining sliding information of the first page based on motion information of at least two controls" in the above step 102 may include the following step a.

[0092] Step a: The electronic device uses the motion information of the first control or the motion information of the second control as the sliding information of the first page.

[0093] In some embodiments of the present application, the sliding information of the first page may be sliding information of an actual sliding performed on the first page, determined by the electronic device based on at least two controls in the first page.

[0094] In some embodiments of the present application, the sliding information of the first page may include but is not limited to: the actual sliding direction of the first page, the actual sliding speed of the first page, and the actual sliding distance of the first page.

[0095] In some embodiments of the present application, since the motion information of the first control matches the motion information of the second control, the electronic device can determine that the first page is sliding. In this way, the electronic device can use the motion information of the first control or the motion information of the second control as the sliding information of the first page of the i-th frame.

[0096] In some embodiments of the present application, after obtaining the sliding information of the first page of the i-th frame, the electronic device can increase the frequency or perform frame supplement processing on the sliding process of the first page of the i-th frame to obtain a better sliding effect.

[0097] In this way, since the electronic device can directly use the motion information of one of the at least two controls as the sliding information of the first page when there is a match in the motion information of at least two controls on the first page, the sliding information of the page can be obtained conveniently and accurately, thereby improving the efficiency and accuracy of collecting the page sliding information.

[0098] In some embodiments of the present application, after the above step 102, the information acquisition method provided by the embodiment of the present application may further include the following steps 105 and 106.

[0099] Step 105: During the sliding input process, the electronic device continuously obtains motion information of at least two controls.

[0100] Step 106: When at least two controls stop moving, the electronic device stops acquiring the sliding information of the first page.

[0101] In some embodiments of the present application, after receiving the user's sliding input, the electronic device may continue to obtain motion information of at least two controls in the first page until the at least two controls stop moving, and the electronic device may stop obtaining the sliding information of the first page.

[0102] It is understandable that when at least two controls in the first page stop moving, the electronic device can confirm that the first page stops sliding, and thus the electronic device can stop obtaining the sliding information of the first page.

[0103] In some embodiments of the present application, the electronic device may stop monitoring the sliding information of the at least two controls when the at least two controls stop sliding, so as to save resources of the electronic device.

[0104] In this way, the electronic device can continuously obtain motion information of at least two controls on the page, and when the at least two controls stop sliding, promptly stop obtaining sliding information of the first page, thereby saving resources of the electronic device.

[0105] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.

[0106] The following is an illustrative example of the information acquisition method provided in the embodiments of the present application.

[0107] As shown in FIG. 5 , the information acquisition method may include the following steps 201 to 204 .

[0108] Step 201: Upon receiving a sliding input from a user on a first page, the electronic device monitors motion information of at least two controls on the first page.

[0109] Step 202: The electronic device determines displacement information of at least two controls based on motion information of the at least two controls.

[0110] Step 203: When the displacement information and movement directions of at least two controls are consistent, the electronic device obtains the sliding information of the first page.

[0111] Step 204: When the displacement information and movement directions of at least two controls are inconsistent, the electronic device determines that the first page has not been slid.

[0112] In this way, after the page is slid according to the user's sliding input, the actual sliding information of the page controls can be accurately obtained during the user interaction. In this way, the sliding process of the page can be processed based on the actual sliding information of the page, avoiding the occurrence of page freezes during the sliding process, thereby improving the sliding effect of the page.

[0113] The information acquisition method provided in the embodiment of the present application can be executed by an information acquisition device. In the embodiment of the present application, the information acquisition device provided in the embodiment of the present application is described by taking the information acquisition method executed by the information acquisition device as an example.

[0114] FIG6 shows a possible structural diagram of an information acquisition device involved in an embodiment of the present application. As shown in FIG6 , the information acquisition device 60 may include: a receiving module 62 , a monitoring module 61 and an acquisition module 63 .

[0115] Among them, the monitoring module 61 is used to monitor the motion information of at least two controls in the first page when the receiving module 62 receives the user's sliding input on the first page; the acquisition module 63 is used to obtain the sliding information of the first page based on the motion information of at least two controls when the motion information of at least two controls monitored by the monitoring module 61 matches.

[0116] In a possible implementation, the at least two controls include a first control and a second control;

[0117] The monitoring module 61 is specifically used to:

[0118] Monitor position change information between position information of the first control in the first page of the (i-1)th frame and first position information of the first control in the first page of the (i)th frame, and use the monitored first position change information as first motion information of the first control in the first page;

[0119] Monitor position change information between position information of the second control in the first page of the (i-1)th frame and second position information of the second control in the first page of the (i)th frame, and use the monitored second position change information as second motion information of the second control in the first page;

[0120] Here, i is an integer greater than 1.

[0121] In a possible implementation, the acquisition module 63 is specifically configured to acquire the sliding information of the first page based on the motion information of the at least two controls when the motion displacement difference of the at least two controls is less than a first threshold and the motion directions are the same.

[0122] In a possible implementation, the at least two controls include a first control and a second control;

[0123] The acquisition module 63 is specifically configured to use the motion information of the first control or the motion information of the second control as the sliding information of the first page.

[0124] In one possible implementation, the acquisition module 63 is further used to, after acquiring the sliding information of the first page based on the motion information of at least two controls, continuously acquire the motion information of at least two controls during the sliding input process; and, to stop acquiring the sliding information of the first page when at least two controls stop moving.

[0125] The present application provides an information acquisition device that, when a user slides a page, can accurately acquire the actual page sliding information during the user interaction based on the motion information of at least two controls on the page. This allows accurate acquisition of page sliding information through the controls on the page, regardless of the type of sliding engine controlling the page sliding. This improves the efficiency and accuracy of collecting page sliding information.

[0126] The information acquisition device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0127] The information acquisition device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0128] The information acquisition device provided in the embodiment of the present application can implement the various processes implemented in the above-mentioned information acquisition method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.

[0129] Optionally, as shown in Figure 7, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be run on the processor 701. When the program or instruction is executed by the processor 701, the various steps of the above-mentioned information acquisition method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0130] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0131] FIG8 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0132] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .

[0133] Those skilled in the art will appreciate that the electronic device 1000 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 1010 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG8 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0134] Among them, the processor 1010 is used to monitor the motion information of at least two controls within the first page when the user input unit 1007 receives a sliding input from the user on the first page; and to obtain the sliding information of the first page based on the motion information of at least two controls when the motion information of at least two controls matches.

[0135] In a possible implementation, the at least two controls include a first control and a second control;

[0136] The processor 1010 is specifically configured to:

[0137] Monitor position change information between position information of the first control in the first page of the (i-1)th frame and first position information of the first control in the first page of the (i)th frame, and use the monitored first position change information as first motion information of the first control in the first page;

[0138] Monitor position change information between position information of the second control in the first page of the (i-1)th frame and second position information of the second control in the first page of the (i)th frame, and use the monitored second position change information as second motion information of the second control in the first page;

[0139] Here, i is an integer greater than 1.

[0140] In a possible implementation, the processor 1010 is specifically configured to obtain sliding information of the first page based on motion information of the at least two controls when a difference in motion displacement of the at least two controls is less than a first threshold and the motion directions are the same.

[0141] In a possible implementation, the at least two controls include a first control and a second control;

[0142] The processor 1010 is specifically configured to use the motion information of the first control or the motion information of the second control as the sliding information of the first page.

[0143] In one possible implementation, the processor 1010 is further configured to, after obtaining the sliding information of the first page based on the motion information of at least two controls, continuously obtain the motion information of at least two controls during the sliding input process; and, to stop obtaining the sliding information of the first page when at least two controls stop moving.

[0144] An embodiment of the present application provides an electronic device that, when a user slides a page, can accurately obtain actual page sliding information during the user interaction based on the motion information of at least two controls on the page. This allows accurate acquisition of page sliding information through the controls on the page, regardless of the type of sliding engine controlling the page sliding. This improves the efficiency and accuracy of collecting page sliding information.

[0145] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0146] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0147] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.

[0148] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information acquisition method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0149] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0150] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information acquisition method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0151] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0152] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information acquisition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0153] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0155] 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 this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for obtaining information, wherein: The method comprises: Upon receiving a sliding input from a user on a first page, monitoring motion information of at least two controls on the first page; In a case where the motion information of the at least two controls matches, the sliding information of the first page is acquired based on the motion information of the at least two controls.

2. The method according to claim 1, wherein the at least two controls include a first control and a second control; The monitoring of motion information of at least two controls in the first page includes: monitoring first position change information between position information of the first control in the first page in the (i-1)th frame and position information of the first control in the first page in the (i)th frame, and using the monitored first position change information as first motion information of the first control in the first page; monitoring second position change information between position information of the second control in the first page in the (i-1)th frame and position information of the second control in the first page in the (i)th frame, and using the monitored second position change information as second motion information of the second control in the first page; Here, i is an integer greater than 1.

3. The method according to claim 1, wherein when the motion information of the at least two controls matches, obtaining the sliding information of the first page based on the motion information of the at least two controls comprises: When the difference in movement displacement between the at least two controls is smaller than a first threshold and the movement directions are the same, the sliding information of the first page is acquired based on the movement information of the at least two controls.

4. The method according to claim 1, wherein the at least two controls include a first control and a second control; The acquiring sliding information of the first page based on the motion information of the at least two controls includes: The motion information of the first control or the motion information of the second control is used as the sliding information of the first page.

5. The method according to any one of claims 1 to 4, after obtaining the sliding information of the first page based on the motion information of the at least two controls, the method further comprises: During the sliding input, continuously acquiring motion information of the at least two controls; When the at least two controls stop moving, the acquisition of the sliding information of the first page is stopped.

6. An information acquisition device, wherein: The device includes: a receiving module, a monitoring module and an acquiring module; The monitoring module is configured to monitor motion information of at least two controls on the first page when the receiving module receives a sliding input of the user on the first page; The acquisition module is configured to acquire the sliding information of the first page based on the motion information of the at least two controls monitored by the monitoring module when the motion information of the at least two controls matches.

7. The device according to claim 6, wherein the at least two controls include a first control and a second control; The monitoring module is specifically used to: monitoring first position change information between position information of the first control in the first page in the (i-1)th frame and position information of the first control in the first page in the (i)th frame, and using the monitored first position change information as first motion information of the first control in the first page; monitoring second position change information between position information of the second control in the first page in the (i-1)th frame and position information of the second control in the first page in the (i)th frame, and using the monitored second position change information as second motion information of the second control in the first page; in, i is an integer greater than 1.

8. The device according to claim 6, wherein the acquisition module is specifically configured to acquire the sliding information of the first page based on the motion information of the at least two controls when the difference in motion displacement of the at least two controls is less than a first threshold and the motion directions are the same.

9. The device according to claim 6, wherein the at least two controls include a first control and a second control; The acquisition module is specifically configured to use the motion information of the first control or the motion information of the second control as the sliding information of the first page.

10. The apparatus according to any one of claims 6 to 9, wherein the acquisition module is further configured to, after acquiring the sliding information of the first page based on the motion information of the at least two controls, continuously acquire the motion information of the at least two controls during the input process of the sliding input; The acquisition module is further configured to stop acquiring the sliding information of the first page when the at least two controls stop moving.

11. An electronic device, wherein: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the information acquisition method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, wherein: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the information acquisition method according to any one of claims 1 to 5 are implemented.

13. A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to execute a program or instruction to implement the steps of the information acquisition method according to any one of claims 1 to 5.

14. A computer program product, wherein the computer program product is stored in a non-volatile storage medium, and wherein the computer program product is executed by at least one processor to implement the steps of the information acquisition method according to any one of claims 1 to 5. 15 . An electronic device, configured to execute the steps of the information acquisition method according to claim 1 .

Citation Information

Patent Citations

  • Web page drop-down refresh display method, storage medium, electronic device and system

    CN109213479A

  • Page display method and device

    CN110647262A

  • Screenshot method and device

    CN116501226A

  • Information acquisition method and device, electronic equipment and medium

    CN118259811A