Multi-screen sharing method and device, vehicle and storage medium
By responding to the screen transfer sliding operation in the cockpit system, determining the sliding stop position and overlapping area area, and selecting the target interaction area to control the content displayed on the target screen, the problem of poor interactive experience of the screen content transmission function in the prior art is solved, and more accurate and fast screen sharing is achieved.
Patent Information
- Application Number
- CN202411862478.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
AI Technical Summary
The interactive experience of the screen content transmission function of the existing cockpit system is poor, and problems such as misinformation and mistouch often occur.
By responsive to the screen-transmission sliding operation of the selected area in the starting point screen, the exit position and initial sliding speed of the touch body when it leaves the starting point screen, the sliding stop position is determined, and the overlap area area with each preset interactive area is determined according to the size and sliding stop position of the selected area, the interactive area with the largest overlap area is selected as the target interactive area, and the target screen corresponding to the target interaction area is controlled to display the display content of the selected area.
It improves the accuracy of transmission interaction, reduces the occurrence of misinformation and mistouching, and enhances the accuracy and speed of users' screen sharing through touch screen swiping.
Smart Images

Figure CN119883090A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and in particular to a multi-screen sharing method, device, vehicle and storage medium. Background Art
[0002] In order to improve the passenger experience in the cabin, more and more cabins are equipped with passenger screens. On this basis, considering the need for screen content sharing between passengers during the ride, the cabin system provides a screen content transmission function. However, the current interactive experience of the screen content transmission function of the cabin system is not good. Problems such as mistransmission and mistouch often occur. Summary of the invention
[0003] The present application provides a multi-screen sharing method, device, vehicle and storage medium, aiming to improve the accuracy of transmission interaction. The technical solution is as follows:
[0004] In a first aspect, a multi-screen sharing method is provided, the method comprising:
[0005] In response to the screen transfer sliding operation on the selected area in the starting screen, obtaining the leaving position of the touch body when leaving the starting screen and the corresponding initial sliding speed;
[0006] determining a slide stop position based on the departure position and the initial slide speed;
[0007] Determine the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen;
[0008] The interactive area with the largest overlapping area is determined as the target interactive area, and the target screen corresponding to the target interactive area is controlled to display the display content corresponding to the selected area.
[0009] In the above technical scheme, a method for sharing screen content between multiple screens is proposed. By responding to a screen sliding operation on a selected area in the starting screen, the departure position when the touch body leaves the starting screen and the corresponding initial sliding speed are obtained, and the sliding stop position is determined according to the departure position at the end of the touch and the initial sliding speed collected at this position, wherein the screen sliding operation refers to the user dragging the selected area to slide on the screen to realize the transmission of the display content of the selected area to other screens corresponding to the preset interactive area. In order to facilitate users to quickly perform screen transfer operations, the screen transfer sliding operation supports users to release their hands after sliding a certain distance. When the touch body such as fingertips and touch pens leaves the screen, the selected area will continue to slide at a reduced speed in the direction of the gesture indicated by the screen transfer sliding operation. The overlapping area between the selected area and each preset interactive area can be determined based on the sliding stop position and the size of the selected area. Specifically, in order to achieve quick screen transfer, a corresponding interactive area is set for each shareable screen in the starting screen, that is, different interactive areas correspond to different screens. The interactive area with the largest overlapping area with the selected area is selected as the target interactive area that the user expects to slide to. The target screen indicated by the screen transfer sliding operation is determined by the area of the overlapping area, which can improve the accuracy of determining the target screen, thereby making the touch screen sliding more accurate and faster to help users share the screen.
[0010] In combination with the first aspect, in some possible implementations, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed, and the sliding stop position is determined based on the departure position and the initial sliding speed, including: determining the initial speed of the selected area in the sliding direction based on the horizontal initial sliding speed and the vertical initial sliding speed; determining the decay speed in the sliding direction according to a preset friction coefficient; determining the damped sliding time according to the decay speed and the initial speed; determining the total sliding distance based on the damped sliding time, the decay speed and the initial speed; determining the sliding stop position based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed and the total sliding distance.
[0011] In the above technical solution, a method for determining the stop position of sliding is specifically proposed. By collecting the horizontal initial sliding speed and the vertical initial sliding speed when the touch body leaves the screen, the corresponding initial speed in the sliding direction can be synthesized. After the touch body leaves the screen and stops dragging the selected area, due to the initial speed at the time of stopping and the friction of the screen, the selected area will perform damped sliding on the screen plane. The attenuation speed in the sliding direction is determined according to Newton's law and the friction formula, wherein the preset friction coefficient can be specifically set according to the different configurations of the starting screen. Afterwards, because the speed is 0 at the end of sliding, the damped sliding time can be calculated based on the attenuation speed and the initial speed. According to the kinematic formula and the damped sliding time, attenuation speed and initial speed, the total sliding distance in the direction of the initial speed is determined, and then the final sliding stop position of the selected area can be accurately obtained.
[0012] In combination with the first aspect, in some possible implementations, the overlapping area of the selected area and each preset interactive area is determined based on the size of the selected area and the sliding stop position, including: when it is determined that the sliding stop position is in the starting screen, based on the size of the selected area and the sliding stop position, determining the first coordinate information of the selected area after sliding; based on the first coordinate information and the second coordinate information of each preset interactive area, determining the overlapping area of the selected area and each preset interactive area.
[0013] In the above technical solution, a solution for determining the area of the overlapping region is specifically proposed. In the case where the sliding stop position of the selected area is still on the screen, the position information of the selected area after stopping is directly determined according to the sliding stop position and the size of the selected area, and then the overlapping area is calculated according to the position information of the preset interactive area, so that the overlapping area can be obtained quickly and accurately.
[0014] In combination with the first aspect, in some possible implementations, the overlapping area of the selected area and each preset interactive area is determined based on the size of the selected area and the sliding stop position, including: when it is determined that the sliding stop position is not in the starting screen, determining the intersection information of the sliding trajectory connected by the departure position and the sliding stop position and the edge of the starting screen; based on the intersection information and the size of the selected area, determining the third coordinate information of the selected area when it slides to the edge of the starting screen; based on the third coordinate information and the second coordinate information of each preset interactive area, determining the overlapping area of the selected area with each preset interactive area when the selected area slides to the edge of the starting screen.
[0015] In the above technical solution, another solution for determining the area of the overlapping region is specifically proposed. When the sliding stop position has left the screen, it is necessary to determine the intersection of the sliding track and the edge of the screen, and determine the overlapping area of the selected area with the preset interactive area when sliding to the edge of the screen by combining the edge intersection position with the size of the selected area. At this time, the overlapping area is the area where the two planar rectangular areas of the selected area and the interactive area at the edge of the screen overlap. By combining the screen edge to determine the overlapping area, it is possible to accurately determine the overlapping area when the sliding stop area leaves the screen.
[0016] In combination with the first aspect, in some possible implementations, when it is determined that the sliding stop position is not in the starting screen, the intersection of the sliding trajectory formed by the departure position and the sliding stop position and the edge of the starting screen is determined, including: when it is determined that the sliding stop position is not in the starting screen, dividing the plane space quadrants according to the vertices of the departure position and the starting screen; determining the quadrant to which the intersection of the sliding trajectory formed by the departure position and the sliding stop position and the edge of the starting screen belongs; determining the intersection information according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
[0017] In the above technical solution, a solution for determining the edge intersection position is specifically proposed. The plane space quadrants are divided on the screen by the line connecting the vertices of the departure position and the starting point screen. According to the proportional relationship between the hypotenuse and the horizontal right-angled side of the right triangle from the departure position to the edge position and from the departure position to the sliding stop position, the coordinate formula of the edge position can be obtained. After determining the quadrant to which the intersection point belongs, the intersection information of the sliding track and the screen edge is determined according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
[0018] In combination with the first aspect, in some possible implementations, after determining that the interactive area with the largest overlapping area is the target interactive area, it also includes: determining the screen transmission status of the target screen corresponding to the target interactive area; when the screen transmission status is that screen transmission is not allowed, controlling the starting point screen to generate a prompt message that the screen cannot be transmitted.
[0019] In the above technical solution, after determining the target screen, when performing screen transmission, the screen transmission status of the target screen can be determined. When the screen transmission status of the target screen is that screen transmission is not allowed, a prompt message is generated on the starting screen to transparently transmit the screen transmission result to the starting screen. By detecting the screen transmission status, screen transmission can be achieved without disturbing the normal use of other screens, thereby improving the user experience of the screen transmission function.
[0020] In combination with the first aspect, in some possible implementations, before responding to a screen sliding operation on a selected area in the starting screen, it also includes: in response to a screenshot touch operation on the starting screen, obtaining a screenshot image of the target application as the selected area.
[0021] In the above technical solution, a scheme for determining the selected area is improved. When the scheme is specifically used for sharing applications, a screenshot image of the target application can be obtained through a screenshot touch operation, and the screenshot image of the target application represents the current selected area, making the transmission object of the screen transmission function more intuitive and the determination method more convenient.
[0022] In a second aspect, an embodiment of the present specification provides a multi-screen sharing device, including:
[0023] an acquisition unit, configured to acquire, in response to a screen transfer sliding operation on a selected area of a starting screen, a leaving position of the touch body when leaving the starting screen and a corresponding initial sliding speed;
[0024] a position determination unit, configured to determine a sliding stop position based on a departure position and an initial sliding speed;
[0025] an area determination unit, configured to determine the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen;
[0026] The area determination unit is used to determine the interactive area with the largest overlapping area as the target interactive area, and control the target screen corresponding to the target interactive area to display the display content corresponding to the selected area.
[0027] In a third aspect, an embodiment of the present specification provides a vehicle, the vehicle comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above method when executed by the processor.
[0028] In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a schematic diagram of a scenario of a multi-screen sharing method provided in an embodiment of this specification;
[0030] Figure 2 This is an example schematic diagram of a multi-screen sharing method provided in an embodiment of this specification;
[0031] Figure 3 This is an example schematic diagram of a multi-screen sharing method provided in an embodiment of this specification;
[0032] Figure 4 It is a flowchart of a multi-screen sharing method provided in an embodiment of this specification;
[0033] Figure 5It is a flowchart of a multi-screen sharing method provided in an embodiment of this specification;
[0034] Figure 6 This is a schematic diagram of an example of a multi-screen sharing method provided in an embodiment of this specification;
[0035] Figure 7 This is a schematic diagram of an example of a multi-screen sharing method provided in an embodiment of this specification;
[0036] Figure 8 This is a schematic diagram of an example of a multi-screen sharing method provided in an embodiment of this specification;
[0037] Fig. 9 It is a structural diagram of a multi-screen sharing device provided in an embodiment of this specification;
[0038] Fig.10 It is a structural schematic diagram of a vehicle provided in an embodiment of this specification. DETAILED DESCRIPTION
[0039] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of this specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this specification, "multiple" means two or more than two.
[0040] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0041] Figure 1 This is a scenario diagram of a multi-screen sharing method provided in an embodiment of this specification.
[0042] For example, Figure 1As shown, the vehicle 1 includes multiple touch screens. In the embodiment of this specification, there are touch screens 1-4, wherein touch screen 1 is a touch screen for the driver's seat, touch screen 2 is a touch screen for the co-pilot seat, and touch screens 3 and 4 are touch screens for the back seats. Of course, the number and type of touch screens are not limited to this embodiment. In a vehicle with more than two touch screens, in order to improve the interactivity between each touch screen, screen content sharing between touch screens is supported, and the shared content can be pictures, videos, applications, etc., which are not specifically limited. The touch screen supports gesture control, so it can be quickly transmitted by selecting the content to be shared and dragging it to the set position, such as dragging the shared content to the icon corresponding to the target screen in the navigation bar. Considering that the size of the vehicle-mounted touch screen is large, the distance that the user needs to drag may be long, thereby affecting the interaction efficiency. It can support the sharing of screen content through the "swinging screen" sliding operation, that is, after the user selects and drags the shared content for a distance, he can let go, and the shared content will continue to slide in the touch screen. When it reaches the set position after sliding, it will be transmitted to the target screen corresponding to the set position.
[0043] like Figure 2 As shown, in the related art, when the user's sliding screen transfer operation leaves the screen, an initial angle ray trajectory of the sliding screen transfer operation is made from the leaving position, and whether the hot zone is the target hot zone is determined based on whether the initial angle ray trajectory passes through the hot zone. Among them, the hot zone is the interactive part of the interface, and different hot zones correspond to different screens. When there is a gap between the hot zones in this solution, the ray trajectory is easy to pass through the gap, resulting in transmission failure. When the hot zone is large, the ray trajectory of this solution may pass through multiple hot zones at the same time, and the target hot zone cannot be determined.
[0044] Based on the above situation, the embodiment of this specification proposes a multi-screen sharing method, which obtains the departure position and the corresponding initial sliding speed when the touch body leaves the starting screen in response to the screen sliding operation on the selected area in the starting screen, determines the sliding stop position according to the departure position at the end of the touch and the initial sliding speed collected at the position, and determines the overlapping area between the selected area and each preset interactive area after sliding according to the sliding stop position and the size of the selected area, and selects the interactive area with the largest overlapping area with the selected area as the target area that the user expects to slide to. Please also refer to Figure 3 ,like Figure 3 As shown in the figure, screen 1 is the starting screen, and the black square in screen 1 is the selected area. After the user drags the selected area from position 1 to position 2 and releases the hand, the selected area will continue to slide at a reduced speed in the direction of the gesture according to the initial sliding speed when the hand is lifted. Figure 3The direction of the sliding track marked in the figure, for example, can be presented in a way of reducing transparency to present the animation effect when the selected area slides. When the selected area slides to the edge of the screen, the overlapping area of the selected area and the interactive area is determined. In this example, the overlapping area of the selected area and the interactive area 1 is the largest, then the target screen to be transmitted to the selected area is determined to be the screen 2 corresponding to the interactive area 1. The screen 2 corresponding to the interactive area 1 is pre-set, and the display content in the selected area can be transmitted to the screen 2, wherein the same animation effect as after raising the hand can be used in the screen 2 to present the effect of the selected area flying into the screen 2. In this way, the target screen indicated by the screen transmission sliding operation is determined by the overlapping area area, which can improve the accuracy of determining the target transmission screen and improve the accuracy of the "screen flicking" transmission interaction.
[0045] The multi-screen sharing method provided in this specification is described in detail below in conjunction with specific embodiments.
[0046] Figure 4 is a flowchart of a multi-screen sharing method provided in an embodiment of this specification. It should be understood that this method can be applied to Figure 1 The present invention relates to a vehicle, and specifically can be applied to an electronic control unit (ECU) in the vehicle.
[0047] like Figure 4 As shown, the method of the embodiment of this specification may include the following steps S101-S104.
[0048] S101 , in response to a screen transfer sliding operation on a selected area of a starting screen, obtaining a leaving position of a touch body when leaving the starting screen and a corresponding initial sliding speed.
[0049] In one embodiment, the starting screen refers to the screen that needs to share screen content. In a vehicle-mounted scenario, the starting screen can be any screen in the cockpit. In addition, the starting screen can be a capacitive touch screen to provide a touch operation function.
[0050] The selected area is used to indicate the screen content to be shared, such as application software, pictures, videos, etc. The selected area can be an icon, screenshot, thumbnail, etc. of the screen content to be shared. The user can select the content to be shared according to actual needs to obtain the selected area.
[0051] Touch objects refer to objects that can interact with the touch screen surface and transmit touch signals through physical contact. Through these touch objects, the touch screen can receive input signals and respond to these signals to perform corresponding operations, such as writing, drawing, sliding, etc. For example, fingertips, touch pens, and other special tools or devices.
[0052] The leaving position refers to the position where the touch object leaves the touch screen; correspondingly, the initial sliding speed is the speed when the touch object leaves the touch screen.
[0053] The screen transmission sliding operation refers to the gesture command used to implement the screen transmission function. The screen transmission function refers to the user dragging the selected area to slide on the screen to transfer the display content of the selected area to other screens corresponding to the preset interactive area. The user slides with a touch body such as a finger or a stylus, and the touch screen recognizes and performs corresponding operations based on the sliding action. Specifically, it can be in the form of single-finger sliding, long-press sliding, etc. For example, the user can drag the selected area directly to the preset interactive area to trigger the screen transmission function of the screen corresponding to the interactive area.
[0054] In a feasible implementation, in order to facilitate users to quickly perform screen transfer operations, the sliding operation will have an inertial effect - that is, the sliding will continue for a period of time, simulating the effect of the object continuing to move until it reaches a stop state.
[0055] It should be noted that, after the user determines the selected area, the location of the preset interactive area can be prompted on the starting screen, for example, by marking it with different colors.
[0056] When the user slides his finger, the touch screen obtains the movement path of the finger by continuously detecting multiple touch points (usually the contact area of the finger). The coordinate position of each touch point will be updated at a certain time interval. Specifically, the touch screen will record the x and y coordinates of the finger contact and whether there are multiple touch points in each time period (usually a few milliseconds). The speed of the touch point is calculated by comparing the time interval and position difference between two consecutive position updates. When the user stops sliding and is about to leave the touch screen, the touch screen will continue to track the position of the last touch point, and the coordinates of the last touch point are the "leaving position" when the finger leaves. The speed of leaving the last touch point is the initial sliding speed. After the touch screen obtains the touch data (touch point position), it sends the touch data to the ECU, which processes and identifies whether it is a screen sliding operation, as well as the departure position when the touch body leaves the starting screen and the corresponding initial sliding speed.
[0057] S102, determining a sliding stop position based on the departure position and the initial sliding speed.
[0058] In one embodiment, the screen sliding operation supports the touch body to leave the screen after sliding only a certain distance. According to the sliding direction indicated by the screen sliding operation, due to the existence of inertia and screen friction, the selected area will continue to slide in the sliding direction with a reduced speed. The ECU can calculate the stop position of the inertial sliding by substituting the initial position, speed and damping coefficient at the time of leaving into the damped motion model. It should be noted that the sliding stop position may also be different depending on the initial sliding speed. For example, it may still be within the starting screen, or it may need to stop outside the starting screen.
[0059] S103: Determine the overlapping area between the selected area and each preset interactive area based on the size of the selected area and the sliding stop position.
[0060] In one embodiment, when the user needs to use the screen transfer function, the selected area needs to be slid to the preset interactive area in the screen, so as to determine the target screen indicated by the user's screen transfer sliding operation. Each preset interactive area corresponds to a shareable screen. The user can pre-set a quick operation trigger area for at least one shareable screen, that is, select an area in the starting screen as an interactive area, so as to realize the "swing" screen transfer function. Exemplarily, for the convenience of calculation, the interactive area can be a rectangle.
[0061] The selected area is an image with a certain size, so the ECU can determine the coordinates of the selected area on the screen when it stops according to the size of the selected area and the sliding stop position, and then calculate the overlapping area of the selected area and each preset interactive area according to the coordinates of each preset interactive area.
[0062] In a feasible implementation, the departure position corresponds to the center point position of the selected area, that is, when the user drags the selected area, the user touch position corresponds to the center point position of the selected area. Similarly, the sliding stop position is the center point stop position of the selected area. Afterwards, the coordinates of the selected area are determined with the sliding stop position as the center combined with the size of the selected area. In addition, selecting the center point position of the selected area can ensure that the interactive animation corresponding to the screen sliding operation can achieve a more hand-following effect. Of course, the departure position and the sliding stop position may not be the center point, but may be other easily calculated points in the selected area.
[0063] S104, determining the interactive area with the largest overlapping area as the target interactive area, and controlling the target screen corresponding to the target interactive area to display the display content corresponding to the selected area.
[0064] In one embodiment, the ECU compares the overlapping area of the selected area with different interactive areas, and selects the interactive area with the largest overlapping area with the selected area as the target interactive area that the user expects to slide to, thereby improving the accuracy of the target interactive area determination, and further improving the accuracy of the screen transmission interaction. Since the selected area has a certain area, when there is a gap between the interactive areas, it is not easy to pass through the gap between the two, resulting in missed detection; in addition, when the interactive areas are closely arranged, if the selected area passes through multiple interactive areas, it can also be determined by the overlapping area, and one interactive area can be accurately determined from multiple interactive areas. It should be noted that when the overlapping area of the selected area is the same as that of multiple interactive areas, it is determined to be invalid, and the user is required to re-execute the screen transmission sliding operation.
[0065] In the embodiment of the present specification, by responding to the screen sliding operation for the selected area in the starting screen, the departure position and the corresponding initial sliding speed of the touch body when leaving the starting screen are obtained, the sliding stop position is determined based on the departure position and the initial sliding speed, and the overlapping area of the selected area and each preset interactive area is determined based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a shareable screen, the interactive area with the largest overlapping area is determined as the target interactive area, and the target screen corresponding to the target interactive area is controlled to display the display content corresponding to the selected area. In this way, the accuracy of determining the target screen can be improved, thereby allowing users to share the screen more accurately and quickly through touch screen sliding.
[0066] Please refer to Figure 5, which is a flowchart of a multi-screen sharing method provided in an embodiment of this specification. Figure 5 As shown, the method of the embodiment of this specification may include the following steps S201-S215.
[0067] S201 , in response to a screen transfer sliding operation on a selected area of a starting screen, obtaining a leaving position of a touch body when leaving the starting screen and a corresponding initial sliding speed.
[0068] In one embodiment, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed.
[0069] Specifically, each capacitive sensing point on the screen can detect the contact of the finger and convert the coordinates of the contact point into digital signals. These digital signals are transmitted to the touch screen controller (usually a dedicated ASIC chip) and recorded together with the timestamp. The controller uses the continuous touch point coordinates and their timestamps as input to calculate the horizontal and vertical speeds. In this way, the horizontal initial sliding speed and vertical initial sliding speed of the last touch point on the screen, that is, the leaving position, can be collected.
[0070] Furthermore, in one embodiment, the method further comprises:
[0071] In response to the screenshot touch operation on the starting screen, a screenshot image of the target application is acquired as the selected area.
[0072] Specifically, before the user performs the screen transfer sliding operation, the selected area can be determined first, that is, the screen content to be transferred can be determined. In a feasible implementation, when the user needs to share an application, a screenshot image of the target application can be obtained through a screenshot touch operation. Exemplarily, the screenshot touch operation can be a long press on the screen.
[0073] Optionally, after determining the selected area, you can enter the screen transfer guidance interface, for example, mark the interactive area on the screen. In the screen transfer guidance interface, the selected area will move on the screen as the user slides multiple fingers, and the passenger can flick the screenshot out of the starting screen by flicking multiple fingers.
[0074] It should be noted that when the screen system is an Android system, only one application can be in focus, and a screenshot touch operation (such as a three-finger long press) at any position on the screen selects the foreground application, and then a screenshot image of the foreground application is generated as the selected area. In a feasible implementation, after the foreground application is selected by long pressing on the screen, in addition to taking a screenshot of the foreground application, an icon of the foreground application can also be generated to indicate that the content selected to be transmitted is the foreground application.
[0075] S202: Determine an initial speed of the selected area in the sliding direction based on the horizontal initial sliding speed and the vertical initial sliding speed.
[0076] In one embodiment, according to the initial speed V of the sliding operation in the horizontal direction (left and right direction of the screen) at the departure position x and the initial velocity V in the vertical direction (up and down direction of the screen) y Calculate the initial velocity in the sliding direction after synthesis:
[0077] S203, determining a decay speed in the sliding direction according to a preset friction coefficient.
[0078] In one embodiment, after the user's finger leaves the screen, the system calculates an acceleration (usually based on the last speed and damping coefficient) to simulate sliding and eventually stopping. In a feasible implementation, the effect of throwing the selected area with the plane of the screen as the horizontal plane is simulated:
[0079] According to Newton's second law: F=ma, where F is the resultant force, m is the mass of the object, and α is the acceleration.
[0080] Friction formula: F f=μN, where F is the friction force, μ is the dynamic friction coefficient, and N is the normal force.
[0081] Assume that on a horizontal plane, the normal force N is equal to the gravity mg. f =μmg
[0082] Initial conditions: The object slides along the horizontal plane with an initial velocity v0 and is subject to damping friction.
[0083] Since friction is a resistance in the opposite direction, its acceleration α is expressed as:
[0084]
[0085] The acceleration α is a constant, and its direction is opposite to the velocity. The formula for the attenuation of the deceleration of damped sliding in the direction of the initial velocity is:
[0086] a=-μ·g
[0087] Where μ is the friction coefficient, which is 0.015 in this algorithm, and g is the gravity acceleration after tuning, which is 9.18m / s2 in this algorithm. 0.015 and 9.18 are empirical values obtained from actual vehicle tuning, and using these values can achieve a more realistic damping sliding effect.
[0088] It is understandable that since the friction coefficient is related to the material, static friction and dynamic friction experiments can be conducted for the screen material configured in the vehicle to determine the actual screen friction coefficient. Furthermore, the friction coefficient can be adjusted according to the desired interaction effect.
[0089] Optionally, according to the magnitude of the friction coefficient, a corresponding attenuation deceleration rate may be selected. For example, a correlation value table may be established by presetting attenuation deceleration rates corresponding to different friction coefficients.
[0090] In another feasible implementation, the decay deceleration can be set with a test value and the test value that meets the desired interaction effect can be selected as the decay deceleration through experiments by the experimenter. Afterwards, the user can preview the display effects of different sliding speeds in the interaction settings, such as slow, medium and fast. Different display effects correspond to different preset decay decelerations, and the corresponding decay deceleration is determined according to the display effect selected by the user.
[0091] S204, determining the damping sliding time according to the decay speed and the initial speed.
[0092] In one embodiment, after the attenuation speed a is calculated, the speed is 0 when the sliding of the selected area is cut off, so the damping sliding takes time:
[0093]
[0094] S205, determining a total sliding distance based on the damped sliding time, the decay speed, and the initial speed.
[0095] In one embodiment, according to the kinematic formula, in the direction of the initial velocity, the total sliding distance is:
[0096]
[0097] After determining the total sliding distance, the interactive animation effect of the selected area can be determined according to the total sliding distance and the initial speed, that is, how far and how fast the selected area "flies" on the screen can be determined to obtain a smoother and more realistic animation effect.
[0098] S206 , determining a sliding stop position based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed, and the total sliding distance.
[0099] In one embodiment, the vertex at the lower left corner of the screen is the origin of the coordinate system, the left-right direction of the screen is the x-axis, and the up-down direction is the y-axis. The "vertex at the lower left corner of the screen" refers to the intersection of a straight line passing through the leftmost point of the screen and perpendicular to the left-right direction of the screen and a straight line passing through the bottommost point of the screen and perpendicular to the up-down direction of the screen. Given the departure position, that is, the center point of the starting position P0 (x0, y0), the initial horizontal velocity V x , the initial velocity V in the vertical direction y And the initial speed V0 in the sliding direction, the total sliding distance s, the coordinates of the center point of the sliding stop position P can be calculated t (x t ,y t ),in:
[0100]
[0101] S207: When it is determined that the sliding stop position is in the starting point screen, determine first coordinate information of the selected area after sliding based on the size of the selected area and the sliding stop position.
[0102] In one embodiment, the sliding stop position is determined according to the screen coordinate system. Further, the coordinates of each screen vertex in the screen coordinate system can be obtained to determine whether the sliding stop position is in the starting screen. If so, the position of the selected area after sliding in the screen can be directly determined according to the size of the selected area and the sliding stop position to obtain the first coordinate information. Figure 6 , Figure 6 An example schematic diagram of a multi-screen sharing method is provided for the embodiment of this specification, such as Figure 6As shown, taking the selected area as an application screenshot as an example, when the sliding stop position (end position) of the selected area is within the starting screen range, the position information occupied by the application screenshot is determined with the sliding stop position as the center and combined with the size of the application screenshot, and compared with the position information of the hot zone (interactive area) to determine the area of the overlapping area.
[0103] S208: Determine the overlapping area between the selected area and each preset interactive area based on the first coordinate information and the second coordinate information of each preset interactive area.
[0104] Specifically, after obtaining the first coordinate information of the selected area after the sliding stops, the area of the overlapping area is calculated together with the second coordinate information of the preset interactive area.
[0105] S209: When it is determined that the sliding stop position is not in the starting screen, determine the intersection information of the sliding track formed by the leaving position and the sliding stop position and the edge of the starting screen.
[0106] In one embodiment, when it is determined that the sliding stop position is not in the starting screen, it is necessary to determine the position of the selected area when it leaves the screen, and first determine the intersection information of the sliding track formed by the leaving position and the sliding stop position and the edge of the starting screen.
[0107] See also Figure 7 , Figure 7 An example schematic diagram of a multi-screen sharing method is provided for the embodiment of this specification, such as Figure 7 As shown, the intersection point is Figure 7 The edge position in .
[0108] Further, in one embodiment, when it is determined that the sliding stop position is not in the starting screen, the intersection information of the sliding track formed by the exit position and the sliding stop position and the edge of the starting screen is determined, including the following steps S2091-S2093.
[0109] S2091: When it is determined that the sliding stop position is not in the starting screen, divide the plane space into quadrants according to the exit position and the vertex of the starting screen.
[0110] Specifically, given the starting point position P0 (x0, y0) and the screen size, this embodiment draws a ray from the starting point through the vertex of the starting point screen, divides the screen plane into 4 quadrants, and then draws horizontal and vertical auxiliary lines from the center point of the starting point to divide each quadrant into two intervals, for a total of 8 intervals. For details, see Figure 8 The coordinates of the center point of the edge position of each quadrant are P c (x c ,y c ) can be expressed as:
[0111] The center point P of the left interval edge of the first quadrant1l (x 1l ,0) Coordinate calculation formula:
[0112]
[0113] The center point P of the right edge of the first quadrant 1r (x 1r ,0) Coordinate calculation formula:
[0114]
[0115] The center point P of the edge position of the upper interval in the second quadrant 2u (w,y 2u )Coordinate calculation formula:
[0116]
[0117] The center point P of the edge position of the lower interval in the second quadrant 2d (w,y 2d )Coordinate calculation formula:
[0118]
[0119] The center point P of the left edge of the third quadrant 3l (x 3l , h) Coordinate calculation formula:
[0120]
[0121] The center point P of the right edge of the third quadrant 3r (x 3r , h) Coordinate calculation formula:
[0122]
[0123] The center point P of the edge position of the upper interval in the 4th quadrant 4u (0,y 4u )Coordinate calculation formula:
[0124]
[0125] The center point P of the edge position of the lower interval in the 4th quadrant 4d (0,y 4d )Coordinate calculation formula:
[0126]
[0127] S2092, determining the quadrant to which the intersection of the sliding track formed by the exit position and the sliding stop position and the starting screen edge belongs.
[0128] S2093, determining the intersection information according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
[0129] Specifically, after obtaining the coordinate formulas of the above intersections in different quadrants, determine the quadrant to which the intersection belongs, and bring the coordinates of the departure position and the coordinates of the sliding stop position into the above intersection calculation formula to obtain the intersection position coordinates as the intersection information.
[0130] S210, determining third coordinate information of the selected area when the selected area slides to the edge of the starting screen based on the intersection information and the size of the selected area.
[0131] In one embodiment, the coordinate information of the selected area at the edge position is determined based on the intersection position as the center and the size of the selected area as the third coordinate information. c (x c ,y c ) and the size of the selected area (w s ,h s ), the rectangular coordinates of the edge position can be obtained as:
[0132]
[0133] S211, based on the third coordinate information and the second coordinate information of each preset interactive area, determine the overlapping area of the selected area and each preset interactive area.
[0134] Specifically, the overlapping area of the selected area and the interactive area is determined according to the third coordinate information of the determined edge position selected area and the second coordinate information of the interactive area.
[0135] Please see again Figure 7 In this case, the overlapping area is formed by the selected area and the edge and interactive area rectangles at the edge position.
[0136] S212: Determine the interactive area with the largest overlapping area as the target interactive area.
[0137] For details, please refer to step S103 in the above-mentioned embodiment of the specification, which will not be described in detail here.
[0138] S213: Determine the screen transmission status of the target screen corresponding to the target interactive area.
[0139] In one embodiment, after determining the target screen indicated by the screen transmission sliding operation, the screen transmission status of the target screen (including entertainment, busy, idle, work, etc.) is determined to determine whether to transmit the screen to the target screen. Among them, users in different shelf positions can set the application priority in the screen by themselves, so that the screen transmission status of the screen can be determined according to the application priority. If the priority of the currently running application is higher than the screen transmission application, the screen transmission status is that screen transmission is not allowed.
[0140] S214, when the screen transmission status is that screen transmission is not allowed, the starting point screen is controlled to generate a prompt message that screen transmission is not allowed.
[0141] In one embodiment, when the ECU determines that the screen transmission status of the target screen is not allowed, a prompt message indicating that screen transmission is not allowed is generated on the starting screen to let the user know the screen transmission result. For example, if the target screen is the central control screen, and the reversing application is executed on the central control screen, the reversing application has a higher priority, and it is determined that the screen transmission status is not allowed. Correspondingly, there will be a corresponding prompt on the starting screen, indicating that the transmission cannot be performed at this time.
[0142] S215, when the screen transmission status is to allow screen transmission, control the target screen corresponding to the target interactive area to display the display content corresponding to the selected area.
[0143] It is understandable that when the screen transmission status is to allow screen transmission, the target screen is controlled to display the display content corresponding to the selected area. Exemplarily, when the selected area is an application screenshot, the displayed content is the application content. Another exemplary example is that when the selected area is a picture thumbnail, the displayed content is the original picture (normal size picture).
[0144] In the embodiment of the present specification, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed. In response to the screen sliding operation for the selected area in the starting screen, the departure position of the touch body when leaving the starting screen and the corresponding initial sliding speed are obtained, the initial speed of the selected area in the sliding direction is determined based on the horizontal initial sliding speed and the vertical initial sliding speed, the decay speed in the sliding direction is determined according to the preset friction coefficient, the damping sliding time is determined according to the decay speed and the initial speed, the total sliding distance is determined based on the damping sliding time, the decay speed and the initial speed, the sliding stop position is determined based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed and the total sliding distance, and the sliding stop position is accurately determined by kinematics. Afterwards, when it is determined that the sliding stop position is in the starting screen, the first coordinate information of the selected area after sliding is determined based on the size of the selected area and the sliding stop position, and the overlapping area of the selected area and each preset interactive area is determined based on the first coordinate information and the second coordinate information of each preset interactive area. When it is determined that the sliding stop position is not in the starting screen, the intersection information of the sliding track connected by the departure position and the sliding stop position and the edge of the starting screen is determined, and the third coordinate information of the selected area when sliding to the edge of the starting screen is determined based on the intersection information and the size of the selected area. Based on the third coordinate information and the second coordinate information of each preset interactive area, the overlapping area of the selected area and each preset interactive area is determined. By judging whether the sliding stop position is located in the starting screen, a suitable overlapping area determination method can be selected, and the overlapping area can be obtained quickly and accurately. In addition, after determining the target screen, the screen transmission status of the target screen corresponding to the target interactive area can also be determined. When the screen transmission status is that screen transmission is not allowed, the starting screen is controlled to generate a prompt message that the screen transmission is not allowed, and the screen transmission is realized without disturbing the normal use of other screens, thereby improving the user experience of the screen transmission function.
[0145] The following will be combined with the attached Fig. 9 , the multi-screen sharing device provided in the embodiment of this specification is introduced in detail. It should be noted that the attached Fig. 9 The multi-screen sharing device in the system is used to execute this manual Figure 3-Figure 8 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figure 3-Figure 8 The embodiment shown.
[0146] See also Fig. 9 , which shows a schematic diagram of the structure of a multi-screen sharing device provided by an exemplary embodiment of this specification. The multi-screen sharing device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes:
[0147] An acquisition unit 11 is used for acquiring a leaving position of the touch body when leaving the starting screen and a corresponding initial sliding speed in response to a screen transfer sliding operation on a selected area in the starting screen;
[0148] a position determination unit 12, configured to determine a sliding stop position based on a departure position and an initial sliding speed;
[0149] an area determination unit 13, configured to determine the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen; and
[0150] The area determination unit 14 is used to determine the interactive area with the largest overlapping area as the target interactive area, and control the target screen corresponding to the target interactive area to display the display content corresponding to the selected area.
[0151] Optionally, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed, and the position determination unit 12 is specifically used to: determine the initial speed of the selected area in the sliding direction based on the horizontal initial sliding speed and the vertical initial sliding speed; determine the decay speed in the sliding direction according to a preset friction coefficient; determine the damped sliding time according to the decay speed and the initial speed; determine the total sliding distance based on the damped sliding time, the decay speed and the initial speed; determine the sliding stop position based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed and the total sliding distance.
[0152] Optionally, the area determination unit 13 is specifically used to: when it is determined that the sliding stop position is in the starting screen, determine the first coordinate information of the selected area after sliding based on the size of the selected area and the sliding stop position; based on the first coordinate information and the second coordinate information of each preset interactive area, determine the overlapping area of the selected area and each preset interactive area.
[0153] Optionally, the area determination unit 13 is specifically used to: when it is determined that the sliding stop position is not in the starting screen, determine the intersection information of the sliding trajectory connecting the departure position and the sliding stop position and the edge of the starting screen; determine the third coordinate information of the selected area when it slides to the edge of the starting screen based on the intersection information and the size of the selected area; based on the third coordinate information and the second coordinate information of each preset interactive area, determine the overlapping area of the selected area and each preset interactive area.
[0154] Optionally, the area determination unit 13 is specifically used for: when it is determined that the sliding stop position is not in the starting screen, dividing the plane space into quadrants according to the vertices of the departure position and the starting screen; determining the quadrant to which the intersection of the sliding trajectory formed by the departure position and the sliding stop position and the edge of the starting screen belongs; and determining the intersection information according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
[0155] Optionally, the area determination unit 14 is further used to: determine the screen transfer status of the target screen corresponding to the target interactive area; when the screen transfer status is that screen transfer is not allowed, control the starting point screen to generate a prompt message that screen transfer is not allowed.
[0156] Optionally, the acquisition unit 11 is further configured to: in response to a screenshot touch operation on the starting screen, acquire a screenshot image of the target application as the selected area.
[0157] It should be noted that the multi-screen sharing device provided in the above embodiment only uses the division of the above functional modules as an example when executing the multi-screen sharing method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the multi-screen sharing device provided in the above embodiment and the multi-screen sharing method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0158] The serial numbers of the embodiments of the present specification are for description only and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0159] The embodiment of the present specification also provides a computer storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned Figure 3-Figure 8 The multi-screen sharing method of the embodiment shown in the figure can be found in the specific execution process. Figure 3-Figure 8 The specific description of the illustrated embodiment will not be repeated here.
[0160] Please refer to Fig.10 , which shows a schematic diagram of the structure of a vehicle provided by an exemplary embodiment of the present specification. The vehicle in the present specification may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via a bus 150.
[0161] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire vehicle, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0162] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.
[0163] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0164] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0165] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.
[0166] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of this specification.
[0167] In addition, those skilled in the art will appreciate that the structure of the vehicle shown in the above drawings does not constitute a limitation on the vehicle, and the vehicle may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components. For example, the vehicle also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a WiFi module, a power supply, and a Bluetooth module, which will not be described in detail here.
[0168] exist Fig.10 In the vehicle shown, the processor 110 may be used to call a computer application stored in the memory 120 and specifically perform the following operations:
[0169] In response to the screen transfer sliding operation on the selected area in the starting screen, obtaining the leaving position of the touch body when leaving the starting screen and the corresponding initial sliding speed;
[0170] determining a slide stop position based on the departure position and the initial slide speed;
[0171] Determine the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen;
[0172] The interactive area with the largest overlapping area is determined as the target interactive area, and the target screen corresponding to the target interactive area is controlled to display the display content corresponding to the selected area.
[0173] In one embodiment, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed. When the processor 110 determines the sliding stop position based on the exit position and the initial sliding speed, the processor 110 specifically performs the following operations:
[0174] determining an initial velocity of the selected area in a sliding direction based on the horizontal initial sliding velocity and the vertical initial sliding velocity;
[0175] Determining the decay speed in the sliding direction according to a preset friction coefficient;
[0176] Determine the damping sliding time according to the decay speed and the initial speed;
[0177] Determine the total sliding distance based on the damped sliding time, decay speed and initial speed;
[0178] The slide stop position is determined based on the departure position, the horizontal initial slide speed, the vertical initial slide speed, the initial speed, and the total slide distance.
[0179] In one embodiment, when the processor 110 determines the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position, the processor 110 may specifically perform the following operations:
[0180] When it is determined that the sliding stop position is in the starting point screen, determining first coordinate information of the selected area after sliding based on the size of the selected area and the sliding stop position;
[0181] Based on the first coordinate information and the second coordinate information of each preset interactive area, the overlapping area of the selected area and each preset interactive area is determined.
[0182] In one embodiment, when the processor 110 determines the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position, the processor 110 may specifically perform the following operations:
[0183] When it is determined that the sliding stop position is not in the starting screen, determining the intersection information of the sliding track formed by the leaving position and the sliding stop position and the edge of the starting screen;
[0184] Determine the third coordinate information of the selected area when it slides to the edge of the starting screen based on the intersection information and the size of the selected area;
[0185] Based on the third coordinate information and the second coordinate information of each preset interactive area, the overlapping area of the selected area and each preset interactive area is determined.
[0186] In one embodiment, when the processor 110 determines the intersection information of the sliding track formed by the exit position and the sliding stop position and the edge of the starting screen when it is determined that the sliding stop position is not in the starting screen, the processor 110 specifically performs the following operations:
[0187] When it is determined that the sliding stop position is not in the starting point screen, dividing the plane space into quadrants according to the leaving position and the vertex of the starting point screen;
[0188] Determine the quadrant to which the intersection of the sliding track formed by the exit position and the sliding stop position and the edge of the starting screen belongs;
[0189] The intersection information is determined according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
[0190] In one embodiment, after determining that the interactive area with the largest overlapping area is the target interactive area, the processor 110 may further perform the following operations:
[0191] Determine the screen transfer status of the target screen corresponding to the target interactive area;
[0192] When the screen transfer status is not allowed, the starting point screen is controlled to generate a prompt message indicating that screen transfer is not allowed.
[0193] In one embodiment, before executing the screen sliding operation in response to the selected area in the starting screen, the processor 110 may further perform the following operations:
[0194] In response to the screenshot touch operation on the starting screen, a screenshot image of the target application is acquired as the selected area.
[0195] In the embodiment of the present specification, by responding to the screen sliding operation for the selected area in the starting screen, the departure position and the corresponding initial sliding speed of the touch body when leaving the starting screen are obtained, the sliding stop position is determined based on the departure position and the initial sliding speed, and the overlapping area of the selected area and each preset interactive area is determined based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a shareable screen, the interactive area with the largest overlapping area is determined as the target interactive area, and the target screen corresponding to the target interactive area is controlled to display the display content corresponding to the selected area. In this way, the accuracy of determining the target screen can be improved, thereby allowing users to share the screen more accurately and quickly through touch screen sliding.
[0196] Further, the initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed. By responding to the screen sliding operation for the selected area in the starting screen, the departure position of the touch body when leaving the starting screen and the corresponding initial sliding speed are obtained, the initial speed of the selected area in the sliding direction is determined based on the horizontal initial sliding speed and the vertical initial sliding speed, the decay speed in the sliding direction is determined according to the preset friction coefficient, the damping sliding time is determined according to the decay speed and the initial speed, the total sliding distance is determined based on the damping sliding time, the decay speed and the initial speed, the sliding stop position is determined based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed and the total sliding distance, and the sliding stop position is accurately determined by kinematics. Afterwards, when it is determined that the sliding stop position is in the starting screen, the first coordinate information of the selected area after sliding is determined based on the size of the selected area and the sliding stop position, and the overlapping area of the selected area and each preset interactive area is determined based on the first coordinate information and the second coordinate information of each preset interactive area. When it is determined that the sliding stop position is not in the starting screen, the intersection information of the sliding track connected by the departure position and the sliding stop position and the edge of the starting screen is determined, and the third coordinate information of the selected area when sliding to the edge of the starting screen is determined based on the intersection information and the size of the selected area. Based on the third coordinate information and the second coordinate information of each preset interactive area, the overlapping area of the selected area and each preset interactive area is determined. By judging whether the sliding stop position is located in the starting screen, a suitable overlapping area determination method can be selected, and the overlapping area can be obtained quickly and accurately. In addition, after determining the target screen, the screen transmission status of the target screen corresponding to the target interactive area can also be determined. When the screen transmission status is that screen transmission is not allowed, the starting screen is controlled to generate a prompt message that the screen transmission is not allowed, and the screen transmission is realized without disturbing the normal use of other screens, thereby improving the user experience of the screen transmission function.
[0197] In addition, the embodiments of this specification provide a computer program product, which includes a computer program. When the computer program is executed by a processor of a vehicle, the processor can at least implement the above-mentioned Figures 3 to 8 The multi-screen sharing method provided in the illustrated embodiment.
[0198] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0199] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A multi-screen sharing method, characterized in that: The method comprises: In response to a screen transfer sliding operation on a selected area of a starting screen, obtaining a leaving position of the touch body when the touch body leaves the starting screen and a corresponding initial sliding speed; determining a sliding stop position based on the departure position and the initial sliding speed; Determining the overlapping area of the selected area and each preset interactive area based on the size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen; The interactive area with the largest area of the overlapping area is determined as the target interactive area, and the target screen corresponding to the target interactive area is controlled to display the display content corresponding to the selected area.
2. The method according to claim 1, characterized in that The initial sliding speed includes a horizontal initial sliding speed and a vertical initial sliding speed; The determining the sliding stop position based on the departure position and the initial sliding speed comprises: determining an initial speed of the selected area in a sliding direction based on the horizontal initial sliding speed and the vertical initial sliding speed; determining a decay speed in the sliding direction according to a preset friction coefficient; Determine the damping sliding time according to the decay speed and the initial speed; Determine a total sliding distance based on the damped sliding time, the decay speed and the initial speed; A sliding stop position is determined based on the departure position, the horizontal initial sliding speed, the vertical initial sliding speed, the initial speed, and the total sliding distance.
3. The method according to claim 1, characterized in that: The determining, based on the size of the selected area and the sliding stop position, of the overlapping area between the selected area and each preset interactive area includes: When it is determined that the sliding stop position is in the starting point screen, determining first coordinate information of the selected area after sliding based on the size of the selected area and the sliding stop position; Based on the first coordinate information and the second coordinate information of each of the preset interactive areas, an overlapping area between the selected area and each of the preset interactive areas is determined.
4. The method according to claim 1, characterized in that The determining, based on the size of the selected area and the sliding stop position, of the overlapping area between the selected area and each preset interactive area includes: When it is determined that the sliding stop position is not in the starting screen, determining the intersection information of the sliding track formed by the leaving position and the sliding stop position and the edge of the starting screen; Determine, based on the intersection information and the size of the selected area, third coordinate information when the selected area slides to the edge of the starting screen; Based on the third coordinate information and the second coordinate information of each of the preset interactive areas, an overlapping area between the selected area and each of the preset interactive areas is determined.
5. The method according to claim 4, characterized in that When it is determined that the sliding stop position is not in the starting screen, determining the intersection information of the sliding track formed by the leaving position and the sliding stop position and the edge of the starting screen, comprises: When it is determined that the sliding stop position is not in the starting point screen, dividing the plane space into quadrants according to the leaving position and the vertex of the starting point screen; Determine the quadrant to which the intersection of the sliding track formed by the exit position and the sliding stop position and the starting screen edge belongs; The intersection information is determined according to the intersection calculation formula corresponding to the quadrant, the departure position and the sliding stop position.
6. The method according to claim 1, characterized in that After determining that the interactive area with the largest overlapping area is the target interactive area, the method further includes: Determine the screen transmission status of the target screen corresponding to the target interaction area; When the screen transfer status is that screen transfer is not allowed, the starting screen is controlled to generate a prompt message that screen transfer is not allowed.
7. The method according to claim 1, characterized in that Before responding to the screen sliding operation on the selected area in the starting screen, the method further includes: In response to the screenshot touch operation on the starting screen, a screenshot image of the target application is acquired as the selected area.
8. A multi-screen sharing device, characterized in that: The device comprises: an acquisition unit, configured to acquire, in response to a screen transfer sliding operation on a selected area of a starting screen, a leaving position of the touch body when the touch body leaves the starting screen and a corresponding initial sliding speed; a position determining unit, configured to determine a sliding stop position based on the departure position and the initial sliding speed; an area determination unit, configured to determine an overlapping area between the selected area and each preset interactive area based on a size of the selected area and the sliding stop position; wherein each preset interactive area corresponds to a sharable screen; The area determination unit is used to determine the interactive area with the largest area of the overlapping area as the target interactive area, and control the target screen corresponding to the target interactive area to display the display content corresponding to the selected area.
9. A vehicle, characterized in that: The vehicle comprises: a processor and a memory; wherein the memory stores a computer program, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Remote control method and system for man-machine interaction type gradient dimming film
CN121857214A