Mouse control method and device for vehicle-mounted display screen, electronic equipment and vehicle

By acquiring and processing the hand images of passengers in the car, and using Gaussian filtering and acceleration compensation technology, the problem of mouse jitter on the ceiling entertainment screen of the vehicle is solved, the stability and responsiveness of the mouse are improved, and the difficulty of operation during driving is solved. problem.

CN118860133APending Publication Date: 2024-10-29GREAT WALL MOTOR CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410844886.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

During driving, the mouse on the vehicle's ceiling-mounted entertainment screen is prone to shaking, causing difficulty in operation. Existing technology has not been able to effectively solve this problem.

Method used

By obtaining the hand image of the passenger in the car, the current mouse coordinates are determined, and through Gaussian filtering and acceleration compensation processing, the mouse coordinates are corrected to reduce jitter and ensure the stability and responsiveness of the mouse during driving.

Benefits of technology

It effectively avoids mouse jitter caused by bumps during driving, improves the stability and responsiveness of the mouse, and makes operation more convenient and accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860133A_ABST
    Figure CN118860133A_ABST
Patent Text Reader

Abstract

The invention provides a mouse control method and device for a vehicle-mounted display screen, electronic equipment and a vehicle. Relates to the technical field of vehicle control. The method comprises the following steps: acquiring a hand image of a passenger in a vehicle, and determining a current mouse coordinate according to the hand image; determining time sequence coordinates of a hand region according to the hand image, and filtering the time sequence coordinates to obtain hand shake compensation; determining a hand movement speed according to the hand image, and determining acceleration compensation based on the hand movement speed; and based on the hand shake compensation and the acceleration compensation, correcting the current mouse coordinate to obtain a corrected target mouse coordinate, and mapping the target mouse coordinate to a vehicle-mounted display screen. Therefore, the problem that the mouse shakes due to jolting in the driving process can be avoided, the mouse is more stable, and meanwhile it is guaranteed that the mouse responds in time and follows the hand rapidly when the hand moves rapidly, and the mouse can be selected in a concentrated mode when the hand moves slowly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle control technology, and in particular to a method, device, electronic equipment and vehicle for controlling a mouse of a vehicle-mounted display screen. Background Art

[0002] With the development of vehicle ceiling entertainment screens, it is more convenient to move the virtual mouse through gestures. However, during driving, the mouse is prone to shaking, making it difficult to operate, and there are also problems with the mouse not following the hand or being unstable.

[0003] In view of this, how to avoid mouse jitter when controlling the vehicle's ceiling entertainment screen with gestures has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to provide a mouse control method, device, electronic device and vehicle for a vehicle-mounted display screen, so as to solve the problem of mouse jitter when gestures are used to control a vehicle ceiling entertainment screen in the prior art.

[0005] Based on the above purpose, the first aspect of the present disclosure provides a method for controlling a mouse of a vehicle-mounted display screen, the method comprising:

[0006] Acquire a hand image of a passenger in the vehicle, and determine the current mouse coordinates according to the hand image;

[0007] Determining the time series coordinates of the hand area according to the hand image, and filtering the time series coordinates to obtain hand shake compensation;

[0008] determining a hand movement speed according to the hand image, and determining an acceleration compensation based on the hand movement speed;

[0009] Based on the hand shake compensation and the acceleration compensation, the current mouse coordinates are corrected to obtain corrected target mouse coordinates, and the target mouse coordinates are mapped to the vehicle-mounted display screen.

[0010] Based on the same inventive concept, the second aspect of the present disclosure provides a mouse control device for a vehicle-mounted display screen, comprising:

[0011] a current mouse coordinate determination module, configured to obtain a hand image of a passenger in the vehicle and determine the current mouse coordinates according to the hand image;

[0012] A hand shake compensation determination module is configured to determine the time series coordinates of the hand area according to the hand image, and filter the time series coordinates to obtain hand shake compensation;

[0013] an acceleration compensation determination module, configured to determine a hand movement speed according to the hand image, and determine acceleration compensation based on the hand movement speed;

[0014] The correction processing module is configured to perform correction processing on the current mouse coordinates based on the hand shake compensation and the acceleration compensation to obtain corrected target mouse coordinates, and map the target mouse coordinates to the vehicle-mounted display screen.

[0015] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0016] Based on the same inventive concept, the fourth aspect of the present disclosure proposes a vehicle, which includes the mouse control device for the vehicle-mounted display screen described in the second aspect or the electronic device described in the third aspect.

[0017] From the above, it can be seen that the mouse control method, device, electronic device and vehicle for the vehicle-mounted display screen provided by the present disclosure. Obtain a hand image of the passenger in the car, and determine the current mouse coordinates based on the hand image. Determine the time series coordinates of the hand area based on the hand image, and filter the time series coordinates to make the obtained hand shake compensation more accurate. Determine the hand movement speed based on the hand image, and the acceleration compensation determined based on the hand movement speed is more accurate, so that the current mouse coordinates can be corrected for different hand movement speeds. Correction processing of the current mouse coordinates based on hand shake compensation can filter hand shake and avoid the problem of mouse shake caused by bumps during driving, making the mouse more stable and easy to select the desired target. Correction processing of the current mouse coordinates based on acceleration compensation can ensure that the mouse responds in time and follows the hand quickly when the hand moves quickly, and the mouse can concentrate on selection when the hand moves slowly, making the mouse more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 is a flow chart of a mouse control method for a vehicle-mounted display screen according to an embodiment of the present disclosure;

[0020] Figure 2 is a schematic diagram of a mouse control method according to an embodiment of the present disclosure;

[0021] Figure 3 is a schematic diagram of the coordinates of two-dimensional key points of a hand according to an embodiment of the present disclosure;

[0022] Figure 4 It is a structural schematic diagram of a mouse control device for a vehicle-mounted display screen according to an embodiment of the present disclosure;

[0023] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0025] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0026] Based on the description of the background technology, the ceiling-mounted entertainment screen is a new configuration for mid-to-high-end vehicles. The entertainment screen can provide rear passengers with more entertainment options during the ride. However, commonly used application software is more suitable for touch-screen operations, such as dragging progress, adjusting volume, and adjusting brightness. Since the entertainment screen is far away from the passengers and is usually set on the ceiling, passengers need to stand up or stretch their arms for touch operations, which poses certain risks during the ride. These subtle operations cannot be performed conveniently using a remote control, and the remote control is easy to lose over time. Different passengers need to pass the remote control, which is not very convenient.

[0027] For the reasons mentioned above, a spatial interactive control ceiling screen is designed based on the Occupancy Monitoring System (OMS) for models with ceiling screens. Specifically, the OMS recognizes the user's gestures and maps them into a virtual mouse displayed on the ceiling screen. Use gestures to move the virtual mouse and perform common touch operations such as clicking, dragging, and returning. This method has better adaptability and a sense of technology for long-distance screens, and every rear passenger can operate it, making it easy to use.

[0028] However, there are great difficulties in the stability of the mouse: because the field of view (FOV) of the OMS camera is usually relatively large, the hand moves within a certain range, and the area in the camera is very small. In order to facilitate the user's operation, the hand movement range cannot be too large. Therefore, the hand movement in the camera is mapped from a small range to the large range of the virtual mouse movement on the screen. Coupled with the bumps during driving, the mouse will shake easily, causing difficulty in operation.

[0029] As mentioned above, how to avoid mouse jitter when using gestures to control the vehicle's ceiling entertainment screen has become an important research issue.

[0030] Based on the above description, if Figure 1 As shown, the mouse control method of the vehicle-mounted display screen proposed in this embodiment includes:

[0031] Step 101, obtaining a hand image of a passenger in the vehicle, and determining the current mouse coordinates according to the hand image.

[0032] During specific implementation, an image of a passenger in the vehicle is collected, and an image of a hand of the passenger in the vehicle is determined from the image of the passenger in the vehicle; a target hand area is determined from the hand image, and a mouse position corresponding to the target hand area is determined; a palm area is determined from the target hand area, and a mouse offset compensation is determined based on a center point of the palm area; and the current mouse coordinates are determined based on the mouse offset compensation and the mouse position.

[0033] Step 102, determining the time series coordinates of the hand area according to the hand image, and filtering the time series coordinates to obtain hand shake compensation.

[0034] In specific implementation, the time series coordinates are the coordinates corresponding to the hand area in multiple consecutive frames of hand images. The time series coordinates of the hand area are filtered by Gaussian filtering to obtain hand jitter compensation. Gaussian filtering mainly filters out subtle high-frequency hand jitters, so that the mouse movement still responds quickly after Gaussian filtering.

[0035] Step 103: determining the hand movement speed according to the hand image, and determining acceleration compensation based on the hand movement speed.

[0036] In specific implementation, when the hand movement speed is greater than a preset speed threshold, the acceleration compensation when the hand movement speed is faster is determined, and the current mouse coordinates are corrected based on the acceleration compensation when the hand movement speed is faster. The mouse can be quickly positioned to a certain position, or the mouse moves quickly and follows the hand when the user's hand moves over a large range.

[0037] When the hand movement speed is less than or equal to the preset speed threshold, the acceleration compensation when the hand movement speed is relatively small is determined, and the current mouse coordinates are corrected based on the acceleration compensation when the hand movement speed is relatively small. When a certain target is selected, the mouse can have a certain stickiness and is not affected by bumps and hand shaking.

[0038] Step 104: Based on the hand shake compensation and the acceleration compensation, the current mouse coordinates are corrected to obtain corrected target mouse coordinates, and the target mouse coordinates are mapped to the vehicle display screen.

[0039] In specific implementation, based on hand shake compensation and acceleration compensation, the current mouse coordinates are corrected to obtain the corrected target mouse coordinates, so that the corrected target mouse coordinates are more accurate. For example, the hand shake compensation, acceleration compensation and current mouse coordinates are summed to obtain the corrected target mouse coordinates. Alternatively, the hand shake compensation, acceleration compensation and current mouse coordinates are multiplied to obtain the corrected target mouse coordinates.

[0040] By mapping the target mouse coordinates to the vehicle display screen, touch operation on the vehicle display screen is achieved.

[0041] Through the above-mentioned embodiments, the hand image of the passenger in the car is obtained, and the current mouse coordinates are determined according to the hand image. The time series coordinates of the hand area are determined according to the hand image, and the time series coordinates are filtered to make the obtained hand shake compensation more accurate. The hand movement speed is determined according to the hand image, and the acceleration compensation determined based on the hand movement speed is more accurate, so that the current mouse coordinates can be corrected for different hand movement speeds. Correction processing of the current mouse coordinates based on hand shake compensation can filter hand shake and avoid the problem of mouse shake caused by bumps during driving, making the mouse more stable and easy to select the desired target. Correction processing of the current mouse coordinates based on acceleration compensation can ensure that the mouse responds in time and follows the hand quickly when the hand moves quickly, and the mouse can concentrate on selection when the hand moves slowly, making the mouse more stable.

[0042] In some embodiments, step 101 includes:

[0043] Step 1011: collect images of passengers in the vehicle, and determine hand images of the passengers in the vehicle from the images of passengers in the vehicle.

[0044] In the specific implementation, the in-vehicle passenger monitoring system OMS is used to collect images of passengers in the vehicle. The collected images of passengers in the vehicle include the images of the passengers themselves and the images of the environment in which the passengers are located. The hand images of the passengers in the vehicle are determined from the images of the passengers themselves, so that the mouse coordinates mapped to the entertainment screen can be determined based on the hand images.

[0045] Step 1012, determining a target hand area from the hand image, and determining a mouse position corresponding to the target hand area.

[0046] In a specific implementation, the target hand region is determined from the hand image by using intersection-over-union filtering. Alternatively, the target hand region is determined from the hand image by using a target tracking algorithm. Alternatively, the first hand region is determined from the hand image by using intersection-over-union filtering, the second hand region is determined from the hand image by using a target tracking algorithm, and the target hand region is determined from the first hand region and the second hand region.

[0047] The target hand region is the hand region in the hand image of the current frame.

[0048] Step 1013, determining a palm area from the target hand area, and determining a mouse offset compensation based on a center point of the palm area.

[0049] In specific implementation, a first center point of the palm area is determined on the target hand area through a key point algorithm; a second center point of the palm area is determined on the target hand area through a target tracking algorithm; and mouse offset compensation is determined based on the deviation between the first center point and the second center point.

[0050] Step 1014, determining the current mouse coordinates according to the mouse offset compensation and the mouse position.

[0051] In a specific implementation, the first mouse coordinates corresponding to the mouse position are determined; the first mouse coordinates are corrected according to the mouse offset compensation to obtain the current mouse coordinates.

[0052] Through the above solution, the mouse offset compensation is determined based on the center point of the palm area, so that the determined mouse offset compensation is more accurate. The mouse position is corrected based on the mouse offset compensation, so that the current mouse coordinates obtained are more accurate.

[0053] In some embodiments, step 1011 includes:

[0054] Step 1011A, using a pre-trained hand detection algorithm, determine at least one hand image of a passenger in the vehicle from the passenger images in the vehicle.

[0055] In a specific implementation, the hand detection algorithm of the infrared camera of the vehicle occupant monitoring system (OMS IR camera) is used to determine at least one hand image of the passenger in the vehicle from the passenger image taken by the IR camera. The hand detection algorithm is a lightweight and real-time deep learning model that optimizes the OMS camera.

[0056] Step 1011B: determine a hand image corresponding to the activation hand that interacts with the vehicle-mounted display screen from the at least one hand image.

[0057] In a specific implementation, when there are multiple hand images in the passenger image in the vehicle, an activated hand is determined from the multiple hands, and a hand image corresponding to the activated hand is determined. The activated hand refers to a hand that is already in a virtual mouse activation state and is using spatial interaction.

[0058] Through the above scheme, by determining the hand image corresponding to the activated hand interacting with the vehicle-mounted display screen from at least one hand image, the subsequent hand key point algorithm only needs to be executed once, which can save the amount of calculation and make the processing speed faster.

[0059] In some embodiments, step 1012 includes:

[0060] Step 1012A, determining the intersection-and-union ratio between the hand region of the previous frame and the hand region of the current frame of the hand image, and taking the region with the largest intersection-and-union ratio as the first hand region of the current frame.

[0061] In a specific implementation, the hand image is a plurality of frames of hand images, wherein the hand region of the previous frame is the hand region in the collected hand image of the previous frame, and the hand region of the current frame is the hand region in the collected hand image of the current frame.

[0062] Through Intersetion Over Union (IoU) filtering, the IoU between the hand region of the previous frame and the hand region of the current frame is determined, and the region with the largest IoU is used as the first hand region. The first hand region is the hand region of the current frame determined based on the IoU algorithm.

[0063] Step 1012B, based on the hand region of the previous frame of the hand image, the hand region in the hand image is tracked by a target tracking algorithm to obtain a second hand region of the current frame.

[0064] In a specific implementation, the multi-hand selection module includes a target tracking algorithm, wherein the target tracking algorithm is a MedianFlow algorithm. The MedianFlow algorithm is an algorithm for target tracking, which can track the position and shape of the target in continuous video frames.

[0065] The initialization image of the MedianFlow algorithm is the hand area tracked in the previous frame. The MedianFlow algorithm can track and locate the second hand area of ​​the current frame. The second hand area is the hand area of ​​the current frame determined based on the target tracking algorithm.

[0066] Step 1012C: determine the overlapping area between the first hand region and the second hand region.

[0067] In a specific implementation, the intersection over union (IoU) ratio between the first hand region and the second hand region is determined by filtering, and the overlap area is determined based on the intersection over union (IoU) ratio between the first hand region and the second hand region.

[0068] Step 1012D, in response to determining that the overlapping area is greater than a preset area threshold, taking the first hand area as a target hand area.

[0069] In specific implementation, when the overlapping area is greater than a preset area threshold, it means that the second hand area located by the target tracking algorithm has a large IoU overlap with the first hand area filtered by the intersection over union (IoU), then the first hand area filtered by IoU is used as the target hand area of ​​the current frame.

[0070] Step 1012E, in response to determining that the overlapping area is less than or equal to a preset area threshold, taking the second hand area as a target hand area.

[0071] In specific implementation, when the overlapping area is less than or equal to the preset area threshold, it means that the second hand area located by the target tracking algorithm has a small IoU overlap with the first hand area filtered by the intersection over union (IoU). The hand detection algorithm may fail, and the second hand area tracked by the target tracking algorithm is used as the target hand area of ​​the current frame.

[0072] In addition, the MedianFlow tracking algorithm is only executed continuously for a preset number of times. When the hand detection algorithm fails after the MedianFlow tracking algorithm is executed for the preset number of times, it is determined that the hand is no longer within the camera range and no longer tracked.

[0073] Through the above scheme, the target hand area of ​​the current frame is determined more accurately through the intersection over union (IoU) filtering and the target tracking algorithm. When the second hand area located by the target tracking algorithm has a small IoU overlap with the first hand area filtered by the intersection over union (IoU), the second hand area tracked by the target tracking algorithm is used as the target hand area of ​​the current frame, avoiding the problem of inaccurate positioning of the hand area due to failure of the hand detection algorithm.

[0074] In some embodiments, step 1013 includes:

[0075] Step 1013A: determine the first center point of the palm area on the target hand area through a key point algorithm.

[0076] In a specific implementation, the two-dimensional key point coordinates of the target hand area are identified through a key point algorithm. The two-dimensional key coordinates corresponding to the palm area are determined, and the first center point is determined based on the two-dimensional key coordinates corresponding to the palm area. The key point algorithm is a hand key point algorithm, and the first center point is the center point of the palm area determined by the key point algorithm.

[0077] like Figure 3 As shown, through the key point algorithm, the 21 two-dimensional key point coordinates of the target hand area are identified. The area composed of the key points of index [0, 2, 5, 9, 13, 17] is taken as the palm area Box_plam, and the first center point center_p is determined based on the two-dimensional key coordinates corresponding to the palm area.

[0078] Among them, the hand key point algorithm is a lightweight model designed based on mobilenetv2 for the backbone, and is optimized on infrared (IR) data. It only takes 2ms to identify the 21 key points of the hand.

[0079] Step 1013B: determine a second center point of the palm area on the target hand area through a target tracking algorithm.

[0080] In specific implementation, the center point of the palm area is tracked by a target tracking algorithm to obtain a second center point center_t, wherein the second center point is the center point of the palm area determined by the target tracking algorithm.

[0081] Step 1013C, determining mouse offset compensation based on the deviation between the first center point and the second center point.

[0082] During specific implementation, difference processing is performed on the position coordinates of the first center point center_p and the position coordinates of the second center point center_t to obtain mouse offset compensation.

[0083] Through the above scheme, the first center point of the palm area is determined by the key point algorithm, the second center point of the palm area is determined by the target tracking algorithm, and the mouse offset compensation is determined based on the deviation between the first center point and the second center point, so that the determined mouse offset compensation is more accurate.

[0084] In some embodiments, step 102 includes:

[0085] Step 1021, determine the window parameters and standard deviation parameters of the Gaussian filter.

[0086] Step 1022: Determine a Gaussian weight parameter corresponding to the Gaussian filter according to the window parameter and the jitter parameter.

[0087] Step 1023, performing product processing on the Gaussian weight parameter and the time series coordinate to obtain the hand shake compensation.

[0088] In a specific implementation, the time series coordinates are filtered by Gaussian filtering to obtain hand shake compensation.

[0089] W gaussian =init weight (L window ,Sigma)

[0090] Among them, W gaussian is the Gaussian weight parameter, init weight () is the operation function of Gaussian weight parameter, L window is the window parameter of radius length, and Sigma is the standard deviation parameter.

[0091]

[0092] Among them, pos t is the weighted mouse position at time t (hand shake compensation), pos i is the mouse position at time i (time series coordinates), W i is the Gaussian weight parameter at time i.

[0093] If the window parameter of Gaussian filter is too large, the mouse movement will be slow and not follow the hand. Therefore, the Gaussian filter mainly filters out high-frequency jitter, and the standard deviation parameter sigma is small. The overall mouse movement still responds quickly after Gaussian filtering.

[0094] Through the above scheme, the time series coordinates are smoothed and filtered by Gaussian filtering, which can filter out subtle and high-frequency hand shakes, making the determined hand shake compensation more accurate.

[0095] In some embodiments, step 103 includes:

[0096] Step 1031, determining whether the hand movement speed is greater than a preset speed threshold.

[0097] Step 1032: In response to determining that the hand movement speed is greater than a preset speed threshold, a first speed coefficient is obtained, and the acceleration compensation is determined based on the first speed coefficient.

[0098] Step 1033: In response to determining that the hand movement speed is less than or equal to a preset speed threshold, a second speed coefficient is obtained, and the acceleration compensation is determined based on the second speed coefficient.

[0099] In specific implementation, when the user moves his hand quickly, the mouse is quickly positioned at a certain position. When the user's hand moves over a large range, the mouse moves quickly and follows the hand. However, when selecting a certain target, the mouse has a certain degree of stickiness and is not affected by bumps and hand shaking. Therefore, the inertia of the mouse movement is controlled by the hand movement speed. When the hand moves fast, the inertia is small. When the hand moves slightly in a small range and the speed is slow, the inertia is increased to improve the stickiness of the mouse.

[0100] When the hand movement speed is greater than the preset speed threshold, the acceleration compensation is:

[0101]

[0102] Among them, v is the hand movement speed, maxv is the preset maximum movement speed, minv is the preset minimum movement speed, and w is the acceleration compensation.

[0103] When the hand movement speed is less than or equal to the preset speed threshold, the acceleration compensation is:

[0104] zero e =-6.907755278982137

[0105]

[0106] Among them, v is the hand movement speed, maxv is the preset maximum movement speed, minv is the preset minimum movement speed, and w is the acceleration compensation.

[0107] Through the above scheme, the acceleration compensation determined according to the hand movement speed is made more accurate. When the hand movement speed is greater than the preset speed threshold, the acceleration compensation determined based on the first speed coefficient is used to correct the current mouse coordinates, so that the mouse can be quickly positioned at a certain position, or the mouse moves quickly and follows the hand when the user's hand moves over a large range. When the hand movement speed is less than or equal to the preset speed threshold, the acceleration compensation determined based on the second speed coefficient is used to correct the current mouse coordinates, so that when selecting a certain target, the mouse has a certain degree of stickiness and is not affected by bumps and hand shaking.

[0108] Through the above-mentioned embodiments, the hand image of the passenger in the car is obtained, and the current mouse coordinates are determined according to the hand image. The time series coordinates of the hand area are determined according to the hand image, and the time series coordinates are filtered to make the obtained hand shake compensation more accurate. The hand movement speed is determined according to the hand image, and the acceleration compensation determined based on the hand movement speed is more accurate, so that the current mouse coordinates can be corrected for different hand movement speeds. Correction processing of the current mouse coordinates based on hand shake compensation can filter hand shake and avoid the problem of mouse shake caused by bumps during driving, making the mouse more stable and easy to select the desired target. Correction processing of the current mouse coordinates based on acceleration compensation can ensure that the mouse responds in time and follows the hand quickly when the hand moves quickly, and the mouse can concentrate on selection when the hand moves slowly, making the mouse more stable.

[0109] It should be noted that the embodiments of the present disclosure may be further described in the following manner:

[0110] like Figure 2 As shown, Figure 2 Schematic diagram of a mouse control method according to an embodiment of the present disclosure.

[0111] First, the hand detection algorithm of the infrared camera of the in-vehicle monitoring system (OMS IR camera) detects the human hand part in the picture taken by the IR camera. The hand detection algorithm is a lightweight and real-time deep learning model that is specially optimized for the OMS camera.

[0112] Since there may be multiple hands in the picture, select the activated hand. The activated hand refers to the hand that is already in the virtual mouse activation state and is using spatial interaction. Selecting the activated hand for the subsequent algorithm process can save calculations and make the overall processing speed faster. The subsequent hand key point algorithm only runs once.

[0113] Multi-hand selection module:

[0114] Intersection Over Union (IoU) filtering: Perform an IoU operation on the hand area detected in the current frame and the hand area in the previous frame, and select the area with the largest IoU as the first hand area in the current frame.

[0115] Tracking module: The multi-hand selection module includes a target tracking algorithm, wherein the target tracking algorithm is the MedianFlow algorithm. The MedianFlow algorithm is an algorithm for target tracking that can track the position and shape of the target in continuous video frames. The initialization image of the MedianFlow algorithm is the hand area tracked in the previous frame. The MedianFlow algorithm can track and locate the second hand area of ​​the current frame. When the second hand area located by the target tracking algorithm has a large overlap with the first hand area filtered by the intersection over union ratio (IoU), the first hand area filtered by IoU is used as the target hand area of ​​the current frame. When the second hand area located by the target tracking algorithm has a small overlap with the first hand area filtered by the intersection over union ratio (IoU), it may be that the hand detection algorithm fails, and the second hand area tracked by the target tracking algorithm is used as the target hand area of ​​the current frame. Note that the MedianFlow tracking algorithm is only executed continuously for a preset number of times. When the MedianFlow tracking algorithm is executed for a preset number of times, the hand detection algorithm is always invalid, and it is determined that the hand is no longer within the camera range and no longer tracked. In addition, the target tracking algorithm also needs to calculate a mouse offset compensation based on the center point of the palm area and the center point of the hand landmark in the previous frame, which is mainly used for mouse offset compensation.

[0116] After locating the target hand area of ​​the current frame, the hand key point algorithm is used to identify the coordinates of 21 two-dimensional key points of the hand. Figure 3 Schematic diagram of the coordinates of the two-dimensional key points of the hand in the embodiment of the present disclosure. Figure 3 As shown, the area composed of the key points of index [0, 2, 5, 9, 13, 17] is used as the palm area Box_plam, and the first center point center_p is determined based on the two-dimensional key coordinates corresponding to the palm area. Among them, the hand key point algorithm is a lightweight model designed for backbone based on mobilenetv2, and is optimized on IR data. It only takes 2ms to identify the 21 key points of the hand. Since the first center point center_p of the palm area calculated by the hand key point and the second center point center_t of the tracked palm area may deviate, the final located center point is based on the change of the key point. Therefore, the offset between the first center point and the second center point is recorded and used as the final mouse offset compensation. The center of the hand area of ​​the hand key point is not directly used because the stability of the hand area brought by tracking is higher than the stability of the hand key point predicted by the model (the hand key point will shake). However, considering that the offset error may increase over time, the mouse offset compensation moves to the center position (0.5, 0.5) by moving average. The mouse offset compensation is calculated as follows:

[0117] c x =Box t-1 .left+(Box t-1 .right-Box t-1 .left)×Box t-1 .xratio

[0118] c y =Box t-1 .top+(Box t-1 .bottom-Box t-1 .top)×Box t-1 .yratio

[0119] Among them, (c x , c y ) is the first center point of the palm area, c x is the horizontal coordinate value of the first center point, c y The vertical coordinate value of the first center point. t-1 Box is the palm area at time t-1, which includes the upper left corner and lower right corner (left, top, right, bottom) and the ratio of the center offset. t-1 .left is the left point of the palm area at time t-1, Box t-1 .right is the right point of the palm area at time t-1, Box t-1 .top is the upper point of the palm area at time u-1, Box t-1 .bottom is the lower point of the palm area at time t-1. Box t-1 .xratio is the horizontal offset ratio of the palm area at time t-1, Box t-1 The initial value of .xratio is 0.5, Box t-1 .yratio is the vertical offset ratio of the palm area at time t-1, Box t-1 The initial value of .yratio is 0.5.

[0120]

[0121] Among them, Box landmark is the palm area calculated by the key point algorithm.

[0122] Timing smoothing: Gaussian filtering is used to smooth the timing coordinates and filter out subtle high-frequency jitter:

[0123] W gaussian =init weight (L window,Sigma)

[0124] Among them, W gaussian is the Gaussian weight parameter, init weight () is the operation function of Gaussian weight parameter, L wimdow is the window parameter of radius length, and Sigma is the standard deviation parameter.

[0125]

[0126] Among them, Pos t is the weighted mouse position at time t (hand shake compensation), Pos i is the mouse position at time i (time series coordinate), W i is the Gaussian weight parameter at time i.

[0127] The window parameter of Gaussian smoothing should not be too large, otherwise the mouse movement will be very slow and not follow the hand. Therefore, the Gaussian filter mainly filters out high-frequency jitter, and the jitter parameter sigma is small. The overall mouse movement still responds quickly after Gaussian filtering.

[0128] Acceleration smoothness: When the user moves his hand quickly, the mouse is quickly positioned at a certain position. When the user's hand moves over a large range, the mouse moves quickly and follows the hand. However, when selecting a certain target, the mouse has a certain degree of stickiness and is not affected by bumps and hand shaking. Therefore, the inertia of the mouse movement is controlled by the speed of hand movement. When the hand moves quickly, the inertia is small. When the hand moves slightly in a small range and the speed is slow, the inertia is increased to improve the stickiness of the mouse.

[0129] When the hand movement speed is greater than the preset speed threshold, the acceleration compensation is:

[0130]

[0131] Among them, v is the hand movement speed, maxv is the preset maximum movement speed, minv is the preset minimum movement speed, and w is the acceleration compensation.

[0132] When the hand movement speed is less than or equal to the preset speed threshold, the acceleration compensation is:

[0133] zero e =-6.907755278982137

[0134]

[0135] Among them, v is the hand movement speed, maxv is the preset maximum movement speed, minv is the preset minimum movement speed, and w is the acceleration compensation.

