Stylus pen nut alignment method, device, equipment and storage medium

By generating a bitwise pattern in the display, using the line segments in the bitwise pattern to align with the positioning of the stylus nut, the problems of low alignment efficiency and low accuracy of nuts in the prior art are solved, and more efficient and More accurate nut positioning.

CN114882103BActive Publication Date: 2024-11-26NANCHANG LONGCHEER TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210420427.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-11-26
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

In the prior art, the alignment of stylus nuts depends on manual experience or distance measurement equipment, and is inefficient and has low accuracy, making it difficult to ensure the accurate positioning of the nut.

Method used

By generating a alignment pattern in the display, including two parallel line segments, the first line segment is aligned with the reference of the pressure-sensitive bracket, and the second line segment is aligned with the positioning of the nut, precise positioning and fixing of the nut is achieved.

Benefits of technology

Improves the efficiency and accuracy of nut alignment, and is more efficient and accurate compared to manual or distance measurement equipment methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114882103B_ABST
    Figure CN114882103B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic products, and in particular to a method, device, equipment and storage medium for aligning a stylus pen nut. The method comprises: generating an alignment pattern in a display, the alignment pattern comprising two parallel line segments; acquiring and displaying an image of the aligned stylus pen in the display, the first line segment being aligned with a first reference plane or a second reference plane of a pressure sensing bracket in the image, the second line segment being used to align with a positioning plane of the nut in the image, so that the nut is located at a specific position of a pressure sensing module in the image; or acquiring and displaying an image of the aligned stylus pen in the display, the second line segment being aligned with a third reference plane or a fourth reference plane of the pressure sensing bracket in the image, the first line segment being used to align with a positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; compared with relying on manual experience or distance measurement equipment to assist in the positioning of the nut, the technical solution of the present application is more efficient and more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic products, and in particular to a method, device, equipment and storage medium for aligning a stylus nut. Background Art

[0002] Styluses include resistive pens, electromagnetic pens, and capacitive pens, etc. Styluses can be used to operate electronic devices instead of mice and fingers. In operations such as drawing, writing, and selecting, styluses have advantages such as more precision, convenience, and speed compared to media such as mice and fingers. Therefore, they are widely used in electronic products such as smart phones, smart watches, and tablet computers.

[0003] like Figure 1 and Figure 2 As shown, Figure 1 , Figure 2 The figure is a partial structural diagram of the stylus. The nut 103 is threadedly connected to the pressure sensing module 101. To ensure the production quality of the stylus, the position of the nut 103 on the pressure sensing module 101 needs to be fixed. To ensure the position requirements of the nut in the stylus, the prior art often relies on manual experience or distance measurement equipment to assist the nut alignment, which is inefficient and has low accuracy. Summary of the invention

[0004] In order to solve one of the above technical defects, the present application provides a stylus pen nut alignment method, device, equipment and storage medium in the embodiment of the present application. The technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present application, a method for aligning a stylus pen nut is provided, the method comprising:

[0006] Generating an alignment pattern in a display, the alignment pattern comprising two parallel line segments;

[0007] Acquire and display an image of the aligned stylus on the display, align the first line segment with the first reference plane or the second reference plane of the pressure sensing bracket in the image, and align the second line segment with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; or

[0008] Acquire and display the image of the aligned stylus on the display, align the second line segment with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, and align the first line segment with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image;

[0009] Among them, during alignment, the line segment of the two parallel line segments close to the pen cap mounting end of the pressure sensing module is the first line segment, and the line segment away from the pen cap mounting end is the second line segment, and the distance between the two parallel line segments is determined based on the reference plane of the pressure sensing bracket.

[0010] Optionally, the alignment pattern is a rectangle.

[0011] Optionally, it further includes: a tolerance rectangle located at both ends of a line segment in the alignment figure for aligning with the positioning surface of the nut, and the center of the tolerance rectangle is located at the end point of the alignment figure.

[0012] Optionally, the alignment pattern also includes a parallel third line segment and a fourth line segment; generating the alignment pattern includes: obtaining the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment in the alignment pattern; based on the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment, generating a corresponding rectangle.

[0013] Optionally, after generating the alignment pattern in the display, the method further includes: obtaining a movement command for the alignment pattern; based on the movement command, aligning a first line segment of the alignment pattern with a first reference plane or a second reference plane of the pressure-sensitive support in the image; or based on the movement command, aligning a second line segment of the alignment pattern with a third reference plane or a fourth reference plane of the pressure-sensitive support in the image.

