Marking control method and device, nonvolatile storage medium and processor

文档序号:449827 发布日期:2021-12-28 浏览:4次 中文

阅读说明:本技术 打标控制方法、装置、非易失性存储介质及处理器 (Marking control method and device, nonvolatile storage medium and processor ) 是由 时会萍 程文晶 周冠鸿 刘世基 孟萌 宋佳庆 于 2021-09-02 设计创作,主要内容包括:本发明公开了一种打标控制方法、装置、非易失性存储介质及处理器,打标控制方法包括:接收目标对象标识信息;根据目标对象标识信息,获取目标对象内容信息,目标对象内容信息为打标文档中与目标对象标识信息对应的信息;控制显示设备显示与目标对象内容信息对应的图像。本发明的打标控制方法解决了现有技术中在进行打标作业时操作人员无法直观地了解打标内容的问题。(The invention discloses a marking control method, a marking control device, a nonvolatile storage medium and a processor, wherein the marking control method comprises the following steps: receiving target object identification information; acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document; and controlling the display device to display an image corresponding to the target object content information. The marking control method solves the problem that in the prior art, an operator cannot intuitively know marking contents during marking operation.)

1. A marking control method, comprising:

receiving target object identification information;

acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document;

and controlling a display device to display an image corresponding to the target object content information.

2. The marking control method according to claim 1, wherein the target object content information is a preview image pointer corresponding to the target object.

3. Marking control method according to claim 1 or 2, wherein obtaining target object content information based on the target object identification information comprises:

determining whether the target object content information corresponding to the target object identification information is included in the marked document;

under the condition that the marking document comprises the target object content information, acquiring the target object content information;

and controlling to end the marking operation under the condition that the marking document does not include the target object content information.

4. The marking control method of claim 1, wherein controlling a display device to display an image corresponding to the target object content information comprises:

and according to the target object content information, drawing operation is carried out so as to display an image corresponding to the target object content information on the display equipment.

5. The marking control method according to claim 1, wherein before acquiring target object content information based on the target object identification information, the marking control method further comprises:

and loading a marking file, wherein the marking file is obtained based on the marking file.

6. The marking control method as claimed in claim 5, wherein after loading the marking file, before acquiring target object content information from the target object identification information, the marking control method further comprises:

determining whether the marked document is obtained or not;

and under the condition that the marking document is not acquired, controlling to end the marking operation.

7. A marking control device, comprising:

a receiving unit configured to receive target object identification information;

the acquisition unit is used for acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document;

and the first control unit is used for controlling the display equipment to display the image corresponding to the target object content information.

8. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls a device on which the non-volatile storage medium is located to perform the marking control method according to any one of claims 1 to 6.

9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the marking control method according to any one of claims 1 to 6 when running.

10. Marking control device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the marking control method according to any one of claims 1 to 6 when executing the computer program.

Technical Field

The invention relates to the field of marking control, in particular to a marking control method, a marking control device, a nonvolatile storage medium and a processor.

Background

Laser marking technology is widely used in various industrial fields, for example, marking operations in stations are required in many non-standard automatic line bodies and small-sized projects. In the actual marking process, there can be various marking contents in the marking document, and in the actual operation process, operating personnel can not clearly know the current marking contents, so that the management confusion of the marking process is caused, and the problems of marking errors and the like easily occur.

In view of the above problems, no effective solution has been proposed.

The above information disclosed in the background section is only for enhancement of understanding of the background of the technology described herein. The background art may therefore contain certain information that does not form the known prior art to those skilled in the art.

Disclosure of Invention

The embodiment of the invention provides a marking control method, a marking control device, a nonvolatile storage medium and a processor, which are used for at least solving the problem that in the prior art, an operator cannot intuitively know marking contents during marking operation.

In order to achieve the above object, according to a first aspect of embodiments of the present invention, there is provided a marking control method including: receiving target object identification information; acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document; and controlling the display device to display an image corresponding to the target object content information.

Further, the content information of the target object is a preview image pointer corresponding to the target object.

Further, acquiring the content information of the target object according to the identification information of the target object includes: determining whether the target object content information corresponding to the target object identification information is included in the marked document; under the condition that the marking document comprises the target object content information, acquiring the target object content information; and controlling to end the marking operation when the target object content information is not included in the marking document.

Further, controlling the display device to display the image corresponding to the target object content information includes: and according to the target object content information, drawing operation is carried out to display an image corresponding to the target object content information on the display device.

Further, before acquiring the content information of the target object according to the identification information of the target object, the marking control method further includes: and loading the marking file, and acquiring the marking file based on the marking file.

Further, after loading the marking file, before acquiring the content information of the target object according to the identification information of the target object, the marking control method further includes: determining whether a marking document is obtained; and under the condition that the marking document is not acquired, controlling to end the marking operation.

According to a second aspect of the embodiments of the present invention, there is provided a marking control apparatus including: a receiving unit configured to receive target object identification information; the acquiring unit is used for acquiring the content information of the target object according to the identification information of the target object, wherein the content information of the target object is information corresponding to the identification information of the target object in the marking document; and a first control unit for controlling the display device to display an image corresponding to the target object content information.

According to a third aspect of the embodiments of the present invention, there is provided a nonvolatile storage medium including a stored program, wherein a device in which the nonvolatile storage medium is controlled to execute the marking control method described above when the program is executed.

According to a fourth aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes the marking control method.

According to a fifth aspect of the embodiments of the present invention, there is provided a marking control device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements the marking control method when executing the computer program.

The marking control method applying the technical scheme of the invention comprises the following steps: receiving target object identification information; acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document; and controlling the display device to display an image corresponding to the target object content information. Therefore, in the marking process, the content information of the target object corresponding to the marking document can be acquired according to the received target object identification information, and the west device is controlled to display the image corresponding to the content information of the target object, so that the target object can be previewed, an operator can know the content of each object to be marked more intuitively, the management and the control are convenient, and the problem that the operator cannot know the marking content intuitively in the marking process in the prior art is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

FIG. 1 is a schematic flow diagram of an alternative embodiment of a marking control method in accordance with the present invention;

FIG. 2 is a schematic view of an alternative embodiment of a marking control device according to the present invention.

Detailed Description

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, 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.

It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.

Fig. 1 is a marking control method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:

step S102, receiving target object identification information;

step S104, acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document;

and step S106, controlling the display device to display the image corresponding to the target object content information.

The marking control method adopting the scheme comprises the following steps: receiving target object identification information; acquiring target object content information according to the target object identification information, wherein the target object content information is information corresponding to the target object identification information in the marking document; and controlling the display device to display an image corresponding to the target object content information. Therefore, in the marking process, the content information of the target object corresponding to the marking document can be acquired according to the received target object identification information, and the west device is controlled to display the image corresponding to the content information of the target object, so that the target object can be previewed, an operator can know the content of each object to be marked more intuitively, the management and the control are convenient, and the problem that the operator cannot know the marking content intuitively in the marking process in the prior art is solved.

It is understood that the target object identification information is information identifying the identity of the target object, such as a serial number, a name, etc. The content information of the target object represents the content of the target object, such as a preview image corresponding to the target object, text content corresponding to the target object, and the like.

Specifically, the target object content information is a preview image pointer corresponding to the target object. Therefore, the preview image pointer corresponding to the target object is directly acquired, and the display of the display equipment is controlled according to the acquired preview image pointer, so that the preview image of the target object can be controlled and displayed more flexibly and simply. In another embodiment, the target object content information is a preview image corresponding to the target object. The preview of the target object can also be realized by directly acquiring the preview image and controlling the display of the preview image.

Specifically, according to the target object identification information, acquiring the target object content information includes: determining whether the target object content information corresponding to the target object identification information is included in the marked document; under the condition that the marking document comprises the target object content information, acquiring the target object content information; and controlling to end the marking operation when the target object content information is not included in the marking document.

That is to say, in the process of acquiring the content information of the target object according to the identification information of the target object, if the marking document does not include the content information of the target object, the marking operation is actively controlled to be ended, so that the problem of marking errors caused by the fact that an operator cannot observe the marking content in real time is avoided.

Specifically, controlling the display device to display an image corresponding to the target object content information includes: and according to the target object content information, drawing operation is carried out to display an image corresponding to the target object content information on the display device.

Before acquiring the content information of the target object according to the identification information of the target object, the marking control method further includes: and loading the marking file, and acquiring the marking file based on the marking file.

In this embodiment, after loading the marking file, before acquiring the content information of the target object according to the identification information of the target object, the marking control method further includes: determining whether a marking document is obtained; and under the condition that the marking document is not acquired, controlling to finish marking operation, thereby avoiding executing subsequent useless operation under the condition that the marking document is not acquired.

Next, as shown in fig. 2, an embodiment of the present invention further provides a marking control apparatus, which includes: a receiving unit configured to receive target object identification information; the acquiring unit is used for acquiring the content information of the target object according to the identification information of the target object, wherein the content information of the target object is information corresponding to the identification information of the target object in the marking document; and a first control unit for controlling the display device to display an image corresponding to the target object content information.

Specifically, the target object content information is a preview image pointer corresponding to the target object.

Specifically, the acquisition unit comprises a determination module, an acquisition module and a control module: the determining module is used for determining whether the target object content information corresponding to the target object identification information is included in the marked document; the acquisition module is used for acquiring the content information of the target object under the condition that the marking document comprises the content information of the target object; the control module is used for controlling the marking operation to be finished under the condition that the marking document does not include the content information of the target object.

Specifically, the first control unit is configured to: and according to the target object content information, drawing operation is carried out to display an image corresponding to the target object content information on the display device.

Specifically, the marking control device further comprises a loading unit, wherein the loading unit is used for loading the marking file before acquiring the content information of the target object according to the identification information of the target object, and the marking file is acquired based on the marking file.

Specifically, the marking control device further comprises a determining unit and a second control unit: the determining unit is used for determining whether the marking document is acquired or not after the marking document is loaded and before the target object content information is acquired according to the target object identification information; the second control unit is used for controlling the marking operation to be finished under the condition that the marking document is not obtained.

In addition, the embodiment of the invention also provides a nonvolatile storage medium, the nonvolatile storage medium comprises a stored program, and when the program runs, the device where the nonvolatile storage medium is located is controlled to execute the marking control method.

The embodiment of the invention further provides a processor, which is used for running the program, wherein the marking control method is executed when the program runs.

Finally, the embodiment of the invention also provides a marking control device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the marking control method is realized when the processor executes the computer program.

The marking control method of the invention is further described by taking a program written by C + + based on language as an example:

firstly, connecting a marking control card: and calling a function library of the laser, and putting Markezd.dll under a DeBug path generated by system software. Performing a statement definition of # include "markezddll. h" in a header file of a main program, calling a secondary development library function of a gold orange branding card, and loading a function library m _ hEzdDLL ═ LoadLibrary (_ T ("markezd. dll")) in an initialization function; if (m _ hezdll ═ NULL) { AfxMessageBox (_ T ("Can not find markezd. dll")); and finishing the initial connection of the marking card. Then, the function such as preview of the document image can be operated.

Secondly, loading the marking file: the marking document is loaded into a database through loading of the marking file, the data of the marking document is stored in a C + + data structure mode, and specific implementation codes are as follows:

then, a marking preview image is obtained: after the loading of the marking file is completed, a preview image pointer of a specified object in the loaded document data is obtained by calling lmc1_ GetPrevBitmapByName function. Drawing operation of the interface client area is carried out, and the drawing operation is packaged into a function concrete implementation code of fnShowTextBmp1() as follows:

finally, displaying the preview image: after the data of the marking file is obtained, the marking file can be previewed, the marking file and the data are combined together to display a preview image in the current document, and specific implementation codes are as follows:

fnShowTextBmp1 (). Therefore, the preview operation of the specific marking content is realized, the operator can know the marking content more intuitively, and the marking error rate is reduced.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Moreover, the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions, and while a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.

In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

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: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于人工智能的简历自动编辑系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!