CN113199152A - Virtual reality laser marking method, device, equipment and storage medium - Google Patents
Virtual reality laser marking method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113199152A CN113199152A CN202110450348.0A CN202110450348A CN113199152A CN 113199152 A CN113199152 A CN 113199152A CN 202110450348 A CN202110450348 A CN 202110450348A CN 113199152 A CN113199152 A CN 113199152A
- Authority
- CN
- China
- Prior art keywords
- marking
- rectangular
- coordinate
- image
- positioning device
- 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.)
- Granted
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/36—Removing material
- B23K26/362—Laser etching
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/70—Auxiliary operations or equipment
- B23K26/702—Auxiliary equipment
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Plasma & Fusion (AREA)
- Mechanical Engineering (AREA)
- Laser Beam Processing (AREA)
Abstract
The invention relates to the field of laser marking, and discloses a virtual reality laser marking method, device, equipment and storage medium. The virtual reality laser marking method is applied to virtual reality laser marking equipment, and comprises the following steps: receiving a preparation instruction, and obtaining a first abscissa and a first ordinate based on a first positioning device and a second positioning device; calculating a first central coordinate, and moving the laser shooting gun to the first central coordinate to obtain a first image; printing a first marking pattern on a first rectangular marking object; positioning the second rectangular marking object to obtain a second abscissa and a second ordinate; calculating a second central coordinate according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal-vertical difference value vector; moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector; and printing a second marking pattern on a second rectangular marking object.
Description
Technical Field
The invention relates to the field of laser marking, in particular to a virtual reality laser marking method, device, equipment and storage medium.
Background
In the technical field of laser marking, the most common marked article is a rectangular article, and irregular, round, diamond, oval and the like objects needing to be marked are rarely seen. However, one of the initial core of marking is to find the center of symmetry of the marking object, and the existing marking technology based on the center of symmetry can print the pattern to be marked on the center of the object to be printed. Therefore, the marking pattern can be presented in the center of the whole marked article in a geometric symmetry manner, and the aesthetic requirement of daily aesthetics is met.
When the laser marking is carried out, the most frequently used marked articles are all rectangular regular objects, the most common shape of the regular objects is a rectangle, but the length and the width of the rectangular object are uncertain, so that the laser shooting gun needs to be debugged again when the rectangular object is replaced every time, the marking light path of the laser shooting gun is used for calibrating the center of the rectangle, and the laser marking efficiency is low. Therefore, a need exists for a laser marking system that improves the efficiency of laser marking and improves the speed of grasping the center of the rectangle by switching.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the switching type symmetrical center of a rectangular marking object is low in grabbing speed.
The invention provides a virtual reality laser marking method, which is applied to a virtual reality laser marking device, wherein the virtual reality laser marking device comprises a first positioning device, a second positioning device and a laser shooting gun, and the virtual reality laser marking method comprises the following steps:
receiving a preset preparation instruction, and positioning a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and grabbing an overall image of the first rectangular marking object to obtain a first image;
receiving a first preview instruction, displaying a first marking graph corresponding to the first preview instruction on a first image to generate a first preview image, receiving a first marking instruction, and printing the first marking graph on a first rectangular marking object;
receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal and vertical difference value vector;
moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and capturing the whole image of the second rectangular marking object to obtain a second image;
receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on the second image to generate a second preview image, receiving the second marking instruction, and printing the second marking graph on the second rectangular marking object.
Optionally, in a first implementation manner of the first aspect of the present invention, the end point of the first positioning device and the end point of the second positioning device intersect at a positioning intersection point, a straight line where the first positioning device is located is perpendicular to a straight line where the second positioning device is located, the first positioning device includes a first movable slider, the second positioning device includes a second movable slider, and the positioning processing is performed on the first rectangular marking object to be marked, so as to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object, includes:
controlling the first movable slide block and the second movable slide block to move towards the positioning intersection point, receiving a first resistance value received by the first movable slide block, and receiving a second resistance value received by the second movable slide block;
and when the first resistance value is larger than a preset stop threshold value and the second resistance value is larger than the stop threshold value, determining the position of the first movable slide block as a first abscissa corresponding to the first rectangular marking object, and determining the position of the second movable slide block as a first ordinate corresponding to the first rectangular marking object.
Optionally, in a second implementation manner of the first aspect of the present invention, the calculating a difference between the first central coordinate and the second central coordinate to obtain a horizontal-vertical difference vector includes:
subtracting the abscissa of the first central coordinate from the abscissa of the second central coordinate to obtain an abscissa difference value, and subtracting the ordinate of the first central coordinate from the ordinate of the second central coordinate to obtain an ordinate difference value;
and determining the horizontal coordinate difference value as a first element, determining the vertical coordinate difference value as a second element, and establishing a horizontal and vertical difference value vector which is formed by the first element and the second element.
Optionally, in a third implementation manner of the first aspect of the present invention, the receiving a first preview instruction, and displaying a first markup graphic corresponding to the first preview instruction on a first image, where generating a first preview image includes:
receiving a first preview instruction, capturing a first marking graph corresponding to the first preview instruction according to the first preview instruction, and performing rotation processing and scaling processing on the first marking graph to generate a transfer graph;
and moving the center coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image to generate a first preview image.
The second aspect of the present invention provides a virtual reality laser marking device, which includes a first positioning device, a second positioning device, a laser gun, and further includes:
the first receiving module is used for receiving a preset preparation instruction, and positioning a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
the first moving module is used for calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and grabbing an overall image of the first rectangular marking object to obtain a first image;
the first marking module is used for receiving a first preview instruction, displaying a first marking graph corresponding to the first preview instruction on a first image to generate a first preview image, receiving the first marking instruction and printing the first marking graph on a first rectangular marking object;
the second positioning module is used for receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
the calculation module is used for calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal and vertical difference value vector;
the second moving module is used for moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and grabbing the whole image of the second rectangular marking object to obtain a second image;
and the second marking module is used for receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on the second image to generate a second preview image, receiving the second marking instruction and printing the second marking graph on the second rectangular marking object.
Optionally, in a second implementation manner of the second aspect of the present invention, an end point of the first positioning device and an end point of the second positioning device intersect at a positioning intersection point, a straight line where the first positioning device is located is perpendicular to a straight line where the second positioning device is located, the first positioning device includes a first moving slider, the second positioning device includes a second moving slider, and the first receiving module includes:
the moving unit is used for controlling the first moving slide block and the second moving slide block to move towards the positioning intersection point, receiving a first resistance value received by the first moving slide block and receiving a second resistance value received by the second moving slide block;
and the calibration unit is used for determining the position of the first movable slide block as a first abscissa corresponding to the first rectangular marking object and determining the position of the second movable slide block as a first ordinate corresponding to the first rectangular marking object when the first resistance value is larger than a preset stop threshold value and the second resistance value is larger than the stop threshold value.
Optionally, in a third implementation manner of the second aspect of the present invention, the calculation module includes:
a subtraction processing unit, configured to perform subtraction processing on the abscissa of the first central coordinate and the abscissa of the second central coordinate to obtain an abscissa difference value, and perform subtraction processing on the ordinate of the first central coordinate and the ordinate of the second central coordinate to obtain an ordinate difference value;
and the vector generation unit is used for determining the horizontal coordinate difference value as a first element, determining the vertical coordinate difference value as a second element and establishing a horizontal and vertical difference value vector which is formed by the first element and the second element.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the first marking module includes:
the rotary scaling unit is used for receiving a first preview instruction, grabbing a first marking graph corresponding to the first preview instruction according to the first preview instruction, and performing rotary processing and scaling processing on the first marking graph to generate a transfer graph;
and the translation unit is used for moving the central coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image to generate a first preview image.
A third aspect of the present invention provides a virtual reality laser marking apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the virtual reality laser marking device to perform the virtual reality laser marking method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the above-described virtual reality laser marking method.
In the embodiment of the invention, the rectangular marking object is fixed and locked by using the marking device, the size of the rectangular marking object is determined according to the position of the rectangular marking object in the positioning device, the image of the rectangular marking object is captured, the virtual laser marking is realized, and the efficiency of positioning and calibrating the center of the rectangular marking object is improved.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a virtual reality laser marking method in an embodiment of the invention;
FIG. 2 is a schematic diagram of another embodiment of a virtual reality laser marking method in an embodiment of the invention;
FIG. 3 is a schematic diagram of one embodiment of a virtual reality laser marking apparatus in an embodiment of the invention;
FIG. 4 is a schematic diagram of another embodiment of a virtual reality laser marking apparatus in an embodiment of the invention;
FIG. 5 is a schematic diagram of a structural state of a virtual reality laser marking apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an embodiment of a virtual reality laser marking device in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a virtual reality laser marking method, equipment and a storage medium.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed process of the embodiment of the present invention is described below, and with reference to fig. 1, an embodiment of a virtual reality laser marking method in the embodiment of the present invention is applied to a virtual reality laser marking device, where the virtual reality laser marking device includes a first positioning device, a second positioning device, and a laser gun, and the virtual reality laser marking method includes:
101. receiving a preset preparation instruction, and positioning a first rectangular marking object to be marked based on a first positioning device and a second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
in this embodiment, the preparation instruction is to fix the first rectangular marking object to the positioning device, the first positioning device and the second positioning device are guide rail devices with sliders, and the sliders are provided with fixed cross bars perpendicular to the straight lines of the guide rails, so that the preparation instruction is executed. The slider moves to the intersection point of the first positioning device and the second positioning device, and the first rectangular marking object is fixed. In the fixing process, the slider can transmit the received resistance, if the resistance reaches a preset threshold value, the first rectangular marking object is determined to be fixed, the horizontal and vertical coordinates are determined according to the slider position of the rectangular marking object, when the horizontal and vertical coordinates are determined, the distance can be determined based on the position shielded by the slider, the distance can also be calculated based on a scale, the distance can also be determined based on the resistance, and the mode is not unique.
102. Calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and capturing an overall image of the first rectangular marking object to obtain a first image;
in the present embodiment, if the first abscissa of the first marking object has been measured to be 15, the second ordinate is 20. After the horizontal and vertical coordinates are collected, the horizontal and vertical coordinates are respectively halved to obtain 7.5 and 10, namely, (7.5,10) is the rectangular central coordinate of the first marking object. After the center distance of the first rectangular marking object is calculated, the center of the rectangular marking object is marked, the laser shooting gun is moved to the first center coordinate to mark, and the marked laser image is guaranteed to be a graph which can be symmetrical by taking the center of the marking object or distributed by taking the center as a layout.
103. Receiving a first preview instruction, displaying a first marking graph corresponding to the first preview instruction on a first image to generate a first preview image, receiving the first marking instruction, and printing the first marking graph on a first rectangular marking object;
in this embodiment, after receiving a first preview instruction, analyzing the first preview instruction, where the first preview instruction includes an image shape of the first marking pattern and a change instruction of operations such as scaling and rotation of the first marking pattern, and finally, a positioning coordinate of the first marking pattern on the first image, and overlapping the center coordinate of the first marking object with the positioning coordinate to form a preview effect image, and if the marking instruction is received at this time, marking the first rectangular marking object.
104. Receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on a first positioning device and a second positioning device to obtain a second abscissa and a second ordinate;
in this embodiment, when the first marking object is replaced with the second rectangular marking object, the slide block is far away from the intersection point until the resistance also reaches the resistance threshold value, at this time, the first rectangular marking object is replaced with the second rectangular marking object, and the second rectangular marking object is placed. And when the preparation instruction is received, the slide block measures the second rectangular marking object in the same processing mode, which is not described herein again.
105. Calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal-vertical difference value vector;
in this embodiment, if the second abscissa is 30 and the second ordinate is 40, the second central coordinate (15, 20) can be known, and the difference between the calculated abscissas is-7.5, and the difference between the ordinates is-20, the moving direction is positive or negative, and the moving distance is the magnitude, thereby forming a horizontal/vertical difference vector of (-7.5, -20).
106. Moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and capturing the whole image of the second rectangular marking object to obtain a second image;
in this embodiment, the laser gun is moved to the right by 7.5 units, and the laser gun is moved downward by 20 units, based on the vector of the lateral-longitudinal difference value of (-7.5, -20). And searching and calibrating the symmetrical median shape of the second rectangular marking object, and capturing the whole image of the second rectangular marking object based on the calibrated central coordinate.
107. And receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on a second image to generate a second preview image, receiving the second marking instruction, and printing the second marking graph on a second rectangular marking object.
In this embodiment, similar to the first preview image generation, after receiving the second marking instruction, the set second marking pattern is printed on the second rectangular marking object, so as to complete the whole fast search of the symmetric center of the rectangular marking object and the marking calibration.
In the embodiment of the invention, the rectangular marking object is fixed and locked by using the marking device, the size of the rectangular marking object is determined according to the position of the rectangular marking object in the positioning device, the image of the rectangular marking object is captured, the virtual laser marking is realized, and the efficiency of positioning and calibrating the center of the rectangular marking object is improved.
Referring to fig. 2, another embodiment of a virtual reality laser marking method according to an embodiment of the present invention includes:
201. receiving a preset preparation instruction, controlling the first movable slide block and the second movable slide block to move to a positioning intersection point based on the first positioning device and the second positioning device, receiving a first resistance value received by the first movable slide block, and receiving a second resistance value received by the second movable slide block;
in this embodiment, referring to fig. 5, the end point of the first positioning device 308 and the end point 309 of the second positioning device intersect at the positioning intersection point P, the straight line of the first positioning device 308 is perpendicular to the straight line of the second positioning device 309, the first positioning device 308 includes a first moving slider 3081, a first guide rail 3082 and a first cross bar 3083, the second positioning device 309 includes a second moving slider 3091, a first guide rail 3092 and a first cross bar 3093, and after receiving the preparation instruction, the first moving slider 3081 and the second moving slider 3092 move to the positioning intersection point at the same time.
202. When the first resistance value is larger than a preset stopping threshold value and the second resistance value is larger than the stopping threshold value, determining the position of the first movable slide block as a first abscissa corresponding to the first rectangular marking object, and determining the position of the second movable slide block as a first ordinate corresponding to the first rectangular marking object;
in this embodiment, in the measuring process, the resistance value of the first movable slider and the resistance value of the second movable slider are continuously detected, and when the resistance values of the two movable sliders are both greater than the stop threshold, it is determined that the abscissa and ordinate data of the rectangular marking object have been obtained at this time, and the slider position is determined as the abscissa and ordinate data of the rectangular marking object.
203. Calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and capturing an overall image of the first rectangular marking object to obtain a first image;
this embodiment is similar to the first embodiment, and will not be described herein.
204. Receiving a first preview instruction, capturing a first marking graph corresponding to the first preview instruction according to the first preview instruction, and performing rotation processing and scaling processing on the first marking graph to generate a transfer graph;
in this embodiment, the marked graph is processed first, for example, an instruction of rotating 50 degrees is received, and an instruction of amplifying 1.2 times is received, that is, the standard first marked graph is rotated and amplified to complete the transfer graph.
205. Moving the center coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image to generate a first preview image;
in this embodiment, if the coordinates are set to be (1254, 562) in the first image, the center coordinates of the relay graphic are set to be (1254, 562) and placed in the first image, thereby generating a first preview image.
206. Receiving a first marking instruction, and printing a first marking pattern on a first rectangular marking object;
207. receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on a first positioning device and a second positioning device to obtain a second abscissa and a second ordinate;
208. calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate;
the embodiments 206-208 are similar to the first embodiment and will not be described herein.
209. Subtracting the abscissa of the first central coordinate from the abscissa of the second central coordinate to obtain an abscissa difference value, and subtracting the ordinate of the first central coordinate from the ordinate of the second central coordinate to obtain an ordinate difference value;
in this embodiment, the second abscissa is calculated to be 30 and the second ordinate is calculated to be 40, then the second central coordinate (15, 20) can be known, the difference between the abscissas is calculated to be-7.5, and the difference between the ordinates is calculated to be-20.
210. Determining the horizontal coordinate difference value as a first element, determining the vertical coordinate difference value as a second element, and establishing a horizontal and vertical difference value vector which is formed by the first element and the second element;
in this embodiment, a difference of-7.5 in the abscissa is determined as the first element, and a difference of-20 in the ordinate is determined as the second element, to generate a vector of-7.5, -20 in the horizontal and vertical difference values.
211. Moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and capturing the whole image of the second rectangular marking object to obtain a second image;
212. and receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on a second image to generate a second preview image, receiving the second marking instruction, and printing the second marking graph on a second rectangular marking object.
The 211-212 embodiments are similar to the first embodiment and will not be described herein.
In the embodiment of the invention, the rectangular marking object is fixed and locked by using the marking device, the size of the rectangular marking object is determined according to the position of the rectangular marking object in the positioning device, the image of the rectangular marking object is captured, the virtual laser marking is realized, and the efficiency of positioning and calibrating the center of the rectangular marking object is improved.
In the above description of the virtual reality laser marking method in the embodiment of the present invention, referring to fig. 3, in the following description of the virtual reality laser marking device in the embodiment of the present invention, in an embodiment of the virtual reality laser marking device in the embodiment of the present invention, the virtual reality laser marking device includes a first positioning device 308, a second positioning device 309, and a laser gun 310, and the virtual reality laser marking device further includes:
the first receiving module 301 is configured to receive a preset preparation instruction, and perform positioning processing on a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
the first moving module 302 is configured to calculate a first center coordinate corresponding to the first rectangular marking object according to the first abscissa and the first ordinate, move the laser gun to the first center coordinate, and capture an overall image of the first rectangular marking object to obtain a first image;
the first marking module 303 is configured to receive a first preview instruction, display a first marking pattern corresponding to the first preview instruction on a first image, generate a first preview image, receive the first marking instruction, and print the first marking pattern on a first rectangular marking object;
the second positioning module 304 is configured to receive a preset preparation instruction, and perform positioning processing on a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
the calculating module 305 is configured to calculate a second central coordinate corresponding to the second rectangular marking object according to the second abscissa and the second ordinate, and calculate a difference between the first central coordinate and the second central coordinate to obtain a horizontal-longitudinal difference vector;
the second moving module 306 is configured to move the laser shooting gun to a symmetric center of the second rectangular marking object based on the transverse-longitudinal difference value vector, and capture an overall image of the second rectangular marking object to obtain a second image;
and a second marking module 307, configured to receive a second preview instruction, display a second marking graph corresponding to the second preview instruction on the second image, generate a second preview image, receive the second marking instruction, and print the second marking graph on the second rectangular marking object.
In the embodiment of the invention, the rectangular marking object is fixed and locked by using the marking device, the size of the rectangular marking object is determined according to the position of the rectangular marking object in the positioning device, the image of the rectangular marking object is captured, the virtual laser marking is realized, and the efficiency of positioning and calibrating the center of the rectangular marking object is improved.
Referring to fig. 4, in another embodiment of the virtual reality laser marking apparatus according to the embodiment of the present invention, the virtual reality laser marking apparatus includes a first positioning device 308, a second positioning device 309, and a laser gun 310, and the virtual reality laser marking apparatus further includes:
the first receiving module 301 is configured to receive a preset preparation instruction, and perform positioning processing on a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
the first moving module 302 is configured to calculate a first center coordinate corresponding to the first rectangular marking object according to the first abscissa and the first ordinate, move the laser gun to the first center coordinate, and capture an overall image of the first rectangular marking object to obtain a first image;
the first marking module 303 is configured to receive a first preview instruction, display a first marking pattern corresponding to the first preview instruction on a first image, generate a first preview image, receive the first marking instruction, and print the first marking pattern on a first rectangular marking object;
the second positioning module 304 is configured to receive a preset preparation instruction, and perform positioning processing on a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
the calculating module 305 is configured to calculate a second central coordinate corresponding to the second rectangular marking object according to the second abscissa and the second ordinate, and calculate a difference between the first central coordinate and the second central coordinate to obtain a horizontal-longitudinal difference vector;
the second moving module 306 is configured to move the laser shooting gun to a symmetric center of the second rectangular marking object based on the transverse-longitudinal difference value vector, and capture an overall image of the second rectangular marking object to obtain a second image;
and a second marking module 307, configured to receive a second preview instruction, display a second marking graph corresponding to the second preview instruction on the second image, generate a second preview image, receive the second marking instruction, and print the second marking graph on the second rectangular marking object.
Wherein, the end point of the first positioning device 308 and the end point of the second positioning device 309 intersect at a positioning intersection point, the straight line where the first positioning device 308 is located is perpendicular to the straight line where the second positioning device 309 is located, the first positioning device 308 includes a first moving slider, the second positioning device 309 includes a second moving slider, and the first receiving module 301 includes:
a moving unit 3011, configured to control the first moving slider and the second moving slider to move to the positioning intersection, receive a first resistance value received by the first moving slider, and receive a second resistance value received by the second moving slider;
the calibration unit 3012 is configured to determine, when the first resistance value is greater than a preset stop threshold and the second resistance value is greater than the stop threshold, a position of the first moving slider as a first abscissa corresponding to the first rectangular marking object, and a position of the second moving slider as a first ordinate corresponding to the first rectangular marking object.
Wherein the calculation module 305 comprises:
a subtraction processing unit 3051, configured to perform subtraction processing on the abscissa of the first central coordinate and the abscissa of the second central coordinate to obtain an abscissa difference value, and perform subtraction processing on the ordinate of the first central coordinate and the ordinate of the second central coordinate to obtain an ordinate difference value;
the vector generation unit 3052 is configured to determine the abscissa difference as a first element, determine the ordinate difference as a second element, and establish an abscissa and ordinate difference vector using the first element and the second element as components.
Wherein the first marking module 303 includes:
a rotation scaling unit 3031, configured to receive a first preview instruction, capture a first marking graph corresponding to the first preview instruction according to the first preview instruction, and perform rotation processing and scaling processing on the first marking graph to generate a transfer graph;
a translating unit 3032, configured to move the center coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image, so as to generate a first preview image.
In the embodiment of the invention, the rectangular marking object is fixed and locked by using the marking device, the size of the rectangular marking object is determined according to the position of the rectangular marking object in the positioning device, the image of the rectangular marking object is captured, the virtual laser marking is realized, and the efficiency of positioning and calibrating the center of the rectangular marking object is improved.
Fig. 3 and 4 describe the virtual reality laser marking device in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the virtual reality laser marking device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 6 is a schematic structural diagram of a virtual reality laser marking device according to an embodiment of the present invention, where the virtual reality laser marking device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the virtual reality laser marking device 500. Still further, processor 510 may be configured to communicate with storage medium 530 to execute a series of instruction operations in storage medium 530 on virtual reality laser marking device 500.
Virtual reality-based laser marking device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and so forth. Those skilled in the art will appreciate that the virtual reality laser marking device configuration shown in FIG. 6 does not constitute a limitation of a virtual reality laser marking device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the virtual reality laser marking method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. The virtual reality laser marking method is applied to a virtual reality laser marking device, the virtual reality laser marking device comprises a first positioning device, a second positioning device and a laser shooting gun, and the virtual reality laser marking method comprises the following steps:
receiving a preset preparation instruction, and positioning a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and grabbing an overall image of the first rectangular marking object to obtain a first image;
receiving a first preview instruction, displaying a first marking graph corresponding to the first preview instruction on a first image to generate a first preview image, receiving a first marking instruction, and printing the first marking graph on a first rectangular marking object;
receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal and vertical difference value vector;
moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and capturing the whole image of the second rectangular marking object to obtain a second image;
receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on the second image to generate a second preview image, receiving the second marking instruction, and printing the second marking graph on the second rectangular marking object.
2. The virtual reality laser marking method according to claim 1, wherein an end point of the first positioning device and an end point of the second positioning device intersect at a positioning intersection point, a straight line where the first positioning device is located is perpendicular to a straight line where the second positioning device is located, the first positioning device includes a first moving slider, the second positioning device includes a second moving slider, and positioning the first rectangular marking object to be marked to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object includes:
controlling the first movable slide block and the second movable slide block to move towards the positioning intersection point, receiving a first resistance value received by the first movable slide block, and receiving a second resistance value received by the second movable slide block;
and when the first resistance value is larger than a preset stop threshold value and the second resistance value is larger than the stop threshold value, determining the position of the first movable slide block as a first abscissa corresponding to the first rectangular marking object, and determining the position of the second movable slide block as a first ordinate corresponding to the first rectangular marking object.
3. The virtual reality laser marking method according to claim 1, wherein the calculating a difference between the first center coordinate and the second center coordinate to obtain a horizontal-vertical difference vector comprises:
subtracting the abscissa of the first central coordinate from the abscissa of the second central coordinate to obtain an abscissa difference value, and subtracting the ordinate of the first central coordinate from the ordinate of the second central coordinate to obtain an ordinate difference value;
and determining the horizontal coordinate difference value as a first element, determining the vertical coordinate difference value as a second element, and establishing a horizontal and vertical difference value vector which is formed by the first element and the second element.
4. The virtual reality laser marking method according to claim 1, wherein the receiving a first preview command, displaying a first marking graphic corresponding to the first preview command on a first image, and generating the first preview image comprises:
receiving a first preview instruction, capturing a first marking graph corresponding to the first preview instruction according to the first preview instruction, and performing rotation processing and scaling processing on the first marking graph to generate a transfer graph;
and moving the center coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image to generate a first preview image.
5. The utility model provides a virtual reality laser marking device, its characterized in that, virtual reality laser marking device includes that first positioner, second positioner, laser shoot the rifle, virtual reality laser marking device still includes:
the first receiving module is used for receiving a preset preparation instruction, and positioning a first rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a first abscissa and a first ordinate corresponding to the first rectangular marking object;
the first moving module is used for calculating a first central coordinate corresponding to the first rectangular marking object according to the first horizontal coordinate and the first vertical coordinate, moving the laser shooting gun to the first central coordinate, and grabbing an overall image of the first rectangular marking object to obtain a first image;
the first marking module is used for receiving a first preview instruction, displaying a first marking graph corresponding to the first preview instruction on a first image to generate a first preview image, receiving the first marking instruction and printing the first marking graph on a first rectangular marking object;
the second positioning module is used for receiving a preset preparation instruction, and positioning a second rectangular marking object to be marked based on the first positioning device and the second positioning device to obtain a second abscissa and a second ordinate;
the calculation module is used for calculating a second central coordinate corresponding to the second rectangular marking object according to the second horizontal coordinate and the second vertical coordinate, and calculating a difference value between the first central coordinate and the second central coordinate to obtain a horizontal and vertical difference value vector;
the second moving module is used for moving the laser shooting gun to the symmetrical center of the second rectangular marking object based on the transverse and longitudinal difference value vector, and grabbing the whole image of the second rectangular marking object to obtain a second image;
and the second marking module is used for receiving a second preview instruction, displaying a second marking graph corresponding to the second preview instruction on the second image to generate a second preview image, receiving the second marking instruction and printing the second marking graph on the second rectangular marking object.
6. The virtual reality laser marking device according to claim 5, wherein an end point of the first positioning device and an end point of the second positioning device intersect at a positioning intersection point, a straight line where the first positioning device is located is perpendicular to a straight line where the second positioning device is located, the first positioning device includes a first movable slider, the second positioning device includes a second movable slider, and the first receiving module includes:
the moving unit is used for controlling the first moving slide block and the second moving slide block to move towards the positioning intersection point, receiving a first resistance value received by the first moving slide block and receiving a second resistance value received by the second moving slide block;
and the calibration unit is used for determining the position of the first movable slide block as a first abscissa corresponding to the first rectangular marking object and determining the position of the second movable slide block as a first ordinate corresponding to the first rectangular marking object when the first resistance value is larger than a preset stop threshold value and the second resistance value is larger than the stop threshold value.
7. The virtual reality laser marking device of claim 5, wherein the calculation module comprises:
a subtraction processing unit, configured to perform subtraction processing on the abscissa of the first central coordinate and the abscissa of the second central coordinate to obtain an abscissa difference value, and perform subtraction processing on the ordinate of the first central coordinate and the ordinate of the second central coordinate to obtain an ordinate difference value;
and the vector generation unit is used for determining the horizontal coordinate difference value as a first element, determining the vertical coordinate difference value as a second element and establishing a horizontal and vertical difference value vector which is formed by the first element and the second element.
8. The virtual reality laser marking device of claim 5, wherein the first marking module comprises:
the rotary scaling unit is used for receiving a first preview instruction, grabbing a first marking graph corresponding to the first preview instruction according to the first preview instruction, and performing rotary processing and scaling processing on the first marking graph to generate a transfer graph;
and the translation unit is used for moving the central coordinate of the transfer graph to the calibration coordinate of the first preview instruction in the first image to generate a first preview image.
9. A virtual reality laser marking device, characterized in that virtual reality laser marking device includes: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the virtual reality laser marking device to perform the virtual reality laser marking method of any one of claims 1-4.
10. A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, implements the virtual reality laser marking method as claimed in any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450348.0A CN113199152B (en) | 2021-04-25 | 2021-04-25 | Virtual reality laser marking method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110450348.0A CN113199152B (en) | 2021-04-25 | 2021-04-25 | Virtual reality laser marking method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113199152A true CN113199152A (en) | 2021-08-03 |
CN113199152B CN113199152B (en) | 2022-05-27 |
Family
ID=77028702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110450348.0A Active CN113199152B (en) | 2021-04-25 | 2021-04-25 | Virtual reality laser marking method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113199152B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102848082A (en) * | 2012-08-31 | 2013-01-02 | 赵本和 | Laser marking machine |
CN104742532A (en) * | 2015-03-17 | 2015-07-01 | 深圳市创鑫激光股份有限公司 | Automatic focusing method of marking machine, and marketing machine |
KR20170046973A (en) * | 2015-10-22 | 2017-05-04 | 김경호 | Laser marking Apparatus with transparent display |
CN107030687A (en) * | 2016-02-04 | 2017-08-11 | 上海晨兴希姆通电子科技有限公司 | Position bias detecting method and module, crawl position calibration method, grasping system |
CN107824978A (en) * | 2017-11-16 | 2018-03-23 | 惠州市契贝科技有限公司 | Annular marking method and annular marking system |
CN207249695U (en) * | 2017-09-30 | 2018-04-17 | 河南省水产科学研究院 | A kind of fish character measuring device |
CN109648554A (en) * | 2018-12-14 | 2019-04-19 | 佛山市奇创智能科技有限公司 | Robot calibration method, device and system |
CN109702351A (en) * | 2019-01-16 | 2019-05-03 | 苏州海力士光电科技有限公司 | Fast laser positioning and marking method and its tagging system |
CN109872344A (en) * | 2019-02-25 | 2019-06-11 | 广州视源电子科技股份有限公司 | Tracking method and matching method of image feature points, and coordinate obtaining method and device |
CN110561435A (en) * | 2019-09-17 | 2019-12-13 | 北京康视杰视觉技术有限公司 | Method, device and system for guiding manipulator and upper computer |
CN210967494U (en) * | 2019-11-18 | 2020-07-10 | 广州市通谊标识技术有限公司 | Laser marking machine convenient to operation |
CN111843220A (en) * | 2019-04-19 | 2020-10-30 | 大族激光科技产业集团股份有限公司 | Laser marking device and control method thereof |
CN112404740A (en) * | 2020-11-17 | 2021-02-26 | 深圳晶森激光科技股份有限公司 | Virtual reality laser marking method, device, equipment and storage medium |
-
2021
- 2021-04-25 CN CN202110450348.0A patent/CN113199152B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102848082A (en) * | 2012-08-31 | 2013-01-02 | 赵本和 | Laser marking machine |
CN104742532A (en) * | 2015-03-17 | 2015-07-01 | 深圳市创鑫激光股份有限公司 | Automatic focusing method of marking machine, and marketing machine |
KR20170046973A (en) * | 2015-10-22 | 2017-05-04 | 김경호 | Laser marking Apparatus with transparent display |
CN107030687A (en) * | 2016-02-04 | 2017-08-11 | 上海晨兴希姆通电子科技有限公司 | Position bias detecting method and module, crawl position calibration method, grasping system |
CN207249695U (en) * | 2017-09-30 | 2018-04-17 | 河南省水产科学研究院 | A kind of fish character measuring device |
CN107824978A (en) * | 2017-11-16 | 2018-03-23 | 惠州市契贝科技有限公司 | Annular marking method and annular marking system |
CN109648554A (en) * | 2018-12-14 | 2019-04-19 | 佛山市奇创智能科技有限公司 | Robot calibration method, device and system |
CN109702351A (en) * | 2019-01-16 | 2019-05-03 | 苏州海力士光电科技有限公司 | Fast laser positioning and marking method and its tagging system |
CN109872344A (en) * | 2019-02-25 | 2019-06-11 | 广州视源电子科技股份有限公司 | Tracking method and matching method of image feature points, and coordinate obtaining method and device |
CN111843220A (en) * | 2019-04-19 | 2020-10-30 | 大族激光科技产业集团股份有限公司 | Laser marking device and control method thereof |
CN110561435A (en) * | 2019-09-17 | 2019-12-13 | 北京康视杰视觉技术有限公司 | Method, device and system for guiding manipulator and upper computer |
CN210967494U (en) * | 2019-11-18 | 2020-07-10 | 广州市通谊标识技术有限公司 | Laser marking machine convenient to operation |
CN112404740A (en) * | 2020-11-17 | 2021-02-26 | 深圳晶森激光科技股份有限公司 | Virtual reality laser marking method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113199152B (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103617615B (en) | Radial distortion parameter acquisition methods and acquisition device | |
JP6703812B2 (en) | 3D object inspection device | |
CN104766309A (en) | Plane feature point navigation and positioning method and device | |
CN103632364A (en) | Camera spatial position relation calibration device in multi-camera photographing measurement system | |
Zhou et al. | Fast star centroid extraction algorithm with sub-pixel accuracy based on FPGA | |
Ila et al. | Fast incremental bundle adjustment with covariance recovery | |
CN114310901B (en) | Coordinate system calibration method, device, system and medium for robot | |
CN107300382A (en) | A kind of monocular visual positioning method for underwater robot | |
Ma et al. | Towards scale balanced 6-dof grasp detection in cluttered scenes | |
CN103646377B (en) | Coordinate conversion method and device | |
CN109543534A (en) | Target loses the method and device examined again in a kind of target following | |
CN104713478B (en) | A kind of linear motor rotor location measurement method | |
Gao et al. | An improved augmented reality registration method based on visual slam | |
CN106482648B (en) | The absolute monitoring device of thin tail sheep and method in long-distance plane based on fixed point | |
CN103644894B (en) | A kind of method that complex-curved target identification and three-dimensional pose are measured | |
CN113199152B (en) | Virtual reality laser marking method, device, equipment and storage medium | |
CN104819690A (en) | Double-camera machine vision positioning method of surface mounted component | |
CN102759788A (en) | Surface multi-point focusing system and surface multi-point focusing method | |
KR100792172B1 (en) | Apparatus and method for estimating fundamental matrix using robust correspondence point | |
CN109754408A (en) | Trace tracking method and device | |
Yang et al. | A method for attitude measurement of a test vehicle based on the tracking of vectors | |
CN107297741A (en) | Motion trail planning method and device based on machine vision | |
Hui et al. | Visual SLAM based on EKF filtering algorithm from omnidirectional camera | |
CN105809697B (en) | It is a kind of that only there are two the one-dimensional camera calibration device for mark and its calibrating method of index point | |
Tanaka et al. | Further stabilization of a microlens-array-based fiducial marker |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |