Method and apparatus for separating sensing area during hovering control, and hovering control remote controller
Abstract
A method includes a computer device that determines a first sensing central point of a second sensing area and a second sensing central point of a third sensing area based on sensing data on a hovering control panel at a reference moment, determines an area segmentation line of a first sensing area based on the first sensing central point and the second sensing central point, and segments, based on the area segmentation line, the first sensing area generated at a first moment to obtain a first sensing control area and a second sensing control area such that, a case in which sensing areas generated by two objects are combined or a weaker sensing area is covered when the two objects are in proximity or overlap can be effectively avoided.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method comprising:
obtaining hovering sensing area data of a hovering operation of a user above a hovering control panel in a first time period, wherein the hovering sensing area data comprises sampling moments in the first time period and first sensing data on the hovering control panel at each of the sampling moments, wherein the sampling moments comprise a first moment and a reference moment, wherein second sensing data of the first sensing data at the first moment comprise a first sensing area, wherein third sensing data of the first sensing data at the reference moment comprise a second sensing area and a third sensing area, and wherein the reference moment is in one of the sampling moments closest to the first moment; determining a first sensing central point of the second sensing area and a second sensing central point of the third sensing area; determining, based on the first sensing central point and the second sensing central point, an area segmentation line of the first sensing area; and segmenting, based on the area segmentation line, the first sensing area to obtain a first sensing control area and a second sensing control area, wherein the first moment is in one of the sampling moments when the first sensing central point and the second sensing central points are closest together or overlap.
2 . The method of claim 1 , wherein determining the first sensing central point and the second sensing central point comprises:
determining a point with a maximum sensing value in the second sensing area as the first sensing central point; and determining a point with a maximum sensing value in the third sensing area as the second sensing central point.
3 . The method of claim 1 , wherein determining the area segmentation line comprises:
determining, based on a connection line between the first sensing central point and the second sensing central point, a target area that is in the first sensing area and that is perpendicular to the connection line; determining, based on the target area, an area segmentation point of the first sensing area; and obtaining, based on the area segmentation point, the area segmentation line.
4 . The method of claim 3 , wherein determining the area segmentation point comprises:
dividing, based on a direction in which the connection line is located and a preset interval value, the target area into row areas that are consistent with the direction; and determining a point with a minimum sensing value in each row area as the area segmentation point.
5 . The method of claim 1 , further comprising:
determining a first area sensing characteristic value of the first sensing control area and a second area sensing characteristic value of the second sensing control area; and when a difference between the first area sensing characteristic value and the second area sensing characteristic value is greater than a preset difference threshold:
determining, based on a first start point and a sensing value table of the hovering control panel at the first moment, a first target sensing control area, wherein the first start point has a maximum sensing value in the first sensing control area; and
determining, based on a second start point and the sensing value table, a second target sensing control area, wherein the second start point has a maximum sensing value in the second sensing control area.
6 . The method of claim 5 , wherein the sensing value table comprises a first sensing value of each point on the hovering control panel, and wherein determining the first target sensing control area comprises:
determining, as a first target point, a first point that is in points adjacent to the first start point and that comprises a second sensing value that is less than a third sensing value of the first start point; adding the first start point and the first target point to a first target point set; determining whether a second point comprising a fourth sensing value that is less than the second sensing value exists in the points; when the second point exists:
determining the second point as the first target point; and
adding the first target point to the first target point set; and
determining, based on the first target point set, the first target sensing control area.
7 . The method of claim 5 , wherein determining the first area sensing characteristic value and the second area sensing characteristic value comprises:
determining an average value of sensing values of all points in the first sensing control area as the first area sensing characteristic value; and determining an average value of sensing values of all points in the second sensing control area as the second area sensing characteristic value.
8 . The method of claim 1 , further comprising:
obtaining initial hovering control panel sensing data of the hovering operation of the user above the hovering control panel in the first time period, wherein the initial hovering control panel sensing data comprises the sampling moments and a sensing value table of the hovering control panel at each of the sampling moments, and wherein the sensing value table comprises a first sensing value of each point on the hovering control panel before obtaining the hovering sensing area data; determining, as a target point, a point that is in the sensing value table and that comprises a second sensing value greater than a preset sensing threshold; and determining, based on the target point, the first sensing data.
9 . The method of claim 1 , wherein a sensing value of the first sensing area, the second sensing area, or the third sensing area comprises a capacitance value.
10 . A computer device comprising:
a memory configured to store instructions; and one or more processors coupled to the memory and configured to execute the instructions to cause the computer device to:
obtain hovering sensing area data of a hovering operation of a user above a hovering control panel in a first time period, wherein the hovering sensing area data comprises sampling moments in the first time period and first sensing data on the hovering control panel at each of the sampling moments, wherein the sampling moments comprise a first moment and a reference moment, wherein second sensing data of the first sensing data at the first moment comprise a first sensing area, wherein third sensing data of the first sensing data at the reference moment comprise a second sensing area and a third sensing area, and wherein the reference moment is in one of the sampling moments closest to the first moment;
determine a first sensing central point of the second sensing area and a second sensing central point of the third sensing area;
determine, based on the first sensing central point and the second sensing central point, an area segmentation line of the first sensing area; and
segment, based on the area segmentation line, the first sensing area to obtain a first sensing control area and a second sensing control area, wherein the first moment is in one of the sampling moments when the first sensing central point and the second sensing central points are closest together or overlap.
11 . The computer device of claim 10 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
determine a point with a maximum sensing value in the second sensing area as the first sensing central point; and determine a point with a maximum sensing value in the third sensing area as the second sensing central point.
12 . The computer device of claim 10 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
determine, based on a connection line between the first sensing central point and the second sensing central point, a target area that is in the first sensing area and that is perpendicular to the connection line; determine, based on the target area, an area segmentation point of the first sensing area; and obtain, based on the area segmentation point, the area segmentation line.
13 . The computer device of claim 12 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
divide, based on a direction in which the connection line is located and a preset interval value, the target area into row areas that are consistent with the direction; and determine a point with a minimum sensing value in each row area as the area segmentation point.
14 . The computer device of claim 10 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
determine a first area sensing characteristic value of the first sensing control area and a second area sensing characteristic value of the second sensing control area; and when a difference between the first area sensing characteristic value and the second area sensing characteristic value is greater than a preset difference threshold:
determine, based on a first start point and a sensing value table of the hovering control panel at the first moment, a first target sensing control area, wherein the first start point has a maximum sensing value in the first sensing control area; and
determine, based on a second start point and the sensing value table, a second target sensing control area, wherein the second start point has a maximum sensing value in the second sensing control area.
15 . The computer device of claim 14 , wherein the sensing value table comprises a first sensing value of each point on the hovering control panel, and wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
determine, as a first target point, a first point that is in points adjacent to the first start point and that comprises a second sensing value that is less than a third sensing value of the first start point; add the first start point and the first target point to a first target point set; determine whether a second point comprising a fourth sensing value that is less than the second sensing value exists in the points; when the second point exists:
determine the second point as the first target point; and
add the first target point to the first target point set; and
determine, based on the first target point set, the first target sensing control area.
16 . The computer device of claim 14 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
determine an average value of sensing values of all points in the first sensing control area as the first area sensing characteristic value; and determine an average value of sensing values of all points in the second sensing control area as the second area sensing characteristic value.
17 . The computer device of claim 10 , wherein the one or more processors are further configured to execute the instructions to cause the computer device to:
obtain initial hovering control panel sensing data of the hovering operation of the user above the hovering control panel in the first time period, wherein the initial hovering control panel sensing data comprises the sampling moments and a sensing value table of the hovering control panel at each of the sampling moments, and wherein the sensing value table comprises a first sensing value of each point on the hovering control panel before obtaining the hovering sensing area data; determine, as a target point, a point that is in the sensing value table and that comprises a second sensing value greater than a preset sensing threshold; and determine, based on the target point, the first sensing data.
18 . The computer device of claim 10 , wherein a sensing value of the first sensing area, the second sensing area, or the third sensing area comprises a capacitance value.
19 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by one or more processors, cause a computer device to:
obtain hovering sensing area data of a hovering operation of a user above a hovering control panel in a first time period, wherein the hovering sensing area data comprises sampling moments in the first time period and first sensing data on the hovering control panel at each of the sampling moments, wherein the sampling moments comprise a first moment and a reference moment, wherein second sensing data of the first sensing data at the first moment comprise a first sensing area, wherein third sensing data of the first sensing data at the reference moment comprise a second sensing area and a third sensing area, and wherein the reference moment is in one of the sampling moments closest to the first moment; determine a first sensing central point of the second sensing area and a second sensing central point of the third sensing area; determine, based on the first sensing central point and the second sensing central point, an area segmentation line of the first sensing area; and segment, based on the area segmentation line, the first sensing area to obtain a first sensing control area and a second sensing control area, wherein the first moment is in one of the sampling moments when the first sensing central point and the second sensing central points are closest together or overlap.
20 . The computer program product of claim 19 , wherein the computer-executable instructions further cause the computer device to:
determine a point with a maximum sensing value in the second sensing area as the first sensing central point; and determine a point with a maximum sensing value in the third sensing area as the second sensing central point.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.