[0014] Optionally, the nut includes a first nut and a second nut, and the alignment pattern includes a first alignment pattern and a second alignment pattern;

[0015] The second line segment of the first alignment pattern is aligned with the third reference surface of the pressure-sensing bracket in the image, and the first line segment of the first alignment pattern is used to align with the first positioning surface of the first nut in the image;

[0016] The first line segment of the second alignment pattern is aligned with the first reference surface of the pressure-sensing bracket in the image, and the second line segment of the second alignment pattern is used to align with the second positioning surface of the second nut in the image.

[0017] Optionally, after the first line segment is aligned with the first reference plane or the second reference plane of the pressure sensing bracket in the image, the method further comprises: determining the position of the second line segment and the position of the nut positioning surface in the image; if the position of the second line segment coincides with the position of the nut positioning surface, determining that the nut is located at a specific position of the pressure sensing module;

[0018] Or when the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, the method also includes: determining the position of the first line segment and the position of the nut positioning surface in the image; if the position of the first line segment coincides with the position of the nut positioning surface, determining that the nut is located at a specific position of the pressure sensing module.

[0019] According to a second aspect of an embodiment of the present application, a stylus pen nut alignment device is provided, the device comprising:

[0020] A generating module, for generating an alignment pattern in a display, wherein the alignment pattern comprises two parallel line segments; a first acquiring and displaying module, for acquiring and displaying an image of a handwriting pen to be aligned in the display, wherein the first line segment is aligned with a first reference plane or a second reference plane of a pressure sensing bracket in the image, and the second line segment is used to align with a positioning plane of a nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; or a second acquiring and displaying module, for acquiring and displaying an image of a handwriting pen to be aligned in the display, wherein the second line segment is aligned with a third reference plane or a fourth reference plane of the pressure sensing bracket in the image, and the first line segment is used to align with a positioning plane of a nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; wherein, during alignment, the line segment of the two parallel line segments close to a cap mounting end of the pressure sensing module is the first line segment, and the line segment away from the cap mounting end is the second line segment, and the distance between the two parallel line segments is determined based on the reference plane of the pressure sensing bracket.

[0021] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including:

[0022] A memory; a processor; and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the above method.

[0023] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement the above method.

[0024] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, which is used to implement the above method when the computer program product is run on a computer device.

[0025] The stylus pen nut alignment method provided in the embodiment of the present application is used to generate two parallel line segments in the display, and the image of the aligned stylus pen is displayed in the display. The first line segment is aligned with the first reference plane or the second reference plane of the pressure-sensing bracket in the image, and the second line segment is used to align with the positioning plane of the nut, so that the nut is fixed at a specific position of the pressure-sensing module; or the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure-sensing bracket in the image, and the first line segment is used to align with the positioning plane of the nut, so that the nut is fixed at a specific position of the pressure-sensing module. Compared with relying on manual experience or distance measurement equipment to assist in the positioning of the nut, the technical solution of the present application is more efficient and accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 It is a structural diagram of the stylus part;

[0028] Figure 2 is another structural schematic diagram of the stylus part;

[0029] Figure 3 for Figure 2 Exploded diagram of

[0030] Figure 4 for Figure 1 Schematic diagram of the structure of the medium pressure sensing bracket;

[0031] Figure 5 for Figure 1 Another structural diagram of the medium pressure sensing bracket;

[0032] Figure 6 A flow chart of the stylus nut alignment method for the present application;

[0033] Figure 7 It is a structural schematic diagram of the alignment pattern in this application;

[0034] Figure 8 This is a structural block diagram of the stylus pen nut alignment device of the present application;

[0035] Fig. 9 This is another structural block diagram of the stylus pen nut alignment device of the present application;

[0036] Fig.10 This is a functional block diagram of the computer device of this application. DETAILED DESCRIPTION

[0037] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0038] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0039] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0040] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0041] Figure 1 and Figure 2 This is a schematic diagram of the structure of the stylus. Figure 3 for Figure 2 Exploded diagram of Figure 4 and Figure 5 for Figure 1 Schematic diagram of the structure of the pressure sensing bracket 102 at different viewing angles. Figures 1 to 5As shown, the stylus may include a pressure sensing module 101, a pressure sensing bracket 102, a nut 103 and a pen cap 104. The nut 103 may be threadedly connected to the pressure sensing module 101, and the pen cap 104 is arranged at one end of the pressure sensing module 101. The pressure sensing bracket 102 has a first channel penetrating along the axial direction and a second channel penetrating along the radial direction, and the first channel and the second channel are connected. The pressure sensing bracket 102 is sleeved on the pressure sensing module 101 through the first channel, and the relative position between the pressure sensing bracket 102 and the pressure sensing module 101 is fixed. The nut 103 is exposed to the outside through the second channel, so that the nut 103 can be welded to the pressure sensing module 101 through the second channel.

[0042] like Figure 1 , Figure 3 and Figure 4 As shown, the pressure-sensing bracket 102 has a reference surface with the inner wall surface and / or the outer wall surface as reference. Among them, the first outer wall surface 1021 of the pressure-sensing bracket 102 close to the pen cap 104 is the first reference surface, the second outer wall surface 1024 away from the pen cap 104 is the fourth reference surface, the first inner wall surface 1022 close to the pen cap 104 is the second reference surface, and the third inner wall surface 1023 away from the pen cap 104 is the third reference surface. The side of the nut 103 away from the pen cap 104 is the positioning surface. When the nut 103 includes a first nut 1031 and a second nut 1032, the second nut 1032 is closer to the pen cap 104 than the first nut 1031, the side of the first nut 1031 away from the pen cap 104 is the first positioning surface, and the side of the second nut 1032 away from the nut 104 is the second positioning surface.

[0043] In the process of implementing the present application, the inventors found that when moving the nut 103 in the stylus pen to a specific position of the pressure sensing module 101, manual experience or distance measuring equipment is usually relied upon to assist in aligning the nut to achieve assembly of the stylus pen, but manual experience or distance measuring equipment are inefficient and have low accuracy.

[0044] Example 1

[0045] This embodiment provides a stylus pen nut alignment method. Figure 6 1 is a flowchart illustrating how to use alignment patterns to align nuts according to certain embodiments of the present invention. Although the processes described below include multiple operations that occur in a specific order, it should be clearly understood that these processes may also include more or fewer operations, and these operations may be performed sequentially or in parallel (for example, using parallel processors or a multi-threaded environment). Figure 6 As shown, the method includes the following steps (S101-S103):

[0046] S101, generating an alignment pattern on a display.

[0047] The alignment pattern may include two parallel line segments, and during alignment, the line segment close to the cap mounting end of the pressure sensing module 101 may be referred to as the first line segment, and the line segment away from the cap mounting end of the pressure sensing module 101 may be referred to as the second line segment. The alignment pattern may be a parallelogram, and in some embodiments, the alignment pattern may be a rectangle with four right angles.

[0048] like Figure 7 As shown, it is a schematic diagram of the structure of the first alignment pattern 201 and the second alignment pattern 202. The first alignment pattern 201 and the second alignment pattern 202 are both rectangular. The line segment 2011 close to the pen cap mounting end in the first alignment pattern 201 is the first line segment, and the line segment 2012 away from the pen cap mounting end is the second line segment; the line segment 2021 close to the pen cap mounting end in the second alignment pattern 202 is the first line segment, and the line segment 2022 away from the pen cap mounting end is the second line segment.

[0049] S102, acquiring and displaying an image of the aligned stylus on a display, wherein the first line segment is aligned with the first reference plane or the second reference plane of the pressure sensing bracket in the image, and the second line segment is used to align with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image.

[0050] When the stylus pen needs to be assembled, the stylus pen can be fixed on the welding equipment by a fixture. The image of the stylus pen assembly can be transmitted to the display by an image sensor, so that the image of the aligned stylus pen can be displayed on the display. Figure 2 As shown, during the assembly process of the stylus pen, the nut 103 needs to be positioned on the pressure sensing module 101, and the nut can be rotated on the pressure sensing module 101 by a jig. The image of the stylus pen can be displayed on the display using a CCD image sensor.

[0051] The positions of the pressure-sensing bracket 102 in the stylus pen and the pressure-sensing module 101 are relatively fixed. In one or more embodiments, the first line segment in the generated alignment pattern is aligned with the first reference plane or the second reference plane of the pressure-sensing bracket in the image, and the second line segment in the alignment image can be aligned with the positioning plane of the nut in the image, so that the position of the nut 103 on the pressure-sensing module 101 can be determined.

