Control method, device, electronic device and storage medium of image measuring instrument

By judging the rotation command of the clamping device in the measurement program of the image measuring instrument, the image acquisition device is controlled to move to a safe height, which solves the problem of the detection piece colliding with the image acquisition device when rotating, and improves measurement safety and efficiency.

CN118274723BActive Publication Date: 2024-09-20GOOD VISION PRECISION INSTR CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410714542.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-20
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

The image measuring instrument may collide with the image acquisition device when the test piece is rotating, causing damage to the equipment. It is difficult to effectively avoid such collisions with existing technology.

Method used

By determining whether the clamping device rotation command is included when executing the measurement program, the safe height of the image acquisition device is obtained and controlled to move to the safe height to avoid collision with the detection piece, ensuring that the image acquisition device is always at the correct position when executing the clamping device command. Safe height.

Benefits of technology

It effectively prevents the collision between the detection part and the image acquisition device, improves the safety and efficiency of the measurement process, and reduces the collision avoidance issues that users need to consider when programming measurement programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118274723B
    Figure CN118274723B
Patent Text Reader

Abstract

The present application relates to the field of image detection technology, and provides a control method, device, electronic device and storage medium of an image measuring instrument, the method comprising: when executing a measurement program, determining whether the measurement program includes a rotation instruction for controlling the rotation of a clamping device; the instruction for the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction for the image acquisition device includes a movement instruction; if the measurement program includes a rotation instruction for controlling the rotation of the clamping device, then obtaining a safe height of the image acquisition device and after controlling the image acquisition device to move from the current height to the safe height, controlling the clamping device according to the instruction for the clamping device in the measurement program. In the present application, if the detection part needs to rotate during the execution of the measurement program, then when executing the instruction for the clamping device, the image acquisition device is always kept at a safe height to prevent the detection part and the image acquisition device from colliding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image detection, and in particular to a control method, device, electronic equipment and storage medium of an image measuring instrument. Background Art

[0002] The image measuring instrument can control the rotation of the inspection object during measurement to measure the planar dimensions of the front, back or side of the inspection object. However, the lens on the image acquisition device of the image measuring instrument has a certain depth of field, that is, the working distance of the lens during the measurement process, so the image acquisition device needs to be lowered to a certain distance from the inspection object to obtain the image of the inspection object.

[0003] However, when the inspection piece rotates, the inspection piece may collide with the image acquisition device, causing damage to the image measuring instrument. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present application provides a control method, device, electronic device and storage medium for an image measuring instrument, which are helpful in preventing collisions between an image acquisition device and a detection part.

[0005] To solve the above problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a control method for an image measuring instrument, wherein the image measuring instrument includes a clamping device for clamping a detection piece and an image acquisition device for photographing the detection piece, and the method includes:

[0007] When executing a measurement program, determining whether the measurement program includes a rotation instruction for controlling the rotation of the clamping device; wherein the measurement program includes at least one of an instruction for the clamping device and an instruction for the image acquisition device; the instruction for the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction for the image acquisition device includes a movement instruction;

[0008] If the measurement program includes a rotation instruction for controlling the rotation of the clamping device, obtaining a safe height of the image acquisition device and controlling the image acquisition device to move to the safe height;

[0009] After controlling the image acquisition device to move from the current height to the safety height, the clamping device is controlled according to the instruction of the clamping device in the measurement program.

[0010] In some embodiments, the method further comprises:

[0011] Determining whether the measurement program includes a movement instruction of the image acquisition device;

[0012] If the measurement program includes movement instructions for the image acquisition device, then after the step of controlling the clamping device according to the instructions for the clamping device in the measurement program, the method further includes:

[0013] According to the movement instruction of the image acquisition device, the image acquisition device is controlled to move from the safe height to a target height corresponding to the movement instruction.

[0014] In some embodiments, the method further comprises:

[0015] If the measurement program does not include a rotation instruction for controlling the rotation of the clamping device, the clamping device and the image acquisition device are controlled according to the measurement program.

[0016] In some embodiments, the method further comprises:

[0017] When receiving a control instruction, determining whether the control instruction is a movement instruction of the image acquisition device;

[0018] If the control instruction is not a movement instruction of the image acquisition device, controlling the image acquisition device to move from the current height to the safe height;

[0019] After the image acquisition device moves to the safe height, the control instruction is executed.

[0020] In some embodiments, the method further comprises:

[0021] If the control instruction is a movement instruction of the image acquisition device, the image acquisition device is controlled to move according to the control instruction.

[0022] In some embodiments, the clamping device includes a direct drive motor and a clamping member, and the direct drive motor can drive the clamping member to rotate 360° to drive the detection member to rotate 360°.

[0023] In some embodiments, the image acquisition device acquires an image along a direction perpendicular to the detection plane, the clamping device is disposed on the detection plane, and the clamping device can move on the detection plane;

[0024] The safety height is greater than the maximum height that the detection member can reach within the rotatable angle range.

[0025] In a second aspect, an embodiment of the present application provides a control device for an image measuring instrument, the device comprising:

[0026] A judging unit, used for judging whether the measuring program includes a rotation instruction for controlling the rotation of the clamping device when executing the measuring program; wherein the measuring program includes at least one of an instruction of the clamping device and an instruction of the image acquisition device; the instruction of the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction of the image acquisition device includes a movement instruction;

[0027] an acquisition unit, configured to acquire a safe height of the image acquisition device and control the image acquisition device to move to the safe height if the measurement program includes a rotation instruction for controlling the rotation of the clamping device;

[0028] A control unit is used to control the clamping device according to an instruction of the clamping device in the measurement program after controlling the image acquisition device to move from the current height to the safety height.

[0029] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0030] at least one processor; and,

[0031] a memory communicatively connected to at least one processor; wherein,

[0032] The memory stores instructions that can be executed by at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the control method of the image measuring instrument according to the first aspect.

[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the control method of the image measuring instrument as in the first aspect.

[0034] The present application provides a control method, device, electronic device and storage medium for an image measuring instrument, the method comprising: when executing a measurement program, determining whether the measurement program includes a rotation instruction for controlling the rotation of a clamping device; wherein the measurement program includes at least one of an instruction for the clamping device and an instruction for the image acquisition device; the instruction for the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction for the image acquisition device includes a movement instruction; if the measurement program includes a rotation instruction for controlling the rotation of the clamping device, then obtaining a safe height of the image acquisition device and after controlling the image acquisition device to move from the current height to the safe height, controlling the clamping device according to the instruction for the clamping device in the measurement program. In the present application, if the detection part needs to rotate during the execution of the measurement program, then when executing the instruction for the clamping device, the image acquisition device is always kept at a safe height to prevent the detection part and the image acquisition device from colliding. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the application scenario provided by this application.

[0036] Figure 2 It is a flowchart of a control method of an image measuring instrument provided in an embodiment of the present application.

[0037] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0038] Figure 4 It is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0041] Image measuring instruments generally include a two-dimensional detection plane and a liftable image acquisition device. A clamping device for clamping the detection piece is provided in the two-dimensional detection plane. The clamping device can move along the X-axis and Y-axis of the two-dimensional detection plane. The image acquisition device includes a charge coupled device (CCD) imager, a lens, a light source, etc., wherein the clamping device includes a direct drive (DD) motor for driving the clamping piece on the clamping device to rotate.

[0042] Since the lens on the image acquisition device has a certain depth of field, that is, the working distance of the lens during the measurement process, the image acquisition device needs to be raised and lowered along the Z axis to a position at a certain height from the surface of the sample to be measured for measurement. In this process, in order to avoid collision between the image acquisition device and the detection part, the operator needs to always consider whether the rotation of the DD motor or the movement of the platform will collide with the image acquisition device during manual operation. When the operator compiles the automatic measurement program, it is necessary to add additional "pass-through points" to avoid collision.

[0043] See also Figure 1 , Figure 1 This is a schematic diagram of the application scenario provided by this application. Figure 1 As shown, the application scenario includes an image measuring instrument 1 , which includes: a measuring plane 10 , an image acquisition device 20 , a clamping device 30 and a detection component 40 .

[0044] In some embodiments, for ease of explanation, Figure 1 The mechanical coordinate system is defined in FIG. 1 , and the X-axis, Y-axis and Z-axis are illustrated. The clamping device can move along the X-axis and Y-axis in the measurement plane, and the image acquisition device can move along the Z-axis.

[0045] But it is understandable that Figure 1 The mechanical coordinate system illustrated in FIG. 1 is only used to explain the movable directions of the image acquisition device 20 and the clamping device 30 , and does not limit the movable ranges of the image acquisition device 20 and the clamping device 30 .

[0046] See also Figure 2 , Figure 2 Schematic diagram of a control method of an image measuring instrument provided in an embodiment of the present application. Figure 2 As shown, the image measuring instrument includes a clamping device for clamping the inspection piece and an image acquisition device for photographing the inspection piece. The control method 100 of the image measuring instrument includes: steps 110 to 130.

[0047] Step 110: When executing a measurement program, determine whether the measurement program includes a rotation instruction for controlling the rotation of the clamping device; wherein the measurement program includes at least one of an instruction for the clamping device and an instruction for the image acquisition device; the instruction for the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction for the image acquisition device includes a movement instruction.

[0048] In some embodiments, the measurement program is a program compiled by a user that can be automatically executed by the software, and the measurement program includes at least one of the instructions of the clamping device and the instructions of the image acquisition device, as well as the execution order of each instruction.

[0049] Step 120: If the measurement program includes a rotation instruction for controlling the rotation of the clamping device, a safe height of the image acquisition device is acquired and the image acquisition device is controlled to move to the safe height.

[0050] In some embodiments, the clamping device includes a direct drive motor and a clamping member, and the direct drive motor can drive the clamping member to rotate 360° to drive the detection member to rotate 360°.

[0051] In some embodiments, the image acquisition device acquires the image in a direction perpendicular to the detection plane, the clamping device is disposed on the detection plane, and the clamping device can move on the detection plane; the safety height is greater than the maximum height that the detection member can reach within the rotatable angle range.

[0052] Exemplarily, the rotatable angle range of the detection member is 0° to 360°, and at 90° and 270°, the height of the detection member from the detection plane is the largest, for example, 10 cm, and the safety height is greater than 10 cm.

[0053] It can be understood that when the detection member is tilted, the height of the top end of the detection member is taken as the height of the detection member.

[0054] Most of the time, the safety heights of the detection parts are similar, and a universal safety height that is slightly different from the maximum height that the detection part can reach can be preset. However, when measuring detection parts with special structures, such as the power detection module in a vehicle, which has bent pins, the universal safety height cannot guarantee that a device will occur. However, if the universal safety height is always set higher, the image acquisition device often requires a longer moving time during detection. Many times, users are unwilling to wait and feel that it is better to operate it themselves. Therefore, in some embodiments, before executing the measurement program, the method also includes: controlling the clamp to rotate to a preset angle, wherein the detection part is roughly parallel to the detection plane when the clamp is rotated to the preset angle; acquiring an image of the detection part through an image acquisition device; identifying the edge line of the detection part; determining whether the edge line is within a preset area containing the clamp; if there is a portion of the edge line that exceeds the preset area, calculating the maximum distance between the portion of the edge line that exceeds the preset area and the boundary of the preset area; and correcting the universal safety height according to the maximum distance.

[0055] Optionally, the detection member being substantially parallel to the detection plane means that the angle between the detection member body and the detection plane is smaller than a preset angle; illustratively, the preset angle may be selected as 0-20°, such as 0°, 10°, or 20°.

[0056] Optionally, the corrected universal safety height is equal to the correction factor multiplied by the maximum distance plus the universal safety height.

[0057] Optionally, the correction factor is determined by the foreground depth of the image acquisition device.

[0058] Step 130: After controlling the image acquisition device to move from the current height to the safety height, controlling the clamping device according to the instructions of the clamping device in the measurement program.

[0059] In some embodiments, if the measurement program includes movement instructions for the image acquisition device, the step of controlling the clamping device according to the instructions for the clamping device in the measurement program includes the following steps.

[0060] (1) Extracting movement instructions of the image acquisition device in the measurement program and re-determining the execution order of the instructions of the clamping device to control the clamping device.

[0061] Exemplarily, the measurement program includes the following instructions: 1. Control the image acquisition device to move to height A; 2. Control the clamping device to move to (B, C); 3. Control the clamping member to rotate 90°.

[0062] After extracting the moving instructions of the image acquisition device in the measurement program, the execution order of the instructions of the clamping device is re-determined as follows: 1. Control the clamping device to move to (B, C); 2. Control the clamping part to rotate 90°.

[0063] In some implementations, the control method 100 of the image measuring instrument provided in the embodiment of the present application further includes the following steps.

[0064] (1) determining whether the measurement program includes movement instructions for the image acquisition device;

[0065] At this time, after step 140, the following steps are also included.

[0066] (2) According to the movement instruction of the image acquisition device, the image acquisition device is controlled to move from the safe height to the target height corresponding to the movement instruction.

[0067] In some embodiments, if the image acquisition device further includes a shooting instruction, then after step (2) controls the image acquisition device to move from the safe height to the target height corresponding to the movement instruction according to the movement instruction of the image acquisition device, the method further includes the following steps.

[0068] (3) Controlling the image acquisition device to take pictures according to the shooting instructions.

[0069] In order to prevent the image acquisition device from colliding with the detection part in the related art, hereinafter referred to as a collision machine, the user needs to add additional movement instructions of the image acquisition device when compiling the measurement program so that the image acquisition device can go to the passing point. This not only takes time to think about the possibility of collision during the execution of each instruction, but also reduces the detection efficiency.

[0070] In the present application, when executing the measurement program, the movement instructions of the image acquisition device in the measurement program are extracted, and the image acquisition device is moved to a safe height before the clamping device is controlled. After the clamping device control is completed, the extracted movement instructions of the image acquisition device are executed. Therefore, when the user compiles the measurement program, there is no need to set a "pass-through point" to prevent collision, thereby ensuring the measurement safety of the image measuring instrument during the measurement process.

[0071] In some embodiments, the control method 100 of the image measuring instrument provided in the embodiment of the present application further includes: if the measurement program does not include a rotation instruction for controlling the rotation of the clamping device, controlling the clamping device and the image acquisition device according to the measurement program.

[0072] Specifically, if the clamping device does not rotate, the height of the detection piece does not change, so there is no need to extract the movement instruction of the image acquisition device, thus saving computing resources.

[0073] In some embodiments, if the measurement program includes movement instructions for multiple image acquisition devices, the instruction for the clamping device between the movement instructions of two adjacent image acquisition devices is determined to be the corresponding instruction for the movement instructions of the image acquisition device with an earlier execution order. At this time, the step is to control the clamping device according to the instruction for the clamping device in the measurement program after controlling the image acquisition device to move from the current height to the safe height, including the following steps.

[0074] (1) extracting movement instructions and shooting instructions of the image acquisition device in the measurement program, and re-determining the execution order of the instructions of the clamping device;

[0075] (2) controlling the image acquisition device to move from the current height to the safe height;

[0076] (3) after controlling the image acquisition device to move from the current height to the safe height, controlling the clamping device according to an instruction of the clamping device corresponding to the movement instruction of the Nth image acquisition device;

[0077] (4) controlling the image acquisition device to move according to the movement instruction of the Nth image acquisition device and controlling the image acquisition device to shoot according to the shooting instruction; wherein the instruction of the image acquisition device also includes a shooting instruction;

[0078] (5) Set N=N+1, and return to step (2) to control the image acquisition device to move from the current height to the safe height.

[0079] Specifically, if the program compiled by the user needs to control the detection part to move to multiple target positions, it must be photographed once each time it moves to a target position. Therefore, it is necessary to control the image acquisition device to move multiple times to ensure that the program achieves the shooting effect.

[0080] In some implementations, in addition to user-programmed measurement programs, the user can also manually control the image measuring instrument. When the user manually controls, generally only one instruction is input at a time. In this case, the control method 100 of the image measuring instrument provided in the embodiment of the present application also includes the following steps.

[0081] (1) When receiving a control instruction, determining whether the control instruction is a movement instruction of the image acquisition device.

[0082] (2) If the control instruction is not a movement instruction of the image acquisition device, control the image acquisition device to move from the current height to the safe height.

[0083] (3) After the image acquisition device moves to the safe height, executing the control instruction.

[0084] Specifically, when the user manually operates the image measuring instrument, if the user moves the clamping device instead of the image acquisition device, there is a risk of collision. The image acquisition device is first controlled to move from the current height to the safe height and then the control command is executed, thereby effectively ensuring measurement safety.

[0085] Specifically, when executing the programmed program, the detection part does not rotate and the safety height does not need to be reached, because this is a programmed action programmed by the operator, which is different from random operation during manual operation and has higher safety.

[0086] In some implementations, the control method 100 of the image measuring instrument provided in the embodiment of the present application further includes the following step: if the control instruction is a movement instruction of the image acquisition device, controlling the movement of the image acquisition device according to the control instruction.

[0087] Specifically, if the control instruction is used for the mobile image acquisition device, the user's control right cannot be snatched away, so the control instruction is directly executed.

[0088] The present application also provides a control device for an image measuring instrument, the device comprising:

[0089] A judging unit, used for judging whether the measuring program includes a rotation instruction for controlling the rotation of the clamping device when executing the measuring program; wherein the measuring program includes at least one of an instruction of the clamping device and an instruction of the image acquisition device; the instruction of the clamping device includes at least one of a movement instruction and a rotation instruction, and the instruction of the image acquisition device includes a movement instruction;

[0090] an acquisition unit, configured to acquire a safe height of the image acquisition device and control the image acquisition device to move to the safe height if the measurement program includes a rotation instruction for controlling the rotation of the clamping device;

[0091] A control unit is used to control the clamping device according to an instruction of the clamping device in the measurement program after controlling the image acquisition device to move from the current height to the safety height.

[0092] See also Figure 3 , Figure 3 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 200 includes: one or more processors 210 and a memory 220, Figure 3 A processor 210 is taken as an example.

[0093] In some implementations, the processor 210 and the memory 220 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0094] In some embodiments, the processor 210 is used to determine whether the measurement program includes a rotation instruction for controlling the rotation of the clamping device when executing the measurement program; wherein the measurement program includes at least one of the instructions for the clamping device and the instructions for the image acquisition device; the instructions for the clamping device include at least one of a movement instruction and a rotation instruction, and the instructions for the image acquisition device include a movement instruction; if the measurement program includes a rotation instruction for controlling the rotation of the clamping device, then a safe height of the image acquisition device is acquired and the image acquisition device is controlled to move to the safe height; after controlling the image acquisition device to move from the current height to the safe height, the clamping device is controlled according to the instructions for the clamping device in the measurement program.

[0095] In some embodiments, the memory 220 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules of the control method of the image measuring instrument in the embodiment of the present application. The processor 210 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions and modules stored in the memory 220, that is, the control method of the image measuring instrument in the above method embodiment is implemented.

[0096] In some embodiments, the memory 220 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 220 may optionally include a memory remotely arranged relative to the processor 210, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0097] In some embodiments, one or more modules are stored in the memory 220, and when executed by one or more processors 210, the control method of the image measuring instrument in any of the above method embodiments is executed, for example, the control method described above is executed. Figure 2 Method steps 110 to 130 in.

[0098] Please refer to Figure 4 , Figure 4 The computer-readable storage medium 300 stores a program code 310, which can be called by a processor to execute the control method of the image measuring instrument described in the above method embodiment.

[0099] The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for program codes for executing any method steps in the above control method. These program codes may be read from or written to one or more computer program products. The program code may be compressed, for example, in an appropriate form.

[0100] In summary, the present application provides a control method, device, electronic device and storage medium for an image measuring instrument, the method comprising: when executing a measurement program, determining whether the measurement program includes a rotation instruction for controlling the rotation of the clamping device; wherein the measurement program includes at least one of the instructions of the clamping device and the instructions of the image acquisition device; the instructions of the clamping device include at least one of a movement instruction and a rotation instruction, and the instructions of the image acquisition device include a movement instruction; if the measurement program includes a rotation instruction for controlling the rotation of the clamping device, then obtaining a safe height of the image acquisition device and controlling the image acquisition device to move to a safe height; after controlling the image acquisition device to move from a current height to the safe height, controlling the clamping device according to the instructions of the clamping device in the measurement program. In the present application, if the detection part needs to rotate during the execution of the measurement program, the image acquisition device is always kept at a safe height when executing the instructions of the clamping device to prevent the detection part and the image acquisition device from colliding.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A control method for an image measuring instrument, characterized in that: The image measuring instrument comprises a clamping device for clamping the inspection piece and an image acquisition device for photographing the inspection piece, and the method comprises: When executing a measurement program compiled by a user and automatically executed by the software, determine whether the measurement program includes a rotation instruction for controlling the rotation of the clamping device; wherein the measurement program includes instructions for the clamping device and instructions for the image acquisition device, and the execution order of each instruction; the instructions for the clamping device include movement instructions and rotation instructions, and the instructions for the image acquisition device include movement instructions; If the measurement program includes a rotation instruction for controlling the rotation of the clamping device, obtaining a safe height of the image acquisition device and controlling the image acquisition device to move to the safe height; After controlling the image acquisition device to move from the current height to the safety height, controlling the clamping device according to the instructions of the clamping device in the measurement program; The method further comprises: Determining whether the measurement program includes a movement instruction of the image acquisition device; If the measurement program includes movement instructions for the image acquisition device, then after the step of controlling the clamping device according to the instructions for the clamping device in the measurement program, the method further includes: According to the movement instruction of the image acquisition device, the image acquisition device is controlled to move from the safe height to a target height corresponding to the movement instruction.

2. The method according to claim 1, characterized in that The method further comprises: If the measurement program does not include a rotation instruction for controlling the rotation of the clamping device, the clamping device and the image acquisition device are controlled according to the measurement program.

3. The method according to claim 1, characterized in that The method further comprises: Upon receiving a control instruction manually input by a user, determining whether the control instruction is a movement instruction of the image acquisition device; If the control instruction is not a movement instruction of the image acquisition device, controlling the image acquisition device to move from the current height to the safe height; After the image acquisition device moves to the safe height, the control instruction is executed.

4. The method according to claim 3, characterized in that The method further comprises: If the control instruction is a movement instruction of the image acquisition device, the image acquisition device is controlled to move according to the control instruction.

5. The method according to claim 1, characterized in that The clamping device comprises a direct drive motor and a clamping member, and the direct drive motor can drive the clamping member to rotate 360° to drive the detection member to rotate 360°.

6. The method according to any one of claims 1 to 5, characterized in that: The image acquisition device acquires an image along a direction perpendicular to the detection plane, the clamping device is arranged on the detection plane, and the clamping device can move on the detection plane; The safety height is greater than the maximum height that the detection member can reach within the rotatable angle range.

7. A control device for an image measuring instrument, characterized in that: The image measuring instrument comprises a clamping device for clamping the inspection piece and an image acquisition device for photographing the inspection piece, and the device comprises: A judgment unit, used to judge whether the measurement program compiled by the user and automatically executed by the software includes a rotation instruction for controlling the rotation of the clamping device when executing the measurement program compiled by the user; wherein the measurement program includes instructions for the clamping device and instructions for the image acquisition device, and the execution order of each instruction; the instructions for the clamping device include movement instructions and rotation instructions, and the instructions for the image acquisition device include movement instructions; an acquisition unit, configured to acquire a safe height of the image acquisition device and control the image acquisition device to move to the safe height if the measurement program includes a rotation instruction for controlling the rotation of the clamping device; A control unit, configured to control the clamping device according to an instruction of the clamping device in the measurement program after controlling the image acquisition device to move from a current height to the safety height; and, determining whether the measurement program includes movement instructions for the image acquisition device; If the measurement program includes movement instructions for the image acquisition device, after the step of controlling the clamping device according to the instructions for the clamping device in the measurement program, the image acquisition device is controlled to move from the safety height to the target height corresponding to the movement instruction according to the movement instruction of the image acquisition device.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the image measuring instrument according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the control method of the image measuring instrument according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Image measuring instrument with automatic anti-collision function and anti-collision method thereof

    CN109489564A

  • Equipment control method, controller and detection equipment

    CN110411373A

  • Robot arm three-dimensional self-scanning device and scanning method based on camera collision prevention

    CN110530289A

  • Detection equipment and control method thereof, detection lens assembly and controller

    CN112393680A

  • Image acquisition system and method and display panel processing equipment

    CN114354630A