CN114459434A - Dot matrix pen inclination angle detection method and system and electronic equipment - Google Patents

Dot matrix pen inclination angle detection method and system and electronic equipment Download PDF

Info

Publication number
CN114459434A
CN114459434A CN202210106049.XA CN202210106049A CN114459434A CN 114459434 A CN114459434 A CN 114459434A CN 202210106049 A CN202210106049 A CN 202210106049A CN 114459434 A CN114459434 A CN 114459434A
Authority
CN
China
Prior art keywords
rotation angle
determining
dot matrix
axis
distance
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
CN202210106049.XA
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.)
Qingdao Luobo Technology Co ltd
Original Assignee
Qingdao Luobo 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 Qingdao Luobo Technology Co ltd filed Critical Qingdao Luobo Technology Co ltd
Priority to CN202210106049.XA priority Critical patent/CN114459434A/en
Publication of CN114459434A publication Critical patent/CN114459434A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C9/00Measuring inclination, e.g. by clinometers, by levels
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/26Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention relates to a dot matrix pen dip angle detection method, a dot matrix pen dip angle detection system, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: detecting a square area formed by the micrographs to obtain the distance from each corner point to the center of the square area; determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area; determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle; determining a third rotation angle of the micrographic unit along the Y-axis from the first rotation angle and the second rotation angle; and determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle. The invention can calculate the inclination angle of the dot matrix pen by utilizing the micro-graph unit shot by the camera on the dot matrix pen, so that the dot matrix pen can obtain the inclination angle of the dot matrix pen without adding other inclination angle detection elements, thereby greatly saving the production cost of the dot matrix pen.

Description

Dot matrix pen inclination angle detection method and system and electronic equipment
Technical Field
The invention relates to the technical field of dot matrix pen inclination angle detection, in particular to a dot matrix pen inclination angle detection method, a dot matrix pen inclination angle detection system, electronic equipment and a computer readable storage medium.
Background
The existing dot-matrix pen collects code points laid on paper in advance through a camera, and restores writing handwriting by extracting coordinate information of the code points through a certain algorithm. The camera is a miniature camera and is arranged at the pen point, the printing resolution of the paper is required to be higher by the image unit of the point code, the requirement on the light path of the miniature camera is relatively strict, the distance between the camera and the paper is required to be basically unchanged under the condition of the prior art, and the error is not more than 2 millimeters. When a dot matrix pen is used as touch input, two modes are available, one mode is that the dot matrix pen moves on a printing medium printed with dot codes, and obtained coordinates are transmitted to display equipment in a wireless or wired mode so as to display the movement and action of a cursor; the other mode is that a writing or control interface with point codes is directly displayed on a display, and a dot matrix pen can directly perform touch operation on the display screen.
In the application field of using a dot matrix pen as touch operation, sometimes the inclination angle between the pen and a medium needs to be sensed so as to simulate a real writing and drawing scene, and the simulation of the scene can bring better user experience, for example, in the education field, the pen holding posture of students needs to be mastered; or, in the drawing field, to simulate the inclination angle of the brush, in the drawing software such as PHOTOSHOP, different inclination angles may cause the brush to change accordingly, and so on.
The existing dot-matrix pen generally detects the tilt angle between the dot-matrix pen and the medium by adding other tilt angle detecting elements (such as micro-mechanical acceleration sensors), but such a detection method may increase the manufacturing cost of the dot-matrix pen.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a method, a system and an electronic device for detecting a tilt angle of a dot-matrix pen, so as to solve the problem of high manufacturing cost of the dot-matrix pen.
A dot matrix pen inclination angle detection method comprises the following steps:
step 1: acquiring a square micro-graph unit shot by a camera on a dot matrix pen;
step 2: detecting a square area formed by the micrographs, and obtaining the distance from each corner point to the center of the square area;
and step 3: determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
and 4, step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle;
and 5: determining a third rotation angle of the micrographic unit along the Y-axis from the first rotation angle and the second rotation angle;
step 6: and determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
Preferably, the step 3: determining a first rotation angle of the micro-map unit along the Z-axis according to the diagonal length of the square area, comprising:
the formula is adopted:
Figure BDA0003493961870000021
Figure BDA0003493961870000022
determining a first rotation angle of the micromap unit along the Z-axis; where α denotes the first rotation angle, r1 ═ l1/l3, r2 ═ l2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
Preferably, the step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle, comprising:
the formula is adopted:
Figure BDA0003493961870000031
Figure BDA0003493961870000032
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
Preferably, the step 4: determining a second rotation angle of the micropattern element along the X-axis from the first rotation angle, comprising:
the formula is adopted:
Figure BDA0003493961870000033
Figure BDA0003493961870000034
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
Preferably, when square microprogram cells are photographed, both the object distance and the image distance are equal to 2 times the focal length.
The invention also provides a system for detecting the inclination angle of the dot matrix pen, which comprises:
the micro-drawing unit acquisition module is used for acquiring square micro-drawing units shot by a camera on the dot matrix pen;
the image processing module is used for detecting a square area formed by the microimage units and obtaining the distance from each corner point to the center of the square area;
the first rotation angle calculation module is used for determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
a second rotation angle calculation module for determining a second rotation angle of the micrographic unit along the X-axis based on the first rotation angle;
a third rotation angle determination module for determining a third rotation angle of the micrographic unit along the Y-axis based on the first rotation angle and the second rotation angle;
and the inclination angle determining module is used for determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
Preferably, the first rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000041
Figure BDA0003493961870000042
determining a first rotation angle of the micromap unit along the Z-axis; where α denotes the first rotation angle, r1 ═ l1/l3, r2 ═ l2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
Preferably, the second rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000043
Figure BDA0003493961870000044
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
Preferably, the second rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000045
Figure BDA0003493961870000046
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
The invention also provides an electronic device, which comprises a bus, a transceiver, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the transceiver, the memory and the processor are connected through the bus, and the electronic device is characterized in that the computer program realizes the steps in the dot-matrix pen inclination angle detection method when being executed by the processor.
The invention also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps in a method for detecting a tilt angle of a dot-matrix pen as described above.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention relates to a dot matrix pen dip angle detection method, a dot matrix pen dip angle detection system, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: detecting a square area formed by the micrographs to obtain the distance from each corner point to the center of the square area; determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area; determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle; determining a third rotation angle of the micrographic unit along the Y-axis from the first rotation angle and the second rotation angle; and determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle. The invention can calculate the inclination angle of the dot matrix pen by utilizing the micro-graph unit shot by the camera on the dot matrix pen, so that the dot matrix pen can obtain the inclination angle of the dot matrix pen without adding other inclination angle detection elements, thereby greatly saving the production cost of the dot matrix pen.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a dot matrix pen camera imaging provided by the present invention;
FIG. 2 is a schematic diagram of the tilt imaging of an object provided by the present invention;
FIG. 3 is a schematic diagram of a three-dimensional imaging of a point code medium according to the present invention;
FIG. 4 is a line imaging schematic diagram provided by the present invention;
FIG. 5 is a flowchart of a method for detecting a tilt angle of a dot matrix pen according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a method for detecting a tilt angle of a dot matrix pen according to an embodiment of the present invention.
Detailed Description
In the description of the present invention, 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", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The invention aims to provide a dot matrix pen inclination angle detection method, a dot matrix pen inclination angle detection system and electronic equipment, and aims to solve the problem that the existing dot matrix pen is high in manufacturing cost.
The invention uses the tangential distortion of the micrographic unit image shot by the camera on the dot matrix pen to calculate the inclination angle formed between the dot matrix pen and the writing medium surface. For convenience of understanding, before describing a method for detecting a tilt angle of a dot matrix pen according to an embodiment of the present invention, a mechanism for generating a tangential distortion is described.
Referring to FIGS. 1-2, the right side of the lens is the object to be imaged, SA/SB/SC respectively, and the left side of the lens is the image sensor, and the images of them are AA '/BB '/CC ' in sequence. If SA and SB are the dot code medium surface of the dot matrix pen, the results of (b) and (c) are obtained respectively after imaging. It can thus be seen that the resulting image is tangentially distorted due to the non-parallelism of the lens and the surface of the medium. Such tangential distortion is noticeable when the focal length of the subject is comparable to the size of the subject. The invention uses the tangential distortion to calculate the size of the dip angle.
Referring to fig. 3, in (a), a square area is sampled when the dot matrix pen camera faces the medium. When the two pairs are aligned, the imaging is shown as (a'). When the pen is tilted at an angle along the x-axis, an image (b') will be obtained according to the analysis of fig. 2; in practice, the pen will also rotate along its longitudinal axis, corresponding to the media rotating along the z-axis, and accordingly an image (c') will be obtained, as shown in fig. (c). Therefore, the tilt angle of the pen on the medium can be simulated by rotating relative to the two shafts. In practice, it is also equivalent that the medium is only rotated about the X and Y axes, for example when the pen is rotated about the Y axis, it may be equivalent to the medium being rotated first in one direction about the Z axis and then about the X axis, the resulting image being identical in terms of distortion. The invention adopts the rotation of the X axis and the Z axis to more clearly describe the relationship between the distortion magnitude and the inclination angle, and the Z axis of the space rectangular coordinate system constructed by the invention is consistent with the shooting direction of the dot-matrix pen.
Referring to fig. 4, a straight line segment is placed 2 times the focal length in front of the lens, and for convenience of description, the imaging size is AA ' itself, the X axis is perpendicular to the outside, when the line segment rotates around the X axis by an angle θ, the resulting imaging is BB ', where O is the midpoint of AA ', the length is 2l (the length of 2 line segments), and the distance of SO is u, the following relationship can be obtained:
Figure BDA0003493961870000081
Figure BDA0003493961870000082
Figure BDA0003493961870000083
and (4) calculating the rotation angle of the straight line segment l according to the steps (1) to (3).
The following explains a method for detecting the tilt angle of a dot matrix pen provided by the invention:
referring to fig. 5-6, a method for detecting a tilt angle of a dot matrix pen includes:
step 1: acquiring a square micro-graph unit shot by a camera on a dot matrix pen;
it should be noted that, the object distance and the image distance of the lens are both near 2 times of the focal length, and image distortion favorable for tilt detection can be generated when the dot-matrix pen is tilted.
Step 2: detecting a square area formed by the micrographs, and obtaining the distance from each corner point to the center of the square area;
and step 3: determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
further, step 3 comprises:
the formula is adopted:
Figure BDA0003493961870000084
Figure BDA0003493961870000085
determining a first rotation angle of the micrographic cell along the Z-axis; where α denotes the first rotation angle, r1 ═ l1/l3, r2 ═ l2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
And 4, step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle;
in the embodiment of the present invention, step 4 includes:
the formula is adopted:
Figure BDA0003493961870000091
Figure BDA0003493961870000092
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
It should be noted that the present invention can also adopt the formula:
Figure BDA0003493961870000093
Figure BDA0003493961870000094
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
And 5: determining a third rotation angle of the micrographic unit along the Y-axis from the first rotation angle and the second rotation angle;
and 6: and determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
The invention is further illustrated by the following specific examples:
referring to fig. 6, in order to quantitatively analyze the relationship between tangential distortion and inclination angle, the camera takes a square area each time, wherein the square area contains a square number of units of the micrographs, which may be 4, 9 or 16, for example. The size of the square area can be selected to be 4-20 square millimeters, the focal length of the camera can be 6 millimeters, and the image distance is about 2 times of the focal length, so that a better distortion effect can be achieved.
The square EFGH represents the area of the captured square, and in order to express the distortion size, the diagonal lines are connected, the center point is the point O, and the length of the diagonal line is 2L, as shown in fig. 6 (a).
For simplicity of analysis, the change of the square area is divided into two steps, the first step is rotation along the X-axis direction, as shown in fig. 6(b), and the resulting image is shown in fig. 6(b), where l1/l3 ═ l2/l4 ═ IO/JO. If the angle of rotation is theta, the relations (1) and (2) are satisfied.
Secondly, the square area rotates around the center by an angle α, as shown in fig. 6(c), and is imaged as fig. 6(d) through a lens, and in order to analyze the distortion, the angular point E, F, G, H is projected onto the axis in sequence, so that it can be deduced that the ratio of l1/l3 in fig. 6(d) is equal to the ratio of IO and JO segments in fig. 6(c) after distortion.
Let r1 ═ l1/l3, r2 ═ l2/l 4.
According to the formula (1) and the projection relation of each corner point on the axis, the connection lines of the corner points E and G and the connection line thereof in the formula (4) can be obtained
Figure BDA0003493961870000101
Figure BDA0003493961870000102
For corner points F and H, and their connecting lines, in equation (5)
Figure BDA0003493961870000103
Figure BDA0003493961870000104
According to (4) and (5), it is possible to obtain:
Figure BDA0003493961870000105
in the formula (I), the compound is shown in the specification,
Figure BDA0003493961870000106
since R is a known quantity, the value of θ can be obtained by substituting equation (6) into equation (4) or (5).
In practical use, the angle values rotating along the X axis and the Z axis need to be converted into the angle values rotating along the X axis and the Y axis, which can be simply realized by using the spatial spherical coordinates. And will not be described in detail herein.
The algorithm of the invention comprises the following steps:
1. 4 or 9 or 16 micrographs were taken;
2. image processing, namely detecting a square area formed by the microimage units and acquiring 4 corner points of the square area;
3. calculating distances l1, l2, l3 and l 4;
4. calculating a rotation angle α along the Z-axis;
5. calculating a rotation angle θ along the X-axis;
6. calculating the tilt angle in the X and Y directions
Figure BDA0003493961870000111
And
Figure BDA0003493961870000112
and reporting to the system; further, by using the relationship between the spherical coordinates and the rectangular coordinates, it is possible to obtain:
Figure BDA0003493961870000113
Figure BDA0003493961870000114
the invention can calculate the inclination angle of the dot matrix pen by utilizing the square area formed by the micro-graph units shot by the camera on the dot matrix pen, so that the dot matrix pen can obtain the inclination angle of the dot matrix pen without adding other inclination angle detection elements, thereby not only reducing the power consumption of the dot matrix pen, but also greatly saving the production cost of the dot matrix pen.
The invention also provides a system for detecting the inclination angle of the dot matrix pen, which comprises:
the micro-drawing unit acquisition module is used for acquiring square micro-drawing units shot by a camera on the dot matrix pen;
the image processing module is used for detecting a square area formed by the microimage units and obtaining the distance from each corner point to the center of the square area;
the first rotation angle calculation module is used for determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
a second rotation angle calculation module for determining a second rotation angle of the micropattern unit along the X-axis based on the first rotation angle;
a third rotation angle determination module for determining a third rotation angle of the micrographic unit along the Y-axis based on the first rotation angle and the second rotation angle;
and the inclination angle determining module is used for determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
Preferably, the first rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000115
Figure BDA0003493961870000121
determining a first rotation angle of the micromap unit along the Z-axis; where α denotes the first rotation angle, r1 ═ l1/l3, r2 ═ l2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
Preferably, the second rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000122
Figure BDA0003493961870000123
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
Preferably, the second rotation angle calculation module includes:
the formula is adopted:
Figure BDA0003493961870000124
Figure BDA0003493961870000125
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention can calculate the inclination angle of the dot matrix pen by utilizing the micro-graph unit shot by the camera on the dot matrix pen, so that the inclination angle of the dot matrix pen can be obtained without adding other inclination angle detection elements, thereby not only reducing the power consumption of the dot matrix pen, but also greatly saving the production cost of the dot matrix pen.
The embodiment of the invention also provides electronic equipment, which comprises a bus, a transceiver, a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the transceiver, the memory and the processor are respectively connected through the bus, and when the computer program is executed by the processor, the processes of the lattice pen inclination angle detection method embodiment are realized, the same technical effect can be achieved, and the details are not repeated here to avoid repetition.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for detecting an inclination angle of a dot-matrix pen, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and the present invention shall be covered by the claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A dot matrix pen inclination angle detection method is characterized by comprising the following steps:
step 1: acquiring a square micro-graph unit shot by a camera on a dot matrix pen;
step 2: detecting a square area formed by the micrographs, and obtaining the distance from each corner point to the center of the square area;
and step 3: determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
and 4, step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle;
and 5: determining a third rotation angle of the micrographic unit along the Y-axis from the first rotation angle and the second rotation angle;
step 6: and determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
2. The method for detecting the inclination angle of the dot matrix pen according to claim 1, wherein the step 3: determining a first rotation angle of the micro-map unit along the Z axis according to the length from each corner point to the center of the square area, wherein the first rotation angle comprises the following steps:
the formula is adopted:
Figure FDA0003493961860000011
Figure FDA0003493961860000012
determining a first rotation angle of the micromap unit along the Z-axis; where α denotes the first rotation angle, r1 ═ l1/l3, r2 ═ l2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
3. The method for detecting the inclination angle of the dot matrix pen according to claim 1, wherein the step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle, comprising:
the formula is adopted:
Figure FDA0003493961860000021
Figure FDA0003493961860000022
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
4. The method for detecting the inclination angle of the dot matrix pen according to claim 1, wherein the step 4: determining a second rotation angle of the micrographic unit along the X-axis from the first rotation angle, comprising:
the formula is adopted:
Figure FDA0003493961860000023
Figure FDA0003493961860000024
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
5. The method of claim 1, wherein the object distance and the image distance are both 2 times the focal length when capturing the square micro-image unit.
6. A dot matrix pen dip angle detection system is characterized by comprising:
the micro-drawing unit acquisition module is used for acquiring square micro-drawing units shot by a camera on the dot matrix pen;
the image processing module is used for detecting a square area formed by the microimage units and obtaining the distance from each corner point to the center of the square area;
the first rotation angle calculation module is used for determining a first rotation angle of the micro-image unit along the Z axis according to the length from each corner point to the center of the square area;
a second rotation angle calculation module for determining a second rotation angle of the micrographic unit along the X-axis based on the first rotation angle;
a third rotation angle determination module for determining a third rotation angle of the micrographic unit along the Y-axis based on the first rotation angle and the second rotation angle;
and the inclination angle determining module is used for determining the inclination angle of the dot matrix pen according to the second rotation angle and the third rotation angle.
7. The system of claim 6, wherein the first rotation angle calculating module comprises:
the formula is adopted:
Figure FDA0003493961860000031
Figure FDA0003493961860000032
determining a first rotation angle of the micromap unit along the Z-axis; where α denotes the first rotation angle, r1 l1/l3, r 2l 2/l4, l1 denotes the distance from the first corner point of the square region to the center of the square region, l2 denotes the distance from the second corner point of the square region to the center of the square region, l3 denotes the distance from the third corner point of the square region to the center of the square region, and l4 denotes the distance from the fourth corner point of the square region to the center of the square region.
8. The method of claim 6, wherein the second rotation angle calculation module comprises:
the formula is adopted:
Figure FDA0003493961860000033
Figure FDA0003493961860000041
determining a second rotation angle of the micrographic unit along the X-axis; where θ represents the second rotation angle, u represents the distance from the lens to the microprogram cell, and L represents the original side length of the square region composed of the microprogram cell.
9. An electronic device comprising a bus, a transceiver, a memory, a processor and a computer program stored on the memory and executable on the processor, the transceiver, the memory and the processor being connected via the bus, characterized in that the computer program, when executed by the processor, implements the steps of a method for lattice pen tilt detection as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for detecting the tilt of a dot matrix pen according to any one of claims 1 to 5.
CN202210106049.XA 2022-01-28 2022-01-28 Dot matrix pen inclination angle detection method and system and electronic equipment Pending CN114459434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210106049.XA CN114459434A (en) 2022-01-28 2022-01-28 Dot matrix pen inclination angle detection method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210106049.XA CN114459434A (en) 2022-01-28 2022-01-28 Dot matrix pen inclination angle detection method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN114459434A true CN114459434A (en) 2022-05-10

Family

ID=81412374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210106049.XA Pending CN114459434A (en) 2022-01-28 2022-01-28 Dot matrix pen inclination angle detection method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114459434A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011253343A (en) * 2010-06-02 2011-12-15 Dainippon Printing Co Ltd Information processing system and display processing program
JP2018155934A (en) * 2017-03-17 2018-10-04 株式会社リコー Display control device, display control method, display control program, and display control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011253343A (en) * 2010-06-02 2011-12-15 Dainippon Printing Co Ltd Information processing system and display processing program
JP2018155934A (en) * 2017-03-17 2018-10-04 株式会社リコー Display control device, display control method, display control program, and display control system

Similar Documents

Publication Publication Date Title
EP3848901A2 (en) Method and apparatus for calibrating external parameters of image acquisition device, device and storage medium
KR100947405B1 (en) Implement for Optically Inferring Information from a Planar Jotting Surface
JP6083747B2 (en) Position and orientation detection system
CN100417231C (en) Three-dimensional vision semi-matter simulating system and method
CN111380502B (en) Calibration method, position determination method, device, electronic equipment and storage medium
CN106990836B (en) Method for measuring spatial position and attitude of head-mounted human input device
WO2019005644A1 (en) A wearable eye tracking system with slippage detection and correction
US9269004B2 (en) Information processing terminal, information processing method, and program
CN109544643A (en) A kind of camera review bearing calibration and device
US10104286B1 (en) Motion de-blurring for panoramic frames
CN113763478B (en) Unmanned vehicle camera calibration method, device, equipment, storage medium and system
CN102136140A (en) Rectangular pattern-based video image distance detecting method
US20210034171A1 (en) Low-power tilt-compensated pointing method and corresponding pointing electronic device
CN112912936A (en) Mixed reality system, program, mobile terminal device, and method
CN112489136A (en) Calibration method, position determination method, device, electronic equipment and storage medium
CN110766751B (en) Unmanned aerial vehicle hovering precision self-measuring method based on ground marker
CN114706489B (en) Virtual method, device, equipment and storage medium of input equipment
CN109978956B (en) Calibration method, device and system for acquisition equipment
CN107534202A (en) A kind of method and apparatus for measuring antenna attitude
CN113409444B (en) Three-dimensional reconstruction method, three-dimensional reconstruction device, electronic equipment and storage medium
CN114459434A (en) Dot matrix pen inclination angle detection method and system and electronic equipment
CN112419423A (en) Calibration method, calibration device, electronic equipment and storage medium
CN106023723A (en) Educational toy set and convex mirror imaging correction method
US11941851B2 (en) Systems and methods for calibrating imaging and spatial orientation sensors
CN115311133A (en) Image processing method and device, electronic equipment and storage medium

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