Patent ID: 11899918
Assignee: ANHUI HONGCHENG OPTO-ELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 2:
3. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements operations comprising:
determining a sliding track in response to a sliding touch instruction by a user on a touch screen;
judging whether the sliding track satisfies a recognition condition of a preset pattern; and
invoking a magnifier corresponding to the preset pattern on the touch screen under a condition that the sliding track satisfies the recognition condition of the preset pattern,
wherein judging whether the sliding track satisfies the recognition condition of the preset pattern comprises:
extracting a set of key points according to the sliding track, wherein the set of key points comprises at least five key points: a first key point, a second key point, a third key point, a fourth key point and a fifth key point, the first key point is a starting point of the sliding track, and the fifth key point is an end point of the sliding track; and
judging whether the sliding track satisfies the recognition condition of the preset pattern based on the key points in the set of key points,

wherein extracting the set of key points according to the sliding track comprises:
connecting the first key point to the fifth key point to determine a first judgment line segment;
selecting a point with a maximum vertical distance to the first judgment line segment on the sliding track as the third key point;
connecting the first key point to the third key point to determine a second judgment line segment, and connecting the third key point to the fifth key point to determine a third judgment line segment; and
selecting a point with a maximum vertical distance to the second judgment line segment on the sliding track between the first key point and the third key point as the second key point selecting a point with a maximum vertical distance to the third judgment line segment on the sliding track between the third key point and the fifth key point as the fourth key point.