Search

CN-121996136-A - Gesture recognition method, electronic device and storage medium

CN121996136ACN 121996136 ACN121996136 ACN 121996136ACN-121996136-A

Abstract

The application provides a gesture recognition method, electronic equipment and a storage medium, wherein the method comprises the steps of determining a damaged area and a virtual hot area of a touch screen; when a user performs a down drawing operation by taking a damaged area as a starting point, responding to detection of operation of the user in the virtual hot area, compensating starting point coordinates corresponding to the operation in the virtual hot area, so that the compensated starting point coordinates are positioned in the reference hot area, reporting the compensated starting point coordinates to an upper layer, and using the compensated starting point coordinates for gesture recognition. The method provided by the application is beneficial to effectively identifying the gestures of the user under the condition that the edge of the screen of the electronic equipment is damaged.

Inventors

  • XU ZHE
  • LIAO JINGMING
  • ZHU YICHENG
  • HE ZERUI
  • YU DONGYANG

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241108

Claims (8)

  1. 1. A gesture recognition method, applied to an electronic device, the electronic device including a touch screen, the method comprising: determining a damaged area and a virtual hot area of the touch screen; when a user performs a scribing operation with the damaged area as a starting point, responding to detection of operation of the user in the virtual hot area, compensating starting point coordinates corresponding to the operation in the virtual hot area, and enabling the compensated starting point coordinates to be located in a reference hot area; reporting the compensated starting point coordinates to an upper layer, wherein the compensated starting point coordinates are used for gesture recognition.
  2. 2. The method of claim 1, wherein the determining the damaged area of the touch screen comprises: Acquiring at least one screen data; and determining a damaged area of the touch screen in response to the at least one screen data anomaly.
  3. 3. The method of claim 1, wherein, in response to detecting a user operation in the virtual hot zone, compensating for a corresponding start point coordinate of the operation in the virtual hot zone comprises: in response to detecting a user operation in the virtual hot zone with the damaged area extent being greater than or equal to the reference hot zone extent, compensating for corresponding start point coordinates of the operation in the virtual hot zone, or And in response to detecting that the operation of a user in the virtual hot zone and the range of the damaged area exceeding the reference hot zone is smaller than a preset range threshold, compensating the starting point coordinates corresponding to the operation in the virtual hot zone.
  4. 4. A method according to any of claims 1-3, wherein, in response to detecting a user operation in the virtual hot zone, compensating for the corresponding start point coordinates of the operation in the virtual hot zone comprises: And in response to detecting the operation of a user in the virtual hot zone, judging the operation as a down-stroke operation, and compensating the starting point coordinates corresponding to the operation in the virtual hot zone.
  5. 5. The method of claim 4, wherein the determining that the operation is a swipe operation comprises: After the preset time is over, the lifting operation of the user is not detected within the preset time, and the user downward stroke distance is larger than or equal to the preset downward stroke threshold value, and the operation is judged to be downward stroke operation, or And within the preset time period, responding to the detection of the hand lifting operation of the user, wherein the user swipe distance is larger than or equal to the preset swipe threshold value, and judging the operation as a swipe operation.
  6. 6. The method according to any one of claims 1-5, wherein reporting the compensated start point coordinates to an upper layer comprises: Compensating one or more connection points by taking the compensated starting point coordinates as a starting point, so that one or more connection points and the starting point form a continuous downward drawing track, and the one or more connection points are identical with the longitudinal coordinates of the starting point; And reporting the compensated starting point coordinates and the coordinates of the one or more connecting points to an upper layer.
  7. 7. An electronic device comprising a processor and a memory, the memory being configured to store a program, the processor being configured to execute the program to implement the gesture recognition method of any one of claims 1-6.
  8. 8. A readable storage medium, characterized in that the readable storage medium stores a program, which when run on an electronic device, implements the gesture recognition method according to any one of claims 1-6.

Description

Gesture recognition method, electronic device and storage medium Technical Field The present application relates to the field of intelligent terminals, and in particular, to a gesture recognition method, an electronic device, and a storage medium. Background Gesture operations are one common operation of users on electronic devices. The user can perform gesture operations such as lower strokes, side strokes, and the like on the electronic device through the finger so as to wake up corresponding tasks. Because the touch control of the touch screen of the electronic equipment depends on the transverse and longitudinal electric signal channels on the touch screen, when the edge of the touch screen of the electronic equipment is damaged, the situation that the channels are broken easily occurs, so that the signal on the channels is abnormal, the finger touch control of a user can not be effectively detected, and the gesture operation of the user can be invalid. In the related art, a technical means is lacking to effectively recognize gestures of a user in case that the edge of a screen of an electronic device is damaged. Disclosure of Invention The embodiment of the application provides a gesture recognition method, electronic equipment and a storage medium, which are beneficial to effectively recognizing gestures of a user under the condition that the edge of a screen of the electronic equipment is damaged. In a first aspect, an embodiment of the present application provides a gesture recognition method, which is applied to an electronic device, where the electronic device includes a touch screen, and the method includes determining a damaged area and a virtual hot area of the touch screen, when a user performs a down-stroke operation with the damaged area as a starting point, compensating a starting point coordinate corresponding to the operation in the virtual hot area in response to detecting the operation of the user in the virtual hot area, so that the compensated starting point coordinate is located in a reference hot area, and reporting the compensated starting point coordinate to an upper layer, where the compensated starting point coordinate is used for gesture recognition. In the related art, when the gesture of the user cannot be identified due to the damage of the screen edge of the electronic equipment, the gesture of the user can be identified only by bypassing the damaged area of the screen through relatively complex operation. In one possible implementation manner, the determining the damaged area of the touch screen includes acquiring at least one screen data, and determining the damaged area of the touch screen in response to the at least one screen data being abnormal. In the embodiment of the application, the accuracy of judging the bad area can be improved by detecting the screen data for multiple times. In one possible implementation manner, the compensating for the starting point coordinates corresponding to the operation in the virtual hot zone in response to detecting the operation of the user in the virtual hot zone comprises compensating for the starting point coordinates corresponding to the operation in the virtual hot zone in response to detecting the operation of the user in the virtual hot zone and the damaged area range is greater than or equal to the reference hot zone range, or compensating for the starting point coordinates corresponding to the operation in the virtual hot zone in response to detecting the operation of the user in the virtual hot zone and the damaged area exceeds the reference hot zone range by less than a preset range threshold. According to the embodiment of the application, algorithm compensation is started under the condition that the bad region range exceeds a certain range of the reference hot region, so that misjudgment of a user when the user moves close to the edge can be effectively avoided. In one possible implementation manner, the compensating the starting point coordinates corresponding to the operation in the virtual hot zone in response to detecting the operation of the user in the virtual hot zone comprises compensating the starting point coordinates corresponding to the operation in the virtual hot zone in response to detecting the operation of the user in the virtual hot zone and judging the operation to be a down-stroke operation. According to the embodiment of the application, through judging the user down-drawing operation, the influence of the user click operation on the user gesture recognition can be effectively avoided. In one possible implementation manner, the judging the operation is a down stroke operation, wherein after a preset time period is overtime, the user lifting operation is not detected within the preset time period, and the user down stroke distance is larger than or equal to a preset down stroke threshold value, and the operation is judged to be the down stroke operation, or the operation is judged to be the down str