[0136] Finally, based on hand shake compensation and acceleration compensation, the current mouse coordinates are optimized: pos x =pos x +(Box t .right-Box t .left)×(Box t .xratio-Box t-1 .xratio)pos y =pos y +(Box t .bottom-Box t .top)×(Box t .yratio-Box t-1 .yratio)AvgPos=AvgPos×(1-w)+pos×w

[0137] Among them, AvgPos is the target mouse coordinate, which is updated iteratively.

[0138] Through the above embodiments, by optimizing the stability of the virtual mouse, the virtual mouse can follow the user's hand more closely when the user's hand moves quickly, thereby achieving the purpose of quickly locating the target. When a target is selected, the bumps and jitters are filtered so that the mouse is located on the target, which is convenient for touch operation.

[0139] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0140] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying 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.

[0141] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a mouse control device for a vehicle-mounted display screen.

[0142] refer to Figure 4 , the mouse control device of the vehicle-mounted display screen comprises:

[0143] The current mouse coordinate determination module 401 is configured to obtain a hand image of a passenger in the vehicle and determine the current mouse coordinates according to the hand image;

[0144] A hand shake compensation determination module 402 is configured to determine the time series coordinates of the hand area according to the hand image, and filter the time series coordinates to obtain hand shake compensation;

[0145] an acceleration compensation determination module 403, configured to determine a hand movement speed according to the hand image, and determine acceleration compensation based on the hand movement speed;

[0146] The correction processing module 404 is configured to perform correction processing on the current mouse coordinates based on the hand shake compensation and the acceleration compensation to obtain corrected target mouse coordinates, and map the target mouse coordinates to the vehicle-mounted display screen.

[0147] In some embodiments, the current mouse coordinate determination module 401 includes:

[0148] A hand image determining unit is configured to collect an in-vehicle passenger image and determine a hand image of the in-vehicle passenger from the in-vehicle passenger image;

[0149] a mouse position determination unit, configured to determine a target hand region from the hand image, and determine a mouse position corresponding to the target hand region;

[0150] a mouse offset compensation determination unit, configured to determine a palm area from the target hand area, and determine a mouse offset compensation based on a center point of the palm area;

[0151] The current mouse coordinate determining unit is configured to determine the current mouse coordinates according to the mouse offset compensation and the mouse position.

[0152] In some embodiments, the hand image determination unit includes:

[0153] A first hand image determination subunit is configured to determine at least one hand image of a passenger in the vehicle from the passenger image in the vehicle using a pre-trained hand detection algorithm;

[0154] The second hand image determination subunit is configured to determine a hand image corresponding to an activation hand that interacts with the vehicle-mounted display screen from the at least one hand image.

[0155] In some embodiments, the mouse position determination unit includes:

[0156] an IoU determining subunit, configured to determine an IoU between a hand region of a previous frame and a hand region of a current frame of the hand image, and take a region with a maximum IoU as a first hand region of the current frame;

[0157] A tracking processing subunit is configured to track the hand region in the hand image based on the hand region of the previous frame of the hand image by using a target tracking algorithm to obtain a second hand region of the current frame;

[0158] an overlap area determination subunit, configured to determine an overlap area between the first hand region and the second hand region;

[0159] a first target hand region determining subunit, configured to, in response to determining that the overlap area is greater than a preset area threshold, take the first hand region as a target hand region;

[0160] The second target hand region determination subunit is configured to, in response to determining that the overlap area is less than or equal to a preset area threshold, take the second hand region as the target hand region.

[0161] In some embodiments, the mouse offset compensation determination unit includes:

[0162] A first center point determination subunit is configured to determine a first center point of a palm area on the target hand area by a key point algorithm;

[0163] A second center point determination subunit is configured to determine a second center point of a palm area on the target hand area by using a target tracking algorithm;

[0164] The mouse offset compensation determination subunit is configured to determine the mouse offset compensation based on a deviation between the first center point and the second center point.

[0165] In some embodiments, the hand shake compensation determination module 402 includes:

[0166] A parameter determination unit, configured to determine a window parameter and a standard deviation parameter of the Gaussian filter;

[0167] A Gaussian parameter determination unit, configured to determine a Gaussian weight parameter corresponding to the Gaussian filter according to the window parameter and the jitter parameter;

[0168] The hand shake compensation determination unit is configured to perform a product process on the Gaussian weight parameter and the time series coordinate to obtain the hand shake compensation.

[0169] In some embodiments, the acceleration compensation determination module 403 includes:

[0170] A hand movement speed determination unit, configured to determine whether the hand movement speed is greater than a preset speed threshold;

[0171] a first acceleration compensation determination unit, configured to obtain a first speed coefficient in response to determining that the hand movement speed is greater than a preset speed threshold, and determine the acceleration compensation based on the first speed coefficient;

[0172] The second acceleration compensation determination unit is configured to obtain a second speed coefficient in response to determining that the hand movement speed is less than or equal to a preset speed threshold, and determine the acceleration compensation based on the second speed coefficient.

[0173] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0174] The device of the above embodiment is used to implement the corresponding vehicle display screen mouse control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0175] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the mouse control method for the vehicle display screen described in any of the above embodiments is implemented.

[0176] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0177] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0178] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0179] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0180] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB (Universal Serial Bus), network cable, etc.), or through a wireless mode (such as mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).

[0181] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0182] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0183] The electronic device of the above embodiment is used to implement the corresponding vehicle display screen mouse control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0184] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the mouse control method of the vehicle display screen as described in any of the above embodiments.

[0185] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0186] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the mouse control method of the vehicle display screen as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0187] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a vehicle, including the mouse control device of the vehicle display screen, or the electronic device, or the storage medium in the above-mentioned embodiments, and the vehicle equipment implements the mouse control method of the vehicle display screen described in any of the above embodiments.

[0188] The vehicle of the above-mentioned embodiment is used to implement the mouse control method of the vehicle display screen described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0189] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0190] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0191] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0192] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A method for controlling a mouse of a vehicle-mounted display screen, characterized in that: The method comprises: Acquire a hand image of a passenger in the vehicle, and determine the current mouse coordinates according to the hand image; Determining the time series coordinates of the hand area according to the hand image, and filtering the time series coordinates to obtain hand shake compensation; determining a hand movement speed according to the hand image, and determining an acceleration compensation based on the hand movement speed; Based on the hand shake compensation and the acceleration compensation, the current mouse coordinates are corrected to obtain corrected target mouse coordinates, and the target mouse coordinates are mapped to the vehicle-mounted display screen.

2. The method according to claim 1, characterized in that The step of acquiring a hand image of a passenger in the vehicle and determining the current mouse coordinates according to the hand image includes: Collecting an image of a passenger in the vehicle, and determining an image of a hand of the passenger in the vehicle from the image of the passenger in the vehicle; Determine a target hand area from the hand image, and determine a mouse position corresponding to the target hand area; Determining a palm area from the target hand area, and determining a mouse offset compensation based on a center point of the palm area; The current mouse coordinates are determined based on the mouse offset compensation and the mouse position.

3. The method according to claim 2, characterized in that The step of determining a hand image of a passenger in the vehicle from the passenger image in the vehicle comprises: Determine at least one hand image of a passenger in the vehicle from the passenger images in the vehicle using a pre-trained hand detection algorithm; A hand image corresponding to an activation hand interacting with the in-vehicle display screen is determined from the at least one hand image.

4. The method according to claim 2, characterized in that: The determining a target hand region from the hand image comprises: Determine an intersection-and-union ratio between a hand region of a previous frame and a hand region of a current frame of the hand image, and use a region with a maximum intersection-and-union ratio as a first hand region of the current frame; Based on the hand region of the previous frame of the hand image, the hand region in the hand image is tracked by a target tracking algorithm to obtain a second hand region of the current frame; determining an overlapping area between the first hand region and the second hand region; In response to determining that the overlap area is greater than a preset area threshold, taking the first hand area as a target hand area; In response to determining that the overlapping area is less than or equal to a preset area threshold, the second hand area is used as a target hand area.

5. The method according to claim 2, characterized in that: The determining of a palm area from the target hand area, and determining a mouse offset compensation based on a center point of the palm area, comprises: Determine a first center point of a palm region on the target hand region by a key point algorithm; Determine a second center point of the palm area on the target hand area by a target tracking algorithm; A mouse offset compensation is determined based on a deviation between the first center point and the second center point.

6. The method according to claim 1, characterized in that The filtering process of the time series coordinates to obtain hand shake compensation includes: Determine the window parameters and standard deviation parameters of Gaussian filtering; Determine a Gaussian weight parameter corresponding to the Gaussian filter according to the window parameter and the jitter parameter; The Gaussian weight parameter is multiplied by the time series coordinate to obtain the hand shake compensation.

7. The method according to claim 1, characterized in that The determining of acceleration compensation based on the hand movement speed comprises: Determining whether the hand movement speed is greater than a preset speed threshold; In response to determining that the hand movement speed is greater than a preset speed threshold, obtaining a first speed coefficient, and determining the acceleration compensation based on the first speed coefficient; In response to determining that the hand movement speed is less than or equal to a preset speed threshold, a second speed coefficient is obtained, and the acceleration compensation is determined based on the second speed coefficient.

8. A mouse control device for a vehicle-mounted display screen, characterized in that: include: a current mouse coordinate determination module, configured to obtain a hand image of a passenger in the vehicle and determine the current mouse coordinates according to the hand image; A hand shake compensation determination module is configured to determine the time series coordinates of the hand area according to the hand image, and filter the time series coordinates to obtain hand shake compensation; an acceleration compensation determination module, configured to determine a hand movement speed according to the hand image, and determine acceleration compensation based on the hand movement speed; The correction processing module is configured to perform correction processing on the current mouse coordinates based on the hand shake compensation and the acceleration compensation to obtain corrected target mouse coordinates, and map the target mouse coordinates to the vehicle-mounted display screen.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A vehicle, characterized in that: A mouse control device comprising the vehicle-mounted display screen as claimed in claim 8 or an electronic device as claimed in claim 9.

Citation Information

Cited By

  • Air mouse positioning method, electronic equipment and computer readable storage medium

    CN119225544A