Information determination method and device and electronic equipment

By monitoring and updating the position information of interface controls, the motion information of the interface is determined, which solves the problem that the system cannot perceive the motion of the interface and improves the user experience.

CN121209751APending Publication Date: 2025-12-26VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511303744.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-12
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

The system is unable to effectively perceive motion information on the interface, resulting in a decline in user experience.

Method used

By monitoring the position of each control in the target interface, identifying the target control whose position changes, and updating the structure of the control according to its position information, the motion information of the target interface is finally determined.

Benefits of technology

It enables electronic devices to sense interface motion and adjust display parameters to improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121209751A_ABST
    Figure CN121209751A_ABST
Patent Text Reader

Abstract

The invention discloses an information determination method and device and electronic equipment, and belongs to the technical field of computer application. The method comprises the following steps: monitoring the position of each control in a target interface; when it is identified that a target control exists, a structural body corresponding to the target control is updated according to the position information of the target control, and the target control is the control with the position changed in all the controls; and determining motion information of the target interface according to the structural body corresponding to the target control.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computer application, and particularly relates to an information determination method and device and electronic equipment. BACKGROUND

[0002] With the continuous development of electronic equipment such as mobile phones, the functions and special effects of mobile phone applications are becoming more and more rich. In order to improve the user experience, many applications add various special effects to each interface, resulting in the fact that the system cannot perceive the motion information of the interface. SUMMARY

[0003] The embodiments of the present application provide an information determination method, device and electronic equipment, and can solve the problem that the system cannot perceive the motion information of the interface.

[0004] In a first aspect, the embodiments of the present application provide an information determination method, comprising:

[0005] monitoring positions of each control in a target interface;

[0006] updating a structure corresponding to a target control according to position information of the target control in a case where it is identified that the target control exists, the target control being a control with a changed position among the each control;

[0007] determining motion information of the target interface according to the structure corresponding to the target control.

[0008] In a second aspect, the embodiments of the present application provide an information determination device, comprising:

[0009] a monitoring module, configured to monitor positions of each control in a target interface;

[0010] a first processing module, configured to update a structure corresponding to a target control according to position information of the target control in a case where it is identified that the target control exists, the target control being a control with a changed position among the each control;

[0011] a second processing module, configured to determine motion information of the target interface according to the structure corresponding to the target control.

[0012] In a third aspect, the embodiments of the present application provide an electronic equipment, which comprises a processor and a memory, the memory stores programs or instructions that can be run on the processor, and the programs or instructions are executed by the processor to realize the steps of the method according to the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, the readable storage medium storing a program or instructions, the program or instructions being executed by a processor to implement steps of the method according to the first aspect.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run a program or instructions to implement the method according to the first aspect.

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

[0016] The method according to the embodiment of the present application can monitor the positions of the controls of the target interface, identify the target control whose position changes, then update the structure of the target control according to the position information of the target control, and finally determine the motion information of the target interface through the structure of the target control, so as to realize the perception of the interface motion by the electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 is a flowchart of the method according to the embodiment of the present application;

[0018] Figure 2 is a schematic diagram of a target interface according to the embodiment of the present application;

[0019] Figure 3 is a hierarchical diagram of a control according to the embodiment of the present application;

[0020] Figure 4 is a schematic diagram of a difference area according to the embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an application of the method according to the embodiment of the present application;

[0022] Figure 6 is a structural diagram of an apparatus according to the embodiment of the present application;

[0023] Figure 7 is a structural diagram of an electronic device according to the embodiment of the present application;

[0024] Figure 8 is a structural diagram of a terminal according to the embodiment of the present application. DETAILED DESCRIPTION

[0025] With reference to the drawings, the technical solutions in the embodiments of the present application will be clearly described below. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.

[0026] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in a "or" relationship.

[0027] The information determination method provided by the embodiments of the present application will be described in detail below with reference to the drawings, through specific embodiments and application scenarios.

[0028] The information determination method of the embodiments of the present application comprises:

[0029] Step 101, monitoring the positions of each control in the target interface.