[0052] The distance between the first line segment and the second line segment should be determined based on the reference plane used, so that the nut 103 can be located at a fixed position of the pressure sensing module 101. Figure 2 As shown, when the first line segment is aligned with the first reference plane 1021 of the pressure-sensing support 102 in the image, the distance between the first line segment and the second line segment can be distance a; when the first line segment is located at the second reference plane 1022 of the pressure-sensing support 102 in the image, the distance between the first line segment and the second line segment can be distance b; wherein the sum of distance b and the distance between the first reference plane 1021 and the second reference plane 1022 can be distance a.

[0053] S103, acquiring and displaying the image of the aligned stylus on the display, aligning the second line segment with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, and aligning the first line segment with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image.

[0054] like Figure 2 , Figure 4 and Figure 5 As shown, the pressure sensing bracket 102 may have four reference surfaces. In some embodiments, the third reference surface 1023 or the fourth reference surface 1024 of the pressure sensing bracket 102 in the image may be aligned with the second line segment in the generated alignment pattern, and the first line segment in the alignment pattern may be aligned with the positioning surface of the nut in the image, so that the position of the nut 103 on the pressure sensing module 101 can be determined.

[0055] The distance between the first line segment and the second line segment should be determined based on the reference plane used, so that the nut 103 can be located at a fixed position of the pressure sensing module 101. Figure 2 As shown, when the second line segment is aligned with the third reference plane 1023 of the pressure-sensing bracket 102 in the image, the distance between the first line segment and the second line segment may be distance c; when the second line segment is aligned with the fourth reference plane 1024 of the pressure-sensing bracket 102 in the image, the distance between the first line segment and the second line segment may be distance d. The sum of distance c and the distances between the third reference plane 1023 and the fourth reference plane 1024 may be distance d.

[0056] After the nut is positioned at a specific position of the pressure sensing module, subsequent operations may be initiated, such as a laser welding operation, where the nut 103 and the pressure sensing module 101 are welded together using a laser.

[0057] In summary, two parallel line segments are generated in the display, and the image of the aligned stylus is displayed in the display. The first line segment is aligned with the first reference plane or the second reference plane of the pressure-sensing bracket in the image, and the second line segment is used to align with the positioning plane of the nut, so as to fix the nut in a specific position of the pressure-sensing module; or the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure-sensing bracket in the image, and the first line segment is used to align with the positioning plane of the nut, so as to fix the nut in a specific position of the pressure-sensing module. Compared with relying on manual experience or distance measurement equipment to assist in the positioning of the nut, the technical solution of the present application is more efficient and accurate.

[0058] The shape of the alignment figure can be a rectangle. In one or more embodiments, a tolerance rectangle can be set at both ends of the line segment in the alignment figure that is used to align with the positioning surface of the nut, and the center of the tolerance rectangle is located at the end point of the alignment figure. The tolerance rectangle is the tolerance zone of the nut, which can be used to recheck whether the nut is within the tolerance range after subsequent operations. The size of the tolerance rectangle can be reasonably selected according to actual conditions and is not limited here. Figure 7 As shown, the first alignment pattern 201 may include a first tolerance rectangle 2013 , and the second alignment pattern 202 may include a second tolerance rectangle 2023 .

[0059] When the shape of the alignment pattern is a rectangle, the alignment pattern also includes a parallel first line segment and a second line segment and a parallel third line segment and a fourth line segment; the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment can be obtained; based on the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment, a corresponding rectangle is generated. In one or more embodiments, the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment can be input through an external device, and the system generates a corresponding rectangle as the alignment pattern. In some embodiments, the distance between the first line segment and the second line segment, and the distance between the third line segment and the fourth line segment preset by the system can also be directly obtained, so as to generate a corresponding rectangle as the alignment pattern. It should be noted that the distance between the third line segment and the fourth line segment can be the diameter length of the nut, and can also be larger or smaller than the diameter length of the nut.

[0060] After the system generates the alignment pattern, it may be necessary to move the alignment pattern to align the line segments in the alignment pattern with the reference plane of the pressure-sensitive support in the image. The visual exposure can be adjusted so that the image is clear enough in the display interface to facilitate the alignment of the alignment pattern with the reference plane. In one or more embodiments, the method may further include the following steps (S201-S203):

[0061] S201, obtaining a movement command for the alignment graphic.

[0062] The system can be operated using a mouse, keyboard, finger or keyboard and other media to apply movement commands to the system to move the alignment graphics.

[0063] S202: Based on the movement command, align the first line segment of the alignment pattern with the first reference plane or the second reference plane of the pressure-sensitive bracket in the image.

[0064] If the distance between the first line segment and the second line segment in the alignment graphic is determined based on the first reference plane, then based on the movement command, the first line segment of the alignment graphic is moved to align with the first reference plane of the pressure-sensitive bracket in the image; if the distance between the first line segment and the second line segment in the alignment graphic is determined based on the second reference plane, then based on the movement command, the first line segment of the alignment graphic is moved to align with the second reference plane of the pressure-sensitive bracket in the image.

[0065] S203: Based on the movement command, align the second line segment of the alignment pattern with the third reference plane or the fourth reference plane of the pressure-sensitive support in the image.

[0066] If the distance between the first line segment and the second line segment in the alignment graphic is determined based on the third reference plane, then based on the movement command, the second line segment of the alignment graphic is moved to align with the third reference plane of the pressure-sensitive bracket in the image; if the distance between the first line segment and the second line segment in the alignment graphic is determined based on the fourth reference plane, then based on the movement command, the second line segment of the alignment graphic is moved to align with the fourth reference plane of the pressure-sensitive bracket in the image.

[0067] In one or more embodiments, Figure 1 , Figure 2 and Figure 7 As shown, the nut 103 may include a first nut 1031 and a second nut 1032, and the alignment pattern may include a first alignment pattern 201 and a second alignment pattern 202. When the first nut 1031 and the second nut 1032 are positioned and welded, the first nut 1031 may be first moved to a specific position, and the first nut 1031 may be welded to the pressure sensing module 101 using a laser; and then the second nut 1032 may be moved to a specific position, and the second nut 1032 may be welded to the pressure sensing module 101 using a laser.

[0068] The second line segment of the first alignment pattern 201 is aligned with the third reference plane of the pressure-sensing bracket 102 in the image, and the first line segment of the first alignment pattern 201 can be aligned with the first positioning plane of the first nut 1031 in the image. By controlling the distance of the first nut 1031 on the pressure-sensing module 101, the deformation magnitude of the spring 1011 on the pressure-sensing module 101 can be controlled. The first line segment in the second positioning pattern 202 is aligned with the first reference plane of the pressure-sensing bracket 102 in the image, and the second line segment in the second alignment pattern 202 can be aligned with the second positioning plane of the second nut 1032 in the image. By controlling the distance of the second nut 1032 on the pressure-sensing module 101, the installation position of the stylus cap can be controlled.

[0069] The first line segment of the alignment pattern is aligned with the first reference plane or the second reference plane of the pressure-sensing bracket in the image, and the second line segment of the alignment pattern is used to align with the positioning surface of the nut. The position of the nut on the pressure-sensing module can be changed by rotating the nut by the jig, that is, the position of the positioning surface is changed by rotating the nut by the jig. In one or more embodiments, the method may further include the following steps (S301-S302):

[0070] S301, determining the position of the second line segment and the position of the nut positioning surface in the image.

[0071] After the first line segment is aligned with the first reference surface or the second reference surface of the pressure-sensing bracket in the image, the position of the second line segment remains unchanged, and the position of the nut positioning surface can be changed. Before the nut positioning surface is aligned with the second line segment, the nut positioning surface is detected in real time to determine the position of the nut positioning surface.

[0072] S302: If the position of the second line segment coincides with the position of the nut positioning surface, it is determined that the nut is located at a specific position of the pressure sensing module.

[0073] If the nut is moved so that the position of the nut positioning surface coincides with the position of the second line segment, it can be determined that the second line segment is aligned with the nut positioning surface, that is, the position of the nut on the pressure sensing module reaches a specific position, and the system can remind the operator through sound, graphics, etc.

[0074] The second line segment of the alignment pattern is aligned with the third reference plane or the fourth reference plane of the pressure-sensing bracket in the image, and the first line segment of the alignment pattern is used to align with the positioning surface of the nut. The position of the nut on the pressure-sensing module can be changed by rotating the nut by the jig, that is, the position of the positioning surface is changed by rotating the nut by the jig. In one or more embodiments, the method may further include the following steps (S401-S402):

[0075] S401. Determine the position of the first line segment and the position of the nut positioning surface in the image.

[0076] After the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure-sensing bracket in the image, the position of the second line segment remains unchanged, and the position of the nut positioning surface can be changed. Before the nut positioning surface is aligned with the first line segment, the nut positioning surface is detected in real time to determine the position of the nut positioning surface.

[0077] S402: If the position of the first line segment coincides with the position of the nut positioning surface, it is determined that the nut is located at a specific position of the pressure sensing module.

[0078] If the nut is moved so that the position of the nut positioning surface coincides with the position of the first line segment, it can be determined that the first line segment is aligned with the nut positioning surface, that is, the position of the nut on the pressure sensing module reaches a specific position, and the system can remind the operator through sound, graphics, etc.

[0079] Example 2

[0080] This embodiment provides a stylus pen nut alignment device, and the deep learning model testing device can be the above-mentioned testing party server, or can be set in the above-mentioned testing party server. Figure 8 As shown, it includes: a generating module 201, a first acquiring and displaying module 202 and a second acquiring and displaying module 203.

[0081] The generating module 201 is used to generate an alignment pattern in the display, wherein the alignment pattern includes two parallel line segments. For details, please refer to the relevant description in Embodiment 1, which will not be repeated here.

[0082] The first acquisition and display module 202 is used to acquire and display the image of the aligned stylus in the display, the first line segment is aligned with the first reference plane or the second reference plane of the pressure sensing bracket in the image, and the second line segment is used to align with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; for details, please refer to the relevant description in Example 1, which will not be repeated here.

[0083] Or a second acquisition and display module 203 is used to acquire and display the image of the aligned stylus in the display, the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, and the first line segment is used to align with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; for details, please refer to the relevant description in Example 1, which will not be repeated here.

[0084] Among them, during alignment, the line segment of the two parallel line segments close to the pen cap mounting end of the pressure sensing module is the first line segment, and the line segment away from the pen cap mounting end is the second line segment, and the distance between the two parallel line segments is determined based on the reference plane of the pressure sensing bracket. For details, please refer to the relevant description in Example 1, which will not be repeated here.

[0085] In one or more embodiments, Fig. 9 As shown, the device further includes: an acquisition module 401 , a first alignment module 402 , and a second alignment module 403 .

[0086] The acquisition module 401 is used to acquire a movement command for the alignment pattern; for details, please refer to the relevant description in Example 1, which will not be repeated here.

[0087] The first alignment module 402 is used to align the first line segment of the alignment pattern with the first reference plane or the second reference plane of the pressure-sensitive support in the image based on the movement command; for details, please refer to the relevant description in Example 1, which will not be repeated here.

[0088] Or the second alignment module 403 is used to align the second line segment of the alignment pattern with the third reference plane or the fourth reference plane of the pressure-sensitive support in the image based on the movement command. For details, please refer to the relevant description in Example 1, which will not be repeated here.

[0089] The effect of the stylus pen nut alignment device of this embodiment can be found in the relevant description in Embodiment 1, and will not be elaborated here.

[0090] Example 3

[0091] This embodiment provides a computer device, such as Fig.10As shown, the computer device includes a processor 501 and a memory 502, wherein the processor 501 and the memory 502 can be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0092] The processor 501 may be a central processing unit (CPU). The processor 501 may also be other general-purpose processors, digital signal processors (DSP), graphics processors (GPU), embedded neural network processors (NPU), or other dedicated deep learning coprocessors, application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0093] The memory 502, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the stylus pen nut alignment method in the embodiment of the present invention (such as the generation module 201, the first acquisition display 202 and the second acquisition display module 203 in the above embodiment; the acquisition module 401, the first alignment module 402 and the second alignment module 403, etc.). The processor 501 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 502, that is, realizes the above stylus pen nut alignment method.

[0094] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 501, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the processor 501 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions can execute the stylus nut alignment method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memories.

[0096] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer device, the stylus pen nut alignment method in Embodiment 1 is implemented.

[0097] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for aligning a stylus pen nut. It is characterized in that The method comprises: Generating an alignment pattern in a display, the alignment pattern comprising two parallel line segments; Acquire and display an image of the aligned stylus on the display, align the first line segment with the first reference plane or the second reference plane of the pressure sensing bracket in the image, and align the second line segment with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; or Acquire and display the image of the aligned stylus on the display, align the second line segment with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, and align the first line segment with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; Wherein, during alignment, the line segment of the two parallel line segments close to the pen cap mounting end of the pressure sensing module is the first line segment, and the line segment away from the pen cap mounting end is the second line segment, and the distance between the two parallel line segments is determined based on the reference plane of the pressure sensing bracket; Also includes: A tolerance rectangle is located at two ends of a line segment in the alignment figure for aligning with the positioning surface of the nut, and the center of the tolerance rectangle is located at the end point of the alignment figure; The nut includes a first nut and a second nut, and the alignment pattern includes a first alignment pattern and a second alignment pattern; the line segment close to the pen cap mounting end in the first alignment pattern is the first line segment, and the line segment away from the pen cap mounting end is the second line segment; the line segment close to the pen cap mounting end in the second alignment pattern is the first line segment, and the line segment away from the pen cap mounting end is the second line segment.

2. The stylus pen nut alignment method according to claim 1, It is characterized in that The alignment pattern is a rectangle.

3. The stylus pen nut alignment method as claimed in claim 2, It is characterized in that After generating the alignment pattern in the display, the method further comprises: Obtaining a movement command for the alignment pattern; Based on the movement command, align the first line segment of the alignment pattern with the first reference plane or the second reference plane of the pressure-sensitive support in the image; or Based on the movement command, the second line segment of the alignment pattern is aligned with the third reference plane or the fourth reference plane of the pressure-sensing bracket in the image.

4. The stylus pen nut alignment method according to any one of claims 1 to 3, It is characterized in that The nut includes a first nut and a second nut, and the alignment pattern includes a first alignment pattern and a second alignment pattern; The second line segment of the first alignment pattern is aligned with the third reference surface of the pressure-sensing bracket in the image, and the first line segment of the first alignment pattern is used to align with the first positioning surface of the first nut in the image; The first line segment of the second alignment pattern is aligned with the first reference surface of the pressure-sensing bracket in the image, and the second line segment of the second alignment pattern is used to align with the second positioning surface of the second nut in the image.

5. The stylus pen nut alignment method according to any one of claims 1 to 3, It is characterized in that After the first line segment is aligned with the first reference plane or the second reference plane of the pressure-sensing support in the image, the method further includes: determining a position of the second line segment and a position of a nut locating surface in the image; If the position of the second line segment coincides with the position of the nut positioning surface, it is determined that the nut is located at a specific position of the pressure sensing module; Or when the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure-sensing support in the image, the method further comprises: determining a position of the first line segment and a position of a nut locating surface in the image; If the position of the first line segment coincides with the position of the nut positioning surface, it is determined that the nut is located at a specific position of the pressure sensing module.

6. A stylus pen nut alignment device, It is characterized in that A stylus pen nut alignment method adapted to any one of claims 1 to 5, the device comprising: A generating module, used for generating an alignment pattern in a display, wherein the alignment pattern comprises two parallel line segments; two ends of the line segment in the alignment pattern for aligning with the positioning surface of the nut, and the center of the tolerance rectangle is located at the end point of the alignment pattern; A first acquisition and display module is used to acquire and display the image of the aligned stylus in the display, the first line segment is aligned with the first reference plane or the second reference plane of the pressure sensing bracket in the image, and the second line segment is used to align with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; or a second acquisition and display module, used for acquiring and displaying the image of the aligned stylus in the display, the second line segment is aligned with the third reference plane or the fourth reference plane of the pressure sensing bracket in the image, and the first line segment is used for aligning with the positioning plane of the nut in the image, so that the nut is located at a specific position of the pressure sensing module in the image; Among them, during alignment, the line segment of the two parallel line segments close to the pen cap mounting end of the pressure sensing module is the first line segment, and the line segment away from the pen cap mounting end is the second line segment, and the distance between the two parallel line segments is determined based on the reference plane of the pressure sensing bracket; the nut includes a first nut and a second nut, and the alignment graphic includes a first alignment graphic and a second alignment graphic; the line segment of the first alignment graphic close to the pen cap mounting end is the first line segment, and the line segment away from the pen cap mounting end is the second line segment; the line segment of the second alignment graphic close to the pen cap mounting end is the first line segment, and the line segment away from the pen cap mounting end is the second line segment.

7. An electronic device, It is characterized in that include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, It is characterized in that A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.