Generation and recognition method of quadric surface two-dimensional code, printing device and mobile terminal
A quadratic surface and mobile terminal technology, applied in the field of 3D printing, can solve the problem of inability to print a two-dimensional code from a plane to a quadratic surface, and achieve the effect of simple and effective method and wide application range.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] refer to figure 1 , this embodiment provides a method for generating a quadric surface two-dimensional code, including:
[0062] Step S101, the printing device collects the plane two-dimensional code pattern;
[0063] Step S102, the printing device establishes a coordinate system;
[0064] Step S103, the printing device establishes a quadratic surface equation;
[0065] Step S104, the printing device constructs a projection ray equation according to the pixel point coordinates in the planar two-dimensional code pattern;
[0066] Step S105, the printing device calculates the intersection point coordinates of the projection ray and the quadric surface according to the quadric surface equation and the projection ray equation, and the intersection point coordinates are the projection points of the pixel points of the planar two-dimensional code pattern on the quadric surface coordinate;
[0067] Step S106, the printing device collects the plane pixel area of the pixel p...
Embodiment 2
[0109] Obtaining the quadratic surface two-dimensional code through the above method as in the first embodiment can obtain a plane two-dimensional code that is close to the standard through image acquisition device (such as a mobile phone), and can be recognized without correction. However, when the shooting direction or distance changes greatly, a certain deformation may also occur, but this deformation is also basically a projection deformation, which is equivalent to a gap between the imaging plane of the image acquisition device and the standard plane before mapping. Oblique angle, that is, the angle and position of the acquisition is changed, rather than the vertically downward orthographic projection, the most common situation is as Figure 5 As shown in , when the shooting direction or position is more biased towards one of the corner points, an irregular quadrilateral will be formed on the imaging plane. A correction method for this situation is proposed below.
[0110...
Embodiment 3
[0131] refer to Figure 7 , this embodiment provides a printing device, including:
[0132] The first image acquisition module 301 is used to acquire a plane two-dimensional code pattern,
[0133] Coordinate establishment module 302, for establishing coordinate system;
[0134] A quadratic equation building module 303, configured to set up a quadratic surface equation;
[0135] A projection ray equation establishment module 304, configured to construct a projection ray equation according to pixel coordinates in the planar two-dimensional code pattern;
[0136] The projection point coordinate calculation module 305 is used to calculate the intersection coordinates of the projection ray and the quadric surface according to the quadric surface equation and the projection ray equation, and the intersection coordinates are the pixel points of the planar two-dimensional code pattern on the quadric surface The coordinates of the projected point on
[0137] A plane pixel area acqu...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