[0030] The target interface can be a display interface of any application program or a display interface of a specific application program set in advance, or a system-level interface such as a desktop interface. There is a root control, that is, a first-level control, in the target interface. Correspondingly, the interface also includes second-level controls, third-level controls, and the like, the second-level controls are sub-controls of the first-level controls, the third-level controls are sub-controls of the second-level controls, and so on, such as Figure 2 (green box is a second-level control) and Figure 3 As shown in the figure. In this step, the positions of each control in the target interface are monitored, which can be used to identify the controls whose positions change.

[0031] Step 102, in the case where it is identified that there is a target control, updating a structure corresponding to the target control according to position information of the target control, the target control being a control whose position changes among the controls.

[0032] The identification of the target control is based on the monitoring result of step 101.

[0033] In the present application, each control is provided with a corresponding structure, and the structure is used to record the position of the control.

[0034] In this step, in the case where it is identified that the target control exists, the structure of the target control can be updated only according to the latest position information of the target control, or the structure of the target control can be updated according to the original position information and the latest position information of the target control, so that the structure of the target control can be used for determination of subsequent motion information.

[0035] In step 103, motion information of the target interface is determined according to the structure corresponding to the target control.

[0036] That is, in this step, according to the structure corresponding to the target control obtained in step 102, the motion information of the target interface can be further determined.

[0037] In this way, the electronic device applying the information determination method of the embodiments of the present application can monitor the positions of the controls of the target interface according to steps 101-103, identify the target control whose position changes, then update the structure of the target control according to the position information of the target control, and finally determine the motion information of the target interface through the structure of the target control, so as to realize the perception of the interface motion of the electronic device.

[0038] Optionally, in this embodiment, one control corresponds to one structure, and the structure includes at least one of the following:

[0039] a position matrix, the position matrix being used to represent the position of the control;

[0040] a change matrix, the change matrix being used to represent the position change of the control between a first frame and a second frame;

[0041] a matrix list, the matrix list being used to store the change matrix of a sub-control of the control;

[0042] a difference area, the difference area being used to represent the area difference of the control between the first frame and the second frame;

[0043] wherein the first frame and the second frame are adjacent frames of the target interface.

[0044] Here, the control is any control in all controls of the target interface. Therefore, it can be understood that in the embodiments of the present application, a corresponding structure is set for each control of the target interface, and the structure is used to store variables 1-4 of the control, variable 1 is a position matrix, variable 2 is a change matrix, variable 3 is a matrix list, and variable 4 is a difference area.

[0045] wherein the sub-control of the first control can be multiple, for example, as shown in Figure 3As shown, the first-level control includes three second-level controls, and the second-level controls are sub-controls of the first-level control. If the first-level control is a first control, the matrix list of the first control includes the change matrices of the corresponding three second-level controls.

[0046] The adjacent frames of pictures can be understood as two frames of images displayed by the display in two continuous refreshes. The first frame of picture is a picture displayed one frame before the second frame of picture, or the first frame of picture is a picture displayed one frame after the second frame of picture.

[0047] Optionally, in the embodiment, the structure includes a position matrix, and the updating of the structure corresponding to the target control according to the position information of the target control includes:

[0048] The position matrix in the structure corresponding to the target control is updated according to the latest position of the feature point of the target control; or

[0049] The structure includes a change matrix, and the updating of the structure corresponding to the target control according to the position information of the target control includes:

[0050] The change matrix in the structure corresponding to the target control is updated according to the position matrix of the target control in the first frame of picture and the position matrix of the target control in the second frame of picture; or

[0051] The structure includes a difference area, and the updating of the structure corresponding to the target control according to the position information of the target control includes:

[0052] The difference area in the structure corresponding to the target control is updated according to the position matrix of the target control in the first frame of picture and the position matrix of the target control in the second frame of picture. In the embodiment of the application, the latest position of the feature point of the target control is the position of the feature point of the target control monitored at the current time.

[0053] In an implementation manner, the feature point is set as a vertex of the control, and a position matrix is generated by identifying the positions of the vertices of the control in the target interface. Correspondingly, the updating of the position matrix in the structure corresponding to the target control according to the latest position of the feature point of the target control includes:

[0054] The position of the vertex of the target control monitored at the current time is acquired;

[0055] The position matrix in the structure corresponding to the target control is updated according to the acquired position.

[0056] Of course, the feature point can also be set as other position points of the control, such as a shape center point.

[0057] In the embodiment of the present application, the position matrix of the target control in the first frame picture is updated according to the position of the feature point of the target control monitored at the first time, and the first time is the display time of the first frame picture.

[0058] The position matrix of the target control in the second frame picture is updated according to the position of the feature point of the target control monitored at the second time, and the second time is the display time of the second frame picture.

[0059] Optionally, the updating of the change matrix in the structure corresponding to the target control according to the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture can be achieved by obtaining the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture, and further updating the change matrix in combination with the target feature point of the target control.

[0060] In an embodiment, the target feature point is set as the upper, lower, left and right four vertices of the target control, and the deviation is calculated to obtain a new matrix according to the upper, lower, left and right vertices of the position matrix of the target control in the previous and next two frames, and then the change matrix is updated according to the new matrix. Of course, the target feature point can be part or all of the feature points used in the position matrix.

[0061] In the embodiment of the present application, the updating of the difference area in the structure corresponding to the target control according to the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture comprises:

[0062] In the case that the change matrix of the target control is not empty, the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture are obtained.

[0063] The union of the picture areas corresponding to the first position matrix and the second position matrix is taken as the difference area, the first position matrix is the position matrix of the target control in the first frame picture, and the second position matrix is the position matrix of the target control in the second frame picture.

[0064] The change matrix of the target control is not empty, that is, the structure variable 2 of the target control is not empty. The position matrix of the target control in the first frame picture and the second frame picture can be realized in the above-mentioned manner. After obtaining the position matrix of the target control in the two continuous frame pictures, the union of the picture areas corresponding to the two position matrices is taken to obtain the difference area of the target control, as shown in Figure 4 .

[0065] Optionally, in this embodiment, the motion information includes but is not limited to motion state, sliding speed information and motion area information.

[0066] The motion state can indicate that the target interface slides, or even indicates a specific sliding direction. Alternatively, the motion state can indicate that the target interface moves irregularly, such as in a display animation. The sliding speed information can be related information of the sliding speed of the target interface. The motion area information can be the area difference before and after the target interface slides.

[0067] Optionally, in this embodiment, the motion information of the target interface is determined according to the structure corresponding to the target control, including:

[0068] In a case where the structure corresponding to the target control indicates that the number of controls in the target control moving towards the first direction is greater than or equal to the first number, the motion state in the motion information of the target interface is determined to be sliding towards the first direction.

[0069] In a case where the structure corresponding to the target control indicates that the number of controls in the target control moving towards the same direction is less than the first number, the motion state in the motion information of the target interface is determined to be irregular motion.

[0070] Here, the motion information of the target interface is obtained by analyzing the structure of the target control of the target interface. The first number can be set based on the total number of controls in the target interface. When more than the first number of target controls in the target interface move towards the first direction, it is determined that the target interface slides towards the first direction, and the motion state in the motion information is determined to be sliding towards the first direction.

[0071] The change matrix of the structure can be used to determine whether the target control moves towards the first direction. Of course, the first direction can be any direction, such as the long side direction or the short side direction of the display screen.

[0072] In an embodiment, the number of all controls in the interface is N, for example, 10, the number of recognized target controls is M, for example, 8, M is less than or equal to N, M is an integer, and the first number is set to 6. That is, if 7 of the 8 target controls move towards the first direction, it is determined that the motion state in the motion information of the target interface is sliding towards the first direction.

[0073] In an embodiment, the value of the first number is set to 80% of the total number of controls in the target interface. When more than 80% of the controls have a non-empty variable 2 and all indicate movement towards the first direction, the motion state is sliding towards the first direction, such as downward sliding.

[0074] In an embodiment, the number of all the controls in the interface is N, for example, 10, the number of the identified target controls is M, for example, 8, M is less than or equal to N, M is an integer, the first number is set to 6, that is, if the number of the target controls moving towards the same direction among the 8 target controls is less than 6, for example, 4, it is determined that the motion state in the motion information of the target interface is irregular motion.

[0075] In an embodiment, the value of the first number is set to 80% of the total number of the controls in the target interface, when there is no variable 2 of more than 80% of the controls being not empty and all indicating moving towards the same direction, that is, the motion state is irregular motion. That is, no matter which direction the target controls move towards, the number of the target controls moving towards the same direction is less than 80% of the total number of the controls, and the motion state is irregular motion.

[0076] In another embodiment, when it is determined that the motion state is sliding towards the first direction, or the motion state is irregular motion, and the variable 2 of the 80% of the controls is empty (for example, the change of the four vertices of the controls in the two continuous frames of pictures is 0), the motion (sliding or animation) stops. Of course, according to the change matrix of the target controls, the motion (sliding or animation) can also start. Therefore, the motion information includes motion stop and motion start.

[0077] Irregular motion can indicate that the interface is displaying an animation, etc.

[0078] Optionally, in this embodiment, the determining the motion information of the target interface according to the structure corresponding to the target controls comprises:

[0079] When the motion state of the target interface is sliding towards the same direction, the displacement information of the sliding is determined according to the change matrix of the target controls;

[0080] The sliding speed information in the motion information is determined according to the displacement information and the time interval of the first frame of picture and the second frame of picture.

[0081] For the target interface sliding towards the same direction, the displacement information of the sliding is calculated from the change matrix of the target controls, and further combined with the time interval of the two frames of pictures corresponding to the change matrix, the sliding speed information can be determined.

[0082] In an embodiment, the average value of the displacement of all the target controls is calculated from the displacement values of the up, down, left and right vertices indicated by the change matrix of each target control, to obtain the displacement information of the sliding; and then the sliding speed is obtained from the speed formula v=s / t according to the displacement information (s) and the time interval (t) of the two frames of pictures corresponding to the change matrix.

[0083] The sliding speed information includes but is not limited to the sliding speed, and can also include the sliding direction, etc.

[0084] Optionally, the determining the motion information of the target interface according to the structure corresponding to the target control comprises:

[0085] obtaining a difference area of the root control;

[0086] taking the difference area of the root control as motion area information in the motion information.

[0087] That is, the motion area information in the motion information is the difference area of the root control at the bottom layer.

[0088] In an embodiment, a variable 4 of the root control structure is taken to obtain the motion area information in the motion information.

[0089] In addition, in this embodiment, the motion information can be obtained by listening to a target interface using a fixed interface of a system. The fixed interface can be a scroller engine or a scrollTo interface. The listening to the fixed interface is applicable to a simple interface, such as an interface implemented in a native mode.

[0090] Optionally, the method further comprises:

[0091] adjusting a display parameter of the target interface according to the motion information.

[0092] The display parameter includes but is not limited to a frame rate, a CPU frequency, and a GPU frequency.

[0093] In an embodiment, when a sliding or animation state is determined to be changed (start or end), the following operations are performed:

[0094] a) increasing a frame rate, such as determining to slide in a certain direction, when the sliding speed increases, the frame rate is increased to 90 Hz or above; when the sliding speed decreases, the frame rate is gradually reduced to 60 Hz until the sliding stops, and is completely reduced to 60 Hz, so that high frames are matched during fast sliding, and low frames are matched during slow sliding;

[0095] b) increasing CPU and GPU frequencies, such as determining to slide in a certain direction or that the target interface is displaying an animation, when the sliding or animation starts, more resource consumption is required, the CPU and GPU frequencies can be increased to reduce the drawing time of each frame to avoid frame dropping, and when the sliding or animation ends, the default state is restored to reduce unnecessary resource consumption.

[0096] In another embodiment, the frame rate is reduced according to the motion area information. For example, when the motion area information is less than 20% of the entire interface, the frame rate is reduced to 40Hz, and the resource consumption is further reduced; when the motion area information is greater than 20% of the entire interface, the default frame rate (60Hz) is restored to avoid screen freezing.

[0097] The application is described below in combination with Figure 5 the application.

[0098] First, it is determined whether the target interface is an interface realized in a native manner. If yes, the motion information is directly obtained by monitoring a fixed interface. If no, the positions of the controls in the target interface are monitored, the structure corresponding to the target control (variables 1-4) is updated, and then the motion information is determined according to the structure corresponding to the target control. After that, the frame rate and the CPU and GPU frequencies are adjusted according to the motion information.

[0099] In summary, the electronic device applying the method of the application can monitor the positions of the controls of the target interface, thereby identifying the target control based on the monitoring and updating the structure corresponding to the target control, so as to determine the motion information of the target interface according to the updated structure, and realize the perception of the motion of the application interface by the electronic device. After the motion information is obtained, the electronic device can adjust the display parameters to achieve better display effect.

[0100] The information determination method provided in the application embodiment can be executed by an information determination device. In the application embodiment, the information determination method executed by the information determination device is taken as an example to illustrate the information determination device provided in the application embodiment.

[0101] As shown in Figure 6 , the application embodiment provides an information determination device 600, which includes:

[0102] The monitoring module 610 is configured to monitor the positions of the controls in the target interface.

[0103] The first processing module 620 is configured to, in a case where it is identified that the target control exists, update the structure corresponding to the target control according to the position information of the target control, the target control being a control whose position changes among the controls.

[0104] The second processing module 630 is configured to determine the motion information of the target interface according to the structure corresponding to the target control.

[0105] Optionally, one control corresponds to one structure, and the structure includes at least one of the following:

[0106] a position matrix, the position matrix being used to represent the position of the control.

[0107] a change matrix, the change matrix being used to represent a position change of the control between the first frame picture and the second frame picture;

[0108] a matrix list, the matrix list being used to store change matrices of sub-controls of the control;

[0109] a difference area, the difference area being used to represent an area difference of the control between the first frame picture and the second frame picture;

[0110] wherein the first frame picture and the second frame picture are adjacent frame pictures of the target interface.

[0111] Optionally, the structure includes a position matrix, and the first processing module is specifically configured to:

[0112] update the position matrix in the structure corresponding to the target control according to the latest position of the feature point of the target control; or

[0113] the structure includes a change matrix, and the first processing module is specifically configured to:

[0114] update the change matrix in the structure corresponding to the target control according to the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture; or

[0115] the structure includes a difference area, and the first processing module is specifically configured to:

[0116] update the difference area in the structure corresponding to the target control according to the position matrix of the target control in the first frame picture and the position matrix of the target control in the second frame picture.

[0117] Optionally, the second processing module is specifically configured to:

[0118] in a case where the structure corresponding to the target control indicates that the number of controls in the target control moving towards a first direction is greater than or equal to a first number, determine that the motion state in the motion information of the target interface is a sliding towards the first direction;

[0119] in a case where the structure corresponding to the target control indicates that the number of controls in the target control moving towards the same direction is less than the first number, determine that the motion state in the motion information of the target interface is irregular motion.

[0120] Optionally, the apparatus further includes:

[0121] an adjusting module, configured to adjust a display parameter of the target interface according to the motion information.

[0122] Optionally, the second processing module is specifically configured to:

[0123] when the motion state of the target interface is sliding in the same direction, determining sliding displacement information according to a change matrix of the target control;

[0124] determining sliding speed information in the motion information according to the displacement information and a time interval between the first frame and the second frame.

[0125] Optionally, the second processing module is specifically configured to:

[0126] obtaining a difference area of the root control;

[0127] taking the difference area of the root control as motion area information in the motion information.

[0128] Optionally, the device further comprises:

[0129] an adjusting module configured to adjust a display parameter of the target interface according to the motion information.

[0130] The device of the embodiments of the present application can monitor the positions of each control of a target interface, identify a target control whose position changes, then update a structure of the target control according to position information of the target control, and finally determine motion information of the target interface through the structure of the target control, so as to realize the perception of interface motion by an electronic device. After the motion information is obtained, the display parameter can be adjusted to achieve a better display effect.

[0131] The information determination apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted 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, a personal digital assistant (PDA), or the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, a self-service machine, or the like. The embodiments of the present application are not limited in this regard.

[0132] The information determination apparatus in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating system. The embodiments of the present application are not limited in this regard.

[0133] The information determination apparatus provided in the embodiments of the present application can achieve the following advantages. Figures 1-5 The processes implemented by the method embodiments are not repeated here to avoid repetition.

[0134] Optionally, as shown in Figure 7 The embodiments of the present application also provide an electronic device 700, which includes a processor 701 and a memory 702. The memory 702 stores programs or instructions that can be run on the processor 701. When the programs or instructions are executed by the processor 701, the programs or instructions implement each step of the information determination method embodiments described above and achieve the same technical effects. To avoid repetition, the steps are not repeated here.

[0135] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0136] Figure 8 To implement the hardware structure of an electronic device according to an embodiment of the present application.

[0137] The electronic device 800 includes, but is not limited to, components such as: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.

[0138] Those skilled in the art will understand that the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 810 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0139] The processor 810 is used to monitor the position of each control in the target interface;

[0140] If a target control is detected, the structure corresponding to the target control is updated according to the position information of the target control. The target control is the control whose position has changed among the various controls.

[0141] The motion information of the target interface is determined based on the structure corresponding to the target control.

[0142] Optionally, one control corresponds to one structure, and the structure includes at least one of the following:

[0143] A position matrix, which is used to represent the position of the control;

[0144] A change matrix, which is used to represent the positional changes of the control in the first frame and the second frame;

[0145] A matrix list, which is used to store the change matrices of the sub-controls of the control;

[0146] The difference area is used to represent the area difference of the control in the first frame and the second frame.

[0147] The first frame and the second frame are adjacent frames of the target interface.

[0148] Optionally, the structure includes a position matrix, and the processor 810 is further configured to:

[0149] Update the position matrix in the structure corresponding to the target control based on the latest position of the feature points of the target control.

[0150] Optionally, the structure includes a transformation matrix, and the processor 810 is further configured to:

[0151] Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the change matrix in the structure corresponding to the target control.

[0152] Optionally, the structure includes a differential area, and the processor 810 is further configured to:

[0153] Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the difference area in the structure corresponding to the target control.

[0154] Optionally, the processor 810 is further configured to: obtain the position matrix of the target control in the first frame and the position matrix of the target control in the second frame when the change matrix of the target control is not empty;

[0155] The difference area is the union of the screen areas corresponding to the first position matrix and the second position matrix. The first position matrix is ​​the position matrix of the target control in the first frame, and the second position matrix is ​​the position matrix of the target control in the second frame.

[0156] Optionally, the processor 810 is also used for:

[0157] If the structure corresponding to the target control indicates that the number of controls in the target control moving in the first direction is greater than or equal to a first number, then the motion state in the motion information of the target interface is determined to be sliding in the first direction;

[0158] If the structure corresponding to the target control indicates that the number of controls in the target control moving in the same direction is less than a first number, then the motion state in the motion information of the target interface is determined to be irregular motion.

[0159] Optionally, the processor 810 is also used for:

[0160] When the target interface is in a sliding state in the same direction, the displacement information of the sliding is determined according to the change matrix of the target control.

[0161] Based on the displacement information and the time interval between the first frame and the second frame, the sliding speed information in the motion information is determined.

[0162] Optionally, the processor 810 is also used for:

[0163] Get the difference area of ​​the root control;

[0164] The difference area of ​​the root control is used as the motion area information in the motion information.

[0165] Optionally, the processor 810 is also used for:

[0166] Based on the motion information, adjust the display parameters of the target interface.

[0167] The terminal in this embodiment can monitor the position of each control on a target interface, identify target controls whose positions have changed, and then update the structure of the target control based on its position information. Finally, the motion information of the target interface is determined through the structure of the target control, enabling the electronic device to perceive the interface motion. Furthermore, after obtaining the motion information, the electronic device can adjust the display parameters to achieve a better display effect.

[0168] It should be understood that, in this embodiment, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The GPU 8041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

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

[0170] Processor 810 may include one or more processing units; optionally, processor 810 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 810.

[0171] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described information determination method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

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

[0173] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described information determination method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0174] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0175] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the information determination method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0176] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0177] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0178] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for determining information, characterized in that, include: Monitor the position of each control on the target interface; If a target control is detected, the structure corresponding to the target control is updated according to the position information of the target control. The target control is the control whose position has changed among the various controls. The motion information of the target interface is determined based on the structure corresponding to the target control.

2. The method according to claim 1, characterized in that, One control corresponds to one structure, and the structure includes at least one of the following: A position matrix, which is used to represent the position of the control; A change matrix, which is used to represent the positional changes of the control in the first frame and the second frame; A matrix list, which is used to store the change matrices of the sub-controls of the control; The difference area is used to represent the area difference of the control in the first frame and the second frame. The first frame and the second frame are adjacent frames of the target interface.

3. The method according to claim 2, characterized in that, The structure includes a position matrix, and updating the structure corresponding to the target control based on the position information of the target control includes: Update the position matrix in the structure corresponding to the target control based on the latest position of the feature points of the target control; or... The structure includes a transformation matrix, and updating the structure corresponding to the target control based on the position information of the target control includes: Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the change matrix in the structure corresponding to the target control; or... The structure includes the difference area, and updating the structure corresponding to the target control based on the position information of the target control includes: Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the difference area in the structure corresponding to the target control.

4. The method according to claim 1, characterized in that, Determining the motion information of the target interface based on the structure corresponding to the target control includes: If the structure corresponding to the target control indicates that the number of controls in the target control moving in the first direction is greater than or equal to a first number, then the motion state in the motion information of the target interface is determined to be sliding in the first direction; If the structure corresponding to the target control indicates that the number of controls in the target control moving in the same direction is less than a first number, then the motion state in the motion information of the target interface is determined to be irregular motion.

5. The method according to claim 1, characterized in that, Also includes: Based on the motion information, adjust the display parameters of the target interface.

6. An information determining device, characterized in that, include: The monitoring module is used to monitor the position of each control in the target interface; The first processing module is used to update the structure corresponding to the target control according to the position information of the target control when the existence of the target control is detected. The target control is the control whose position changes among the various controls. The second processing module is used to determine the motion information of the target interface based on the structure corresponding to the target control.

7. The apparatus according to claim 6, characterized in that, One control corresponds to one structure, and the structure includes at least one of the following: A position matrix, which is used to represent the position of the control; A change matrix, which is used to represent the positional changes of the control in the first frame and the second frame; A matrix list, which is used to store the change matrices of the sub-controls of the control; The difference area is used to represent the area difference of the control in the first frame and the second frame. The first frame and the second frame are adjacent frames of the target interface.

8. The apparatus according to claim 7, characterized in that, The structure includes a position matrix, and the first processing module is specifically used for: Update the position matrix in the structure corresponding to the target control based on the latest position of the feature points of the target control; or... The structure includes a transformation matrix, and the first processing module is specifically used for: Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the change matrix in the structure corresponding to the target control; or... The structure includes a differential area, and the first processing module is specifically used for: Based on the position matrix of the target control in the first frame and the position matrix of the target control in the second frame, update the difference area in the structure corresponding to the target control.

9. The apparatus according to claim 6, characterized in that, The second processing module is specifically used for: If the structure corresponding to the target control indicates that the number of controls in the target control moving in the first direction is greater than or equal to a first number, then the motion state in the motion information of the target interface is determined to be sliding in the first direction; If the structure corresponding to the target control indicates that the number of controls in the target control moving in the same direction is less than a first number, then the motion state in the motion information of the target interface is determined to be irregular motion.

10. The apparatus according to claim 6, characterized in that, Also includes: An adjustment module is used to adjust the display parameters of the target interface based on the motion information.

11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the information determination method as described in any one of claims 1-5.