CN114882103A - Handwriting pen nut alignment method, device, equipment and storage medium - Google Patents

Handwriting pen nut alignment method, device, equipment and storage medium Download PDF

Info

Publication number
CN114882103A
CN114882103A CN202210420427.1A CN202210420427A CN114882103A CN 114882103 A CN114882103 A CN 114882103A CN 202210420427 A CN202210420427 A CN 202210420427A CN 114882103 A CN114882103 A CN 114882103A
Authority
CN
China
Prior art keywords
line segment
nut
image
pressure
aligned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210420427.1A
Other languages
Chinese (zh)
Inventor
赵喜平
杜军红
葛振纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang Longqi Information Technology Co ltd
Original Assignee
Nanchang Longqi Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanchang Longqi Information Technology Co ltd filed Critical Nanchang Longqi Information Technology Co ltd
Priority to CN202210420427.1A priority Critical patent/CN114882103A/en
Publication of CN114882103A publication Critical patent/CN114882103A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application relates to the technical field of electronic products, in particular to a handwriting pen nut alignment method, a handwriting pen nut alignment device, handwriting pen nut alignment equipment and a handwriting pen nut storage medium, wherein the method comprises the following steps: generating an alignment graph in a display, wherein the alignment graph comprises two parallel line segments; acquiring and displaying an image of the aligned handwriting pen in a display, wherein a first line segment is aligned with a first reference surface or a second reference surface of a pressure-sensitive support in the image, and a second line segment is aligned with a positioning surface of a nut in the image, so that the nut is positioned at a specific position of a pressure-sensitive module in the image; or acquiring and displaying an image of the aligned handwriting pen in the display, aligning the second line segment with a third reference surface or a fourth reference surface of the pressure-sensitive support in the image, and aligning the first line segment with a positioning surface of the nut in the image to enable the nut to be positioned at a specific position of the pressure-sensitive module in the image; compared with the positioning which depends on manual experience or distance measuring equipment to assist the nut, the technical scheme of the application has higher efficiency and higher accuracy.

Description

Handwriting pen nut alignment method, device, equipment and storage medium
Technical Field
The application relates to the technical field of electronic products, in particular to a handwriting pen nut alignment method, device, equipment and storage medium.
Background
The handwriting pen comprises a resistance pen, an electromagnetic pen, a capacitance pen and the like, and can be used for replacing a mouse, a finger and the like to operate the electronic equipment. In operations such as drawing, writing and selecting, compared with media such as a mouse and a finger, the stylus pen has the advantages of being more accurate, convenient and fast, and the like, and therefore the stylus pen is widely used in electronic products such as smart phones, smart watches, tablet computers and the like.
As shown in fig. 1 and 2, fig. 1 and 2 are partial structural schematic views of a stylus. The nut 103 is in threaded connection with the pressure-sensitive module 101, and the position of the nut 103 on the pressure-sensitive module 101 needs to be fixed in order to ensure the production quality of the stylus pen. In order to ensure the position requirement of the nut in the stylus pen, the nut alignment is often assisted by manual experience or distance measurement equipment in the prior art, and the method has poor efficiency and low accuracy.
Disclosure of Invention
In order to solve one of the above technical defects, an embodiment of the present application provides a method, an apparatus, a device, and a storage medium for aligning a nut of a stylus, where the technical scheme is as follows:
according to a first aspect of the embodiments of the present application, there is provided a stylus pen nut alignment method, including:
generating an alignment graph in a display, wherein the alignment graph comprises two parallel line segments;
acquiring and displaying an image of the aligned handwriting pen in the display, wherein a first line segment is aligned with a first reference surface or a second reference surface of a pressure-sensitive bracket in the image, and a second line segment is used for aligning with a positioning surface of a nut in the image, so that the nut is positioned at a specific position of a pressure-sensitive module in the image; or
Acquiring and displaying an image of the aligned handwriting pen in the display, wherein a second line segment is aligned with a third reference surface or a fourth reference surface of the pressure-sensitive support in the image, and a first line segment is used for being aligned with a positioning surface of a nut in the image, so that the nut is positioned at a specific position of the pressure-sensitive module in the image;
when the pressure-sensitive support is aligned, a line segment close to the pen cap mounting end of the pressure-sensitive module is a first line segment, a line segment far away from the pen cap mounting end is a second line segment, and the distance between the two parallel line segments is determined based on the reference surface of the pressure-sensitive support.
Optionally, the alignment pattern is rectangular.
Optionally, the method further comprises: and the tolerance rectangle is positioned at two ends of a line segment which is aligned with the positioning surface of the nut in the alignment graph, and the center of the tolerance rectangle is positioned at the end point of the alignment graph.
Optionally, the alignment pattern further includes a third line segment and a fourth line segment that are parallel; generating the alignment pattern comprises: acquiring the distance between a first line segment and a second line segment in the alignment graph and the distance between a third line segment and a fourth line segment; and generating a corresponding rectangle 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.
Optionally, after generating the alignment graph in the display, the method further includes: acquiring a moving command aiming at the alignment graph; based on the movement command, aligning a first line segment of the alignment graph with a first reference surface or a second reference surface of a pressure sensitive support in the image; or based on the moving command, aligning the second line segment of the alignment graph with the third reference surface or the fourth reference surface of the pressure sensitive support in the image.
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;
the second line segment of the first alignment pattern is aligned with a third datum plane of the pressure-sensitive bracket in the image, and the first line segment of the first alignment pattern is used for being aligned with a first positioning plane of the first nut in the image;
the first line segment of the second alignment pattern is aligned with a first datum plane of the pressure-sensitive bracket in the image, and the second line segment of the second alignment pattern is used for being aligned with a second positioning plane of a second nut in the image.
Optionally, after the first line segment is aligned with the first reference surface or the second reference surface of the pressure-sensitive support in the image, the method further comprises: determining the position of the second line segment and the position of a nut positioning surface in the image; if the position of the second line segment is superposed with the position of the nut positioning surface, determining that the nut is positioned at the specific position of the pressure sensing module;
or in the second line segment is aligned with a third reference plane or a fourth reference plane of a pressure sensitive support in the image, the method further comprising: determining the position of the first line segment and the position of a nut positioning surface in the image; and if the position of the first line segment is superposed with the position of the nut positioning surface, determining that the nut is positioned at the specific position of the pressure sensing module.
According to a second aspect of the embodiments of the present application, there is provided a stylus pen nut aligning device, including:
the generation module is used for generating an alignment graph in a display, and the alignment graph comprises two parallel line segments; the first acquisition and display module is used for acquiring and displaying an image of the aligned handwriting pen in the display, a first line segment is aligned with a first reference surface or a second reference surface of the pressure sensing support in the image, and a second line segment is used for being aligned with a positioning surface of the nut in the image, so that the nut is positioned at a specific position of the pressure sensing module in the image; or the second acquisition and display module is used for acquiring and displaying an image of the aligned handwriting pen in the display, the second line segment is aligned with the third reference surface or the fourth reference surface of the pressure-sensitive support in the image, and the first line segment is used for being aligned with the positioning surface of the nut in the image, so that the nut is positioned at the specific position of the pressure-sensitive module in the image; when the pressure-sensitive support is aligned, a line segment close to the pen cap mounting end of the pressure-sensitive module is a first line segment, a line segment far away from the pen cap mounting end is a second line segment, and the distance between the two parallel line segments is determined based on the reference surface of the pressure-sensitive support.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including:
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 method described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having a computer program stored thereon; which is executed by a processor to implement the method described above.
According to a fifth aspect of embodiments of the present application, there is provided a computer program product for implementing the above-mentioned method when the computer program product is run on a computer device.
By adopting the handwriting pen nut alignment method provided by the embodiment of the application, two parallel line segments are generated in the display, and the image of the aligned handwriting pen is displayed in the display. Aligning the first line segment with a first reference surface or a second reference surface of the pressure-sensitive support in the image, and aligning the second line segment with a positioning surface of the nut, so that the nut is fixed at a specific position of the pressure-sensitive module; or align the second line segment with the third reference surface or the fourth reference surface of pressure-sensitive support in the image, first line segment is used for aligning with the locating surface of nut to fix the nut in the specific position of pressure-sensitive module, for relying on artifical experience or distance measurement equipment to assist the location of nut, the technical scheme of this application is efficient higher, the degree of accuracy is also higher.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic structural diagram of a stylus portion;
FIG. 2 is a schematic view of another structure of a stylus portion;
FIG. 3 is an exploded view of FIG. 2;
FIG. 4 is a schematic view of the pressure sensitive bracket of FIG. 1;
FIG. 5 is a schematic view of another configuration of the pressure sensitive bracket of FIG. 1;
FIG. 6 is a flowchart illustrating a nut alignment method of the stylus pen according to the present application;
FIG. 7 is a schematic structural diagram of an alignment pattern according to the present application;
FIG. 8 is a block diagram of the structure of the alignment device for the nut of the stylus pen according to the present application;
FIG. 9 is a block diagram of another structure of the nut alignment apparatus of the stylus pen according to the present invention;
FIG. 10 is a functional block diagram of a computer device of the present application.
Detailed Description
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In this application, unless expressly stated or limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can include, for example, fixed connections, removable connections, or integral parts; can be mechanically connected, electrically connected or can communicate with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Fig. 1 and 2 are partial structural schematic views of a stylus pen, fig. 3 is an exploded view of fig. 2, and fig. 4 and 5 are structural schematic views of a pressure-sensitive support 102 in fig. 1 from different perspectives. As shown in fig. 1 to 5, the stylus pen may include a pressure-sensitive module 101, a pressure-sensitive bracket 102, a nut 103, and a cap 104, wherein the nut 103 may be screwed with the pressure-sensitive module 101, and the cap 104 is disposed at one end of the pressure-sensitive module 101. The pressure-sensitive support 102 has a first channel penetrating in the axial direction and a second channel penetrating in the radial direction, and the first channel and the second channel are communicated. The pressure-sensitive bracket 102 is sleeved on the pressure-sensitive module 101 through the first channel, the relative position between the pressure-sensitive bracket 102 and the pressure-sensitive module 101 is fixed, the nut 103 is exposed to the outside through the second channel, and the nut 103 is conveniently welded on the pressure-sensitive module 101 through the second channel.
As shown in fig. 1, 3, and 4, the pressure sensitive bracket 102 has a reference surface with reference to the inner wall surface and/or the outer wall surface. The first outer wall surface 1021 of the pressure sensitive bracket 102 close to the pen cap 104 is taken as a first reference surface, the second outer wall surface 1024 far away from the pen cap 104 is taken as a fourth reference surface, the first inner wall surface 1022 close to the pen cap 104 is taken as a second reference surface, and the third inner wall surface 1023 far away from the pen cap 104 is taken as a third reference surface. When the nut 103 comprises the first nut 1031 and the second nut 1032, the second nut 1032 is closer to the pen cap 104 relative to the first nut 1031, one side surface of the first nut 1031, which is far away from the pen cap 104, is a first positioning surface, and one side surface of the second nut 1032, which is far away from the nut 104, is a second positioning surface.
In the process of implementing the present application, the inventor finds that when the nut 103 in the stylus pen is moved to a specific position of the pressure sensing module 101, the nut is usually assisted by manual experience or distance measuring equipment to align, so as to implement the assembly of the stylus pen, but the manual experience or distance measuring equipment is inefficient and has low accuracy.
Example 1
Fig. 6 is a flowchart illustrating a process of performing nut alignment using an alignment pattern according to some embodiments of the present invention. Although the processes described below include operations that occur in a particular order, it should be clearly understood that the processes may include more or fewer operations that are performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment). As shown in fig. 6, the method includes the following steps (S101 to S103):
s101, generating a contraposition graph in a display.
The alignment pattern may include two parallel line segments, and during alignment, the line segment near the cap mounting end of the pressure-sensitive module 101 is referred to as a first line segment, and the line segment far from the cap mounting end of the pressure-sensitive module 101 is referred to as a second line segment. The alignment pattern may be a parallelogram, and in some embodiments, the alignment pattern may be a rectangle with four interior corners being right angles.
As shown in fig. 7, which is a schematic structural diagram of the first alignment pattern 201 and the second alignment pattern 202, both the first alignment pattern 201 and the second alignment pattern 202 are rectangular. A line segment 2011 close to the pen cap mounting end in the first alignment graph 201 is a first line segment, and a line segment 2012 far away from the pen cap mounting end is a second line segment; the line 2021 of the second alignment pattern 202 close to the cap end is a first line, and the line 2022 far from the cap end is a second line.
S102, an image of the aligned handwriting pen is obtained and displayed in the display, the first line segment is aligned with the first datum plane or the second datum plane of the pressure-sensitive support in the image, and the second line segment is used for being aligned with the positioning plane of the nut in the image, so that the nut is located at the specific position of the pressure-sensitive module in the image.
When the handwriting pen needs to be assembled, the handwriting pen can be fixed on the welding equipment through the jig. The image of the stylus assembly may be transmitted to the display using the image sensor to display the image of the registered stylus in the display. As shown in fig. 2, during the assembly process of the stylus, the nut 103 needs to be positioned on the pressure-sensitive module 101, and the nut can be rotated on the pressure-sensitive module 101 by a jig. The image of the stylus may be displayed on the display using a CCD image sensor.
The position of the pressure-sensitive bracket 102 in the stylus pen is relatively fixed with the pressure-sensitive module 101. In one or more embodiments, the first line segment in the generated alignment pattern is aligned with the first reference surface or the second reference surface of the pressure-sensitive support in the image, and the second line segment in the alignment image can be aligned with the positioning surface of the nut in the image, so that the position of the nut 103 on the pressure-sensitive module 101 can be determined.
The distance between the first line segment and the second line segment is determined based on the reference plane used, so that the nut 103 can be located at the fixed position of the pressure sensing module 101. As shown in fig. 2, when the first line segment is aligned with the first reference surface 1021 of the pressure-sensitive support 102 in the image, the distance between the first line segment and the second line segment may be a distance a; when the first line segment is located on the second reference surface 1022 of the pressure-sensitive support 102 in the image, the distance between the first line segment and the second line segment may be a distance b; the sum of the distance b and the distances between the first reference surface 1021 and the second reference surface 1022 may be the distance a.
S103, an image of the aligned handwriting pen is obtained and displayed in the display, the second line segment is aligned with the third datum plane or the fourth datum plane of the pressure-sensitive support in the image, and the first line segment is used for being aligned with the positioning plane of the nut in the image, so that the nut is located at the specific position of the pressure-sensitive module in the image.
As shown in fig. 2, 4 and 5, the pressure sensitive bracket 102 may have four reference surfaces. In some embodiments, the second line segment in the generated alignment pattern may be used to align the third reference surface 1023 or the fourth reference surface 1024 of the pressure sensitive fixture 102 in the image, 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 sensitive module 101 may be determined.
The distance between the first line segment and the second line segment is determined based on the reference plane used, so that the nut 103 can be located at the fixed position of the pressure sensing module 101. As shown in fig. 2, when the second line segment is aligned with the third reference surface 1023 of the pressure sensitive support 102 in the image, the distance between the first line segment and the second line segment may be a distance c; when the second line segment is aligned with the fourth reference surface 1024 of the pressure sensitive support 102 in the image, the distance between the first line segment and the second line segment may be a distance d. The sum of the distance c and the distances between the third reference surface 1023 and the fourth reference surface 1024 may be the distance d.
After the nut is positioned at a specific position of the pressure sensing module, subsequent operations can be initiated. For example, a laser welding operation may be initiated to weld the nut 103 and the pressure sensing module 101 together using a laser.
In summary, two parallel line segments are generated in the display, and the image of the aligned stylus is displayed in the display. Aligning the first line segment with a first reference surface or a second reference surface of the pressure-sensitive support in the image, and aligning the second line segment with a positioning surface of the nut, so that the nut is fixed at a specific position of the pressure-sensitive module; or align the second line segment with the third reference surface or the fourth reference surface of pressure-sensitive support in the image, first line segment is used for aligning with the locating surface of nut to fix the nut in the specific position of pressure-sensitive module, for relying on artifical experience or distance measurement equipment to assist the location of nut, the technical scheme of this application is efficient higher, the degree of accuracy is also higher.
The shape of the alignment pattern may be rectangular. In one or more embodiments, tolerance rectangles can be disposed at two ends of a line segment in the alignment pattern for alignment with the locating surface of the nut, and centers of the tolerance rectangles are located at end points of the alignment pattern. The tolerance rectangle is a tolerance zone of the nut and can be used for rechecking whether the nut is in a tolerance range after subsequent operation. The size of the tolerance rectangle can be reasonably selected according to actual conditions, and is not limited herein. As shown in FIG. 7, the first alignment graphic 201 may include a first tolerance rectangle 2013 and the second alignment graphic 202 may include a second tolerance rectangle 2023.
When the alignment graph is rectangular, the alignment graph further comprises a first line segment and a second line segment which are parallel, and a third line segment and a fourth line segment which are parallel; 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; and generating a corresponding rectangle 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. 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 may be input through the peripheral device, and a corresponding rectangle may be generated by the system as the alignment graph. 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 may also be directly obtained, so as to generate a corresponding rectangle as the alignment graph. It should be noted that the distance between the third line segment and the fourth line segment may be the diameter length of the nut, and may also be larger or smaller than the diameter length of the drop curtain.
After the system generates the alignment pattern, the alignment pattern may need to be moved to align the line segments in the alignment pattern with the reference plane of the pressure-sensitive support in the image. Visual exposure, etc. may be adjusted so that the image is sufficiently clear within the display interface to facilitate alignment of the alignment features with the reference plane. In one or more embodiments, the method may further include the steps of (S201 to S203):
s201, acquiring a moving command for the alignment graph.
The system can be operated by using a medium such as a mouse, a keyboard, a finger or a keyboard, and a movement command for moving the alignment pattern is applied to the system.
S202, based on the moving command, the first line segment of the alignment graph is aligned to the first reference surface or the second reference surface of the pressure sensitive support in the image.
If the distance between the first line segment and the second line segment in the alignment graph is determined based on the first reference surface, based on the moving command, moving the first line segment of the alignment graph to align with the first reference surface of the pressure sensitive support in the image; and if the distance between the first line segment and the second line segment in the alignment graph is determined based on the second reference surface, moving the first line segment of the alignment graph to be aligned with the second reference surface of the pressure sensitive support in the image based on the moving command.
And S203, aligning the second line segment of the alignment graph with the third reference surface or the fourth reference surface of the pressure sensitive support in the image based on the moving command.
If the distance between the first line segment and the second line segment in the alignment graph is determined based on the third reference surface, moving the second line segment of the alignment graph to align with the third reference surface of the pressure sensitive support in the image based on the moving command; and if the distance between the first line segment and the second line segment in the alignment graph is determined based on the fourth reference surface, moving the second line segment of the alignment graph to be aligned with the fourth reference surface of the pressure sensitive support in the image based on the moving command.
In one or more embodiments, as shown in fig. 1, 2, and 7, the nut 103 can include a first nut 1031 and a second nut 1032, and the alignment pattern can 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 moved to a specific position and the first nut 1031 may be welded to the pressure-sensitive module 101 by laser; then, the second nut 1032 is moved to a specific position, and the second nut 1032 is welded to the pressure-sensitive module 101 by using laser.
The second line segment of the first alignment pattern 201 is aligned with the third reference surface of the pressure sensitive bracket 102 in the image, and the first line segment of the first alignment pattern 201 may be aligned with the first positioning surface of the first nut 1031 in the image. The distance of the first nut 1031 on the pressure-sensitive module 101 is controlled, so that the deformation amplitude of the elastic sheet 1011 on the pressure-sensitive module 101 can be controlled. A first line segment in the second alignment graphic 202 may be aligned with a first reference surface of the pressure sensitive support 102 in the image and a second line segment in the second alignment graphic 202 may be aligned with a second alignment surface of the second nut 1032 in the image. The distance of the second nut 1032 on the pressure-sensitive module 101 is controlled, and the installation position of the pen cap of the stylus pen can be controlled.
The first line segment of the alignment graph is aligned with the first reference surface or the second reference surface of the pressure-sensitive support in the image, and the second line segment of the alignment graph is used for being aligned with the positioning surface of the nut. The nut can be rotated through the jig to change the position of the nut on the pressure-sensitive module, namely, the position of the positioning surface can be changed by rotating the nut through the jig. In one or more embodiments, the method may further include the steps (S301 to S302) of:
s301, determining the position of the second line segment and the position of the nut positioning surface in the image.
After the first line segment is aligned with the first reference surface or the second reference surface of the pressure-sensitive support in the image, the position of the second line segment is unchanged, and the position of the nut positioning surface can be changed. And detecting the nut positioning surface in real time before the alignment of the nut positioning surface and the second line segment is not determined so as to determine the position of the nut positioning surface.
S302, if the position of the second line segment is superposed with the position of the nut positioning surface, the nut is determined to be located at the specific position of the pressure sensing module.
If the nut is moved to enable the position of the nut positioning surface to coincide with the position of the second line segment, the second line segment can be determined to be aligned with the nut positioning surface, namely the position of the nut on the pressure sensing module reaches a specific position, and the system can remind an operator through sound, pictures and texts and other forms.
The second line segment of the alignment graph is aligned with the third reference surface or the fourth reference surface of the pressure-sensitive support in the image, and the first line segment of the alignment graph is used for being aligned with the positioning surface of the nut. The nut can be rotated through the jig to change the position of the nut on the pressure-sensitive module, namely, the position of the positioning surface can be changed by rotating the nut through the jig. In one or more embodiments, the method may further include the steps of (S401 to S402):
s401, determining the position of the first line segment and the position of the nut positioning surface in the image.
After the second line segment is aligned with the third reference surface or the fourth reference surface of the pressure-sensitive support in the image, the position of the second line segment is unchanged, and the position of the nut positioning surface can be changed. Before the alignment of the nut positioning face and the first line segment is not determined, the nut positioning face is detected in real time to determine the position of the nut positioning face.
S402, if the position of the first line segment is superposed with the position of the nut positioning surface, determining that the nut is located at the specific position of the pressure sensing module.
If the nut is moved to enable the position of the nut positioning surface to coincide with the position of the first line segment, the first line segment can be determined to be aligned with the nut positioning surface, namely the position of the nut on the pressure sensing module reaches a specific position, and the system can remind an operator through sound, pictures and texts and other forms.
Example 2
The embodiment provides a handwriting pen nut aligning device, and the testing device of the deep learning model can be the testing side server or be arranged in the testing side server. As shown in fig. 8, includes: a generation module 201, a first acquisition display 202 and a second acquisition display module 203.
A generating module 201, configured to generate an alignment graph in a display, where the alignment graph includes two parallel line segments; for details, please refer to the related description in embodiment 1, which is not repeated herein.
The first acquisition and display module 202 is configured to acquire and display an image of the aligned stylus pen on the display, where a first line segment is aligned with a first reference surface or a second reference surface of the pressure-sensitive bracket in the image, and a second line segment is aligned with a positioning surface of the nut in the image, so that the nut is located at a specific position of the pressure-sensitive module in the image; for details, please refer to the related description in embodiment 1, which is not repeated herein.
Or the second obtaining and displaying module 203 is configured to obtain and display an image of the aligned stylus pen in the display, where the second line segment is aligned with the third reference surface or the fourth reference surface of the pressure-sensitive bracket in the image, and the first line segment is used to be aligned with the positioning surface of the nut in the image, so that the nut is located at a specific position of the pressure-sensitive module in the image; for details, please refer to the related description in embodiment 1, which is not repeated herein.
When the pen cap is aligned, the line segment close to the pen cap mounting end of the pressure sensing module is a first line segment, the line segment far away from the pen cap mounting end is a second line segment, and the distance between the two parallel line segments is determined based on the datum plane of the pressure sensing support. For details, please refer to the related description in embodiment 1, and the details are not repeated herein.
In one or more embodiments, as shown in fig. 9, the apparatus further comprises: an acquisition module 401, a first alignment module 402, and a second alignment module 403.
An obtaining module 401, configured to obtain a moving command for the alignment pattern; for details, please refer to the related description in embodiment 1, which is not repeated herein.
A first alignment module 402, configured to align a first line segment of the alignment pattern with a first reference plane or a second reference plane of a pressure-sensitive support in the image based on the movement command; for details, please refer to the related description in embodiment 1, which is not repeated herein.
Or the second alignment module 403, configured to align the second line segment of the alignment pattern with the third reference surface or the fourth reference surface of the pressure-sensitive support in the image based on the moving command. For details, please refer to the related description in embodiment 1, which is not repeated herein.
The effect of the nut alignment device of the stylus pen in this embodiment can be referred to the related description in embodiment 1, and is not described herein again.
Example 3
The present embodiment provides a computer device, as shown in fig. 10, the computer device includes a processor 501 and a memory 502, where the processor 501 and the memory 502 may be connected by a bus or other means, and fig. 10 takes the example of connection by a bus as an example.
Processor 501 may be a Central Processing Unit (CPU). The Processor 501 may also be other general purpose processors, Digital Signal Processors (DSPs), Graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs), or other dedicated deep learning coprocessors, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the stylus nut alignment method in the embodiments of the present invention (e.g., the generating module 201, the first capture display 202, and the second capture display module 203; the obtaining module 401, the first alignment module 402, and the second alignment module 403 in the embodiments described above, etc.). The processor 501 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 502, that is, the stylus pen nut alignment method is implemented.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 501, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to processor 501 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions can execute the handwriting pen nut alignment method in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
The embodiment of the present application further provides a computer program product, and when the computer program product runs on a computer device, the stylus pen nut alignment method in embodiment 1 is implemented.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such 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 intended to include such modifications and variations as well.

Claims (10)

1. A stylus nut aligning method is characterized by comprising the following steps:
generating an alignment graph in a display, wherein the alignment graph comprises two parallel line segments;
acquiring and displaying an image of the aligned handwriting pen in the display, wherein a first line segment is aligned with a first reference surface or a second reference surface of a pressure-sensitive bracket in the image, and a second line segment is used for aligning with a positioning surface of a nut in the image, so that the nut is positioned at a specific position of a pressure-sensitive module in the image; or
Acquiring and displaying an image of the aligned handwriting pen in the display, wherein a second line segment is aligned with a third reference surface or a fourth reference surface of the pressure-sensitive support in the image, and a first line segment is used for being aligned with a positioning surface of a nut in the image, so that the nut is positioned at a specific position of the pressure-sensitive module in the image;
when the pressure-sensitive support is aligned, a line segment close to the pen cap mounting end of the pressure-sensitive module is a first line segment, a line segment far away from the pen cap mounting end is a second line segment, and the distance between the two parallel line segments is determined based on the reference surface of the pressure-sensitive support.
2. The stylus nut alignment method of claim 1, wherein the alignment pattern is rectangular.
3. The stylus pen nut alignment method of claim 2, further comprising:
and the tolerance rectangle is positioned at two ends of a line segment which is aligned with the positioning surface of the nut in the alignment graph, and the center of the tolerance rectangle is positioned at the end point of the alignment graph.
4. The stylus nut alignment method of claim 2, wherein the alignment pattern further comprises a third line segment and a fourth line segment that are parallel; generating the alignment pattern comprises:
acquiring the distance between a first line segment and a second line segment in the alignment graph and the distance between a third line segment and a fourth line segment;
and generating a corresponding rectangle 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.
5. The stylus pen nut alignment method of any one of claims 1-4, after generating an alignment pattern in a display, the method further comprising:
acquiring a moving command aiming at the alignment graph;
based on the movement command, aligning a first line segment of the alignment graph with a first reference surface or a second reference surface of a pressure sensitive support in the image; or
And aligning the second line segment of the alignment graph to a third reference surface or a fourth reference surface of the pressure sensitive support in the image based on the movement command.
6. The stylus pen nut aligning method according to any one of claims 1-5, wherein the nut comprises a first nut and a second nut, and the alignment pattern comprises a first alignment pattern and a second alignment pattern;
the second line segment of the first alignment pattern is aligned with a third datum plane of the pressure-sensitive bracket in the image, and the first line segment of the first alignment pattern is used for being aligned with a first positioning plane of the first nut in the image;
the first line segment of the second alignment pattern is aligned with a first datum plane of the pressure-sensitive bracket in the image, and the second line segment of the second alignment pattern is used for being aligned with a second positioning plane of a second nut in the image.
7. The stylus pen nut aligning method according to any one of claims 1-5, wherein after the first line segment is aligned with the first datum surface or the second datum surface of the pressure-sensitive support in the image, the method further comprises:
determining the position of the second line segment and the position of a nut positioning surface in the image;
if the position of the second line segment is superposed with the position of the nut positioning surface, determining that the nut is positioned at the specific position of the pressure sensing module;
or in the second line segment is aligned with a third reference plane or a fourth reference plane of a pressure sensitive support in the image, the method further comprising:
determining the position of the first line segment and the position of a nut positioning surface in the image;
and if the position of the first line segment is superposed with the position of the nut positioning surface, determining that the nut is positioned at the specific position of the pressure sensing module.
8. A stylus nut aligning device, comprising:
the generation module is used for generating an alignment graph in a display, and the alignment graph comprises two parallel line segments;
the first acquisition and display module is used for acquiring and displaying an image of the aligned handwriting pen in the display, the first line segment is aligned with a first datum plane or a second datum plane of the pressure-sensitive support in the image, and the second line segment is used for being aligned with a positioning plane of the nut in the image, so that the nut is positioned at a specific position of the pressure-sensitive module in the image;
or the second acquisition and display module is used for acquiring and displaying an image of the aligned handwriting pen in the display, the second line segment is aligned with the third reference surface or the fourth reference surface of the pressure-sensitive support in the image, and the first line segment is used for being aligned with the positioning surface of the nut in the image, so that the nut is positioned at the specific position of the pressure-sensitive module in the image;
when the pressure-sensitive support is aligned, a line segment close to the pen cap mounting end of the pressure-sensitive module is a first line segment, a line segment far away from the pen cap mounting end is a second line segment, and the distance between the two parallel line segments is determined based on the reference surface of the pressure-sensitive support.
9. An electronic device, comprising:
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 method of any one of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program; the computer program is executed by a processor to implement the method of any one of claims 1-7.
CN202210420427.1A 2022-04-20 2022-04-20 Handwriting pen nut alignment method, device, equipment and storage medium Pending CN114882103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210420427.1A CN114882103A (en) 2022-04-20 2022-04-20 Handwriting pen nut alignment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210420427.1A CN114882103A (en) 2022-04-20 2022-04-20 Handwriting pen nut alignment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114882103A true CN114882103A (en) 2022-08-09

Family

ID=82672521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210420427.1A Pending CN114882103A (en) 2022-04-20 2022-04-20 Handwriting pen nut alignment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114882103A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5278953A (en) * 1991-11-08 1994-01-11 Aura Systems, Inc. Machine tool fixture computer aided setup
JPH08254401A (en) * 1995-03-16 1996-10-01 Honda Motor Co Ltd Thread groove inspection device for nut screw
JPH106264A (en) * 1996-06-27 1998-01-13 Ricoh Co Ltd Robot arm condition sensing method and its system
US5742701A (en) * 1994-02-15 1998-04-21 Matsushita Electric Industrial Co., Ltd. Alignment detection apparatus
US5912816A (en) * 1995-03-23 1999-06-15 Milliken & Company Method and apparatus to align knitting needles and guides
KR20060002588A (en) * 2004-07-02 2006-01-09 한국원자력연구소 Apparatus for aligning neutron guides precisely
JP2007017424A (en) * 2005-06-10 2007-01-25 Fast:Kk POSITION ALIGNMENT SYSTEM BY XYtheta STAGE
JP2007018494A (en) * 2005-06-10 2007-01-25 Fast:Kk POSITION ALIGNMENT SYSTEM BY XYthetaSTAGE
JP2007094258A (en) * 2005-09-30 2007-04-12 Epson Imaging Devices Corp Method of manufacturing electro-optical device, alignment method, and apparatus for manufacturing the electro-optical device
US20110019876A1 (en) * 2009-07-21 2011-01-27 Galoppo Travis J Systems And Methods For Detecting Alignment Errors
US20130185918A1 (en) * 2010-12-17 2013-07-25 Shigemi Yamane Method for manufacturing structure and apparatus for manufacturing structure
JP2015136742A (en) * 2014-01-21 2015-07-30 セイコーエプソン株式会社 Control device, robot system, robot and calibration method
CN108466269A (en) * 2018-04-24 2018-08-31 武汉纺织大学 A kind of autonomous positioning control method for electric power cable Work robot manipulator
CN110315310A (en) * 2019-07-13 2019-10-11 杜宗英 The equipment of medical health equipment U-bolt accessory intelligence nutting
CN110753952A (en) * 2017-02-28 2020-02-04 优质视觉技术国际公司 Automatic alignment of 3D models to test objects

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5278953A (en) * 1991-11-08 1994-01-11 Aura Systems, Inc. Machine tool fixture computer aided setup
US5742701A (en) * 1994-02-15 1998-04-21 Matsushita Electric Industrial Co., Ltd. Alignment detection apparatus
JPH08254401A (en) * 1995-03-16 1996-10-01 Honda Motor Co Ltd Thread groove inspection device for nut screw
US5912816A (en) * 1995-03-23 1999-06-15 Milliken & Company Method and apparatus to align knitting needles and guides
JPH106264A (en) * 1996-06-27 1998-01-13 Ricoh Co Ltd Robot arm condition sensing method and its system
KR20060002588A (en) * 2004-07-02 2006-01-09 한국원자력연구소 Apparatus for aligning neutron guides precisely
JP2007017424A (en) * 2005-06-10 2007-01-25 Fast:Kk POSITION ALIGNMENT SYSTEM BY XYtheta STAGE
JP2007018494A (en) * 2005-06-10 2007-01-25 Fast:Kk POSITION ALIGNMENT SYSTEM BY XYthetaSTAGE
JP2007094258A (en) * 2005-09-30 2007-04-12 Epson Imaging Devices Corp Method of manufacturing electro-optical device, alignment method, and apparatus for manufacturing the electro-optical device
US20110019876A1 (en) * 2009-07-21 2011-01-27 Galoppo Travis J Systems And Methods For Detecting Alignment Errors
US20130185918A1 (en) * 2010-12-17 2013-07-25 Shigemi Yamane Method for manufacturing structure and apparatus for manufacturing structure
JP2015136742A (en) * 2014-01-21 2015-07-30 セイコーエプソン株式会社 Control device, robot system, robot and calibration method
CN110753952A (en) * 2017-02-28 2020-02-04 优质视觉技术国际公司 Automatic alignment of 3D models to test objects
CN108466269A (en) * 2018-04-24 2018-08-31 武汉纺织大学 A kind of autonomous positioning control method for electric power cable Work robot manipulator
CN110315310A (en) * 2019-07-13 2019-10-11 杜宗英 The equipment of medical health equipment U-bolt accessory intelligence nutting

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JAMES WATSON ET AL.: "《Autonomous Industrial Assembly using Force, Torque, and RGB-D sensing》", 《HTTPS://ARXIV.ORG/PDF/200202580.PDF》, 7 February 2020 (2020-02-07), pages 1 - 20 *
何一鸣: "《一种基于主动柔顺控制的弹簧自锁螺母装配系统》", 《中国优秀硕士学位论文全文数据库工程科技Ⅰ辑》, 31 January 2022 (2022-01-31) *
刘娜: "《基于机器视觉的对位装置的研制》", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》, 31 January 2021 (2021-01-31) *

Similar Documents

Publication Publication Date Title
CN104391603B (en) A kind of calibration method of touch screen, calibrating installation and calibration system
WO2016155190A1 (en) Substrate detecting device and bulge height detecting method
Chang et al. Development of an optical inspection platform for surface defect detection in touch panel glass
WO2022151716A1 (en) Wafer measurement method and apparatus, medium, and electronic device
CN115454275B (en) Quality detection method and device for capacitive touch screen and computer equipment
CN103673987A (en) System and method for evaluating inclination degree of camera module testing equipment
WO2017107534A1 (en) Method and device for measuring angle, and method and device for adjusting angle
CN105806301A (en) Surface warpage measurement device and method
CN105526858A (en) Automatic flatness detection device and test method
WO2014043983A1 (en) Built-in capacitive touch display screen, and touch point detection method and system therefor
TW201504619A (en) System and method for detecting shape flaw
US10037107B2 (en) Optical touch device and sensing method thereof
CN114882103A (en) Handwriting pen nut alignment method, device, equipment and storage medium
US20140050052A1 (en) Method and system for detecting spatial position of indicator object by using sound wave
CN106441162A (en) Cylindrical object verticality noncontact detection device and method
WO2022035768A1 (en) Pressure-based liquid level detection
KR101329107B1 (en) Ellipticity measuring apparatus and measuring method of pipe
CN112985990A (en) Pressure detection device, pressure detection method, computer device, and storage medium
JP5752001B2 (en) Touch panel inspection device
CN115740791A (en) Laser cutting method, electronic device, system and storage medium
JP5314018B2 (en) Factor measurement and display device, factor measurement and display method, factor measurement and display program for causing computer to execute factor measurement and display method, and acoustic scanner
CN104463824A (en) TFT substrate detection equipment image correction method and apparatus
WO2017128284A1 (en) Method for calibrating touchscreen panel with industrial robot and system, industrial robot and touchscreen using the same
CN104345091A (en) Method and device for positioning intersecting line for pipe welding
TW201217898A (en) Detecting system and detecting method for lens module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination