Dimension measurement method and device, equipment and storage medium

Through image matching and automatic measurement of three-coordinate measuring machines, the problem of inaccurate manual measurement in the prior art is solved, and the precise dimension measurement of bearing mounting accessories is realized.

CN119594913APending Publication Date: 2025-03-11BEIJING RAILWAY INST OF MECHANICAL & ELECTRICAL ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411142671.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, the measurement of the bearing mounting accessories depends on manual operation, resulting in low accuracy of the measurement results.

Method used

By obtaining the component image of the component to be tested, determining its matching relationship and offset with the standard component image, adjusting the standard measurement trajectory to determine the current measurement trajectory, and controlling the three-coordinate measuring machine to perform measurements based on the current measurement trajectory.

Benefits of technology

Automatic and precise determination of the component size of the component to be tested is achieved, and the accuracy and efficiency of measurement is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119594913A_ABST
    Figure CN119594913A_ABST
Patent Text Reader

Abstract

The invention discloses a size measurement method, device and equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: obtaining a component image of a to-be-measured component, and determining a component identifier of the to-be-measured component and the offset of the component image according to a standard component image corresponding to the component image; determining a standard measurement track corresponding to the component identifier, and determining a current measurement track according to the standard measurement track and the offset; and controlling the three-coordinate measuring machine to measure the to-be-measured component based on the current measurement track, and determining the component size of the to-be-measured component. According to the technical scheme, the standard measurement track is adjusted according to the component image of the to-be-measured component and the offset of the standard component image corresponding to the component image, the current measurement track used for conducting size measurement on the to-be-measured component is obtained, and the three-coordinate measuring machine is controlled to measure the to-be-measured component based on the current measurement track. Therefore, the accurate size of the to-be-measured component can be automatically determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a dimension measurement method, device, equipment and storage medium. Background Art

[0002] Traction motors are important components of the power system. Among the failures of traction motors, bearing failures account for a large proportion. On the one hand, it is the failure of the bearing itself, and on the other hand, it is the failure caused by the deviation of the size of the bearing mounting accessories during the manufacturing or maintenance process. Therefore, accurately measuring the size of the bearing mounting accessories is very important for the maintenance of traction motors.

[0003] In the prior art, dimension measuring tools such as aperture measuring instruments and micrometers are used manually to sample bearing mounting accessories at multiple points to determine the dimension average value.

[0004] This dimensional measurement method is more dependent on the operator's operating experience and sense of responsibility, and the accuracy of the measurement results is not high. Summary of the invention

[0005] The present invention provides a dimension measurement method, device, equipment and storage medium, so as to realize automatic determination of a relatively accurate component dimension of a component to be measured.

[0006] In a first aspect, an embodiment of the present invention provides a size measurement method, comprising:

[0007] Acquire a component image of the component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image;

[0008] Determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset;

[0009] The three-dimensional coordinate measuring machine is controlled to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

[0010] The technical solution of an embodiment of the present invention provides a dimension measurement method, including: acquiring a component image of a component to be measured, determining a component identification of the component to be measured and an offset of the component image according to a standard component image corresponding to the component image; determining a standard measurement trajectory corresponding to the component identification, and determining a current measurement trajectory according to the standard measurement trajectory and the offset; controlling a three-coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured. The above technical scheme can firstly acquire a component image of the component to be measured based on an image acquisition device, and secondly determine a standard component image corresponding to the component image, and determine a component identification of the component to be measured according to the standard component image corresponding to the component image, and determine an offset of the component image according to the component image and the standard component image corresponding to the component image, and thirdly determine a standard measurement trajectory corresponding to the component identification, and adjust the standard measurement trajectory according to the offset of the component image of the component to be measured and the standard component image corresponding to the component image, so as to obtain a current measurement trajectory for dimensional measurement of the component to be measured, and then control a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory. Specifically, the measurement arm of the three-dimensional coordinate measuring machine can be controlled to move based on the current measurement trajectory to achieve dimensional measurement of the component to be measured, obtain the component size of the component to be measured, and further automatically determine a more accurate component size of the component to be measured.

[0011] Furthermore, the method further comprises:

[0012] The standard component image corresponding to each component identification is determined according to the received component identification and the acquired standard component image.

[0013] Furthermore, before determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes:

[0014] A standard component image corresponding to the component image is determined from the standard component images corresponding to the component identifiers according to the component image.

[0015] Furthermore, before determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes:

[0016] According to the received identification of the component to be tested, a standard component image corresponding to the component image is determined from the standard component images corresponding to the component identifications.

[0017] Further, determining the component identification of the component to be tested according to the standard component image corresponding to the component image includes:

[0018] The component identification corresponding to the standard component image corresponding to the component image is determined as the component identification of the component to be tested.

[0019] Further, determining the offset of the component image according to the standard component image corresponding to the component image includes:

[0020] The offset of the component image is determined according to the first center coordinates of the component image and the second center coordinates of the standard component image corresponding to the component image.

[0021] Furthermore, after determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes:

[0022] Determine the standard size of the component to be tested according to the component identification;

[0023] Correspondingly, after determining the component size of the component to be measured, the method further includes:

[0024] The dimension error between the component dimension and the standard dimension is determined, and when it is determined that the dimension error is within a preset error range, the component to be tested is determined to be qualified.

[0025] In a second aspect, an embodiment of the present invention further provides a size measuring device, comprising:

[0026] An acquisition module, used for acquiring a component image of a component to be tested, and determining a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image;

[0027] A determination module, used to determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset;

[0028] The measuring module is used to control the three-dimensional coordinate measuring machine to measure the component to be measured based on the current measuring trajectory, and determine the component size of the component to be measured.

[0029] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0030] at least one processor; and a memory communicatively coupled to the at least one processor;

[0031] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the dimension measurement method as described in any one of the first aspects.

[0032] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the dimension measurement method as described in any one of the first aspects.

[0033] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the dimension measurement method provided in the first aspect.

[0034] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the dimension measuring device, or may be packaged separately from the processor of the dimension measuring device, and this application does not limit this.

[0035] The description of the second, third, fourth and fifth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0036] In this application, the name of the above-mentioned dimension measuring device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0037] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A flow chart of a size measurement method provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of the structure of a dimension measurement system provided by an embodiment of the present invention;

[0041] Figure 3 A flow chart of another size measurement method provided by an embodiment of the present invention;

[0042] Figure 4A schematic structural diagram of a size measuring device provided by an embodiment of the present invention;

[0043] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0045] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0046] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0047] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0048] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0049] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0050] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0051] Figure 1 A flow chart of a dimension measurement method provided by an embodiment of the present invention is applicable to the situation where the relatively accurate dimension of the component to be measured needs to be automatically determined. The method can be executed by a dimension measurement device, such as Figure 1 As shown, the specific steps include:

[0052] Step 110: Acquire a component image of the component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image.

[0053] Figure 2 A schematic diagram of the structure of a dimension measurement system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the dimension measuring system includes a slide (loading slide), a turntable (visual camera turntable), an image acquisition device (visual industrial camera) and a three-dimensional coordinate measuring machine, wherein the slide is used to move the component to be measured into or out of the storage table of the three-dimensional coordinate measuring machine, the turntable includes a support rod and a rotating rod, one end of the rotating rod is connected to the image acquisition device, the rotating rod is used to move the image acquisition device into or out of the top of the storage table, the image acquisition device is used to acquire the component image of the component to be measured placed on the storage table, and the three-dimensional coordinate measuring machine is used to measure the dimension of the component to be measured placed on the storage table.

[0054] Specifically, after the slide table is controlled to slide out of the storage table of the three-dimensional coordinate measuring machine, the operator can place the component to be measured on the slide table, and then the slide table is controlled to slide into the storage table of the three-dimensional coordinate measuring machine to move the component to be measured into the storage table of the three-dimensional coordinate measuring machine. The rotating rod of the control turntable is rotated to move the image acquisition device above the storage table, and the image acquisition device is controlled to acquire the component image of the component to be measured placed on the storage table.

[0055] Furthermore, the component identification of the component to be tested can be determined based on the standard component image corresponding to the component image. On the one hand, the standard component image corresponding to the component image can be searched in the standard component image library, and the component identification of the standard component image corresponding to the component image can be determined as the component identification of the component to be tested. On the other hand, the received component identification can be determined by determining the standard component image corresponding to the component image among the standard component images corresponding to each component identification. When it is determined that the component image matches the standard component image corresponding to the component image, the received component identification is determined as the component identification of the component to be tested.

[0056] When acquiring the component image, the center coordinates of the component image may also be acquired. The offset of the component image may be determined according to the center coordinates of the component image and the center coordinates of the standard component image corresponding to the component image.

[0057] In the embodiment of the present invention, after the image acquisition device acquires the component image of the component to be measured, the component identification of the component to be measured and the offset of the component image are determined according to the standard component image corresponding to the component image.

[0058] Step 120: determine a standard measurement trajectory corresponding to the component identification, and determine a current measurement trajectory according to the standard measurement trajectory and the offset.

[0059] Specifically, when the three-dimensional coordinate measuring machine measures the dimensions of a component, it is necessary to adjust the standard measurement track of the component according to the position of the component on the storage table to determine the current measurement track. Therefore, it is necessary to first determine the standard measurement track corresponding to the component identification. Since the standard measurement track is determined according to the position of the component to be measured on the storage table of the three-dimensional coordinate measuring machine when the standard component image of the component to be measured is obtained, the standard measurement track can be adjusted based on the offset between the component image and the standard component image corresponding to the component image to obtain the current measurement track.

[0060] In the embodiment of the present invention, the standard measurement track corresponding to the component identification of the component to be measured is adjusted according to the offset between the component image of the component to be measured and the standard component image corresponding to the component image, so as to obtain the current measurement track for measuring the size of the component to be measured.

[0061] Step 130: Control a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

[0062] Specifically, after determining the current measurement trajectory, the current measurement trajectory can be sent to a three-dimensional coordinate measuring machine, so that the three-dimensional coordinate measuring machine can control the movement of the measuring arm based on the current measurement trajectory to measure the size of the component to be measured and obtain the component size of the component to be measured.

[0063] In the embodiment of the present invention, the measurement arm of the three-dimensional coordinate measuring machine is controlled to move based on the current measurement trajectory to achieve the dimension measurement of the component to be measured and obtain the component dimension of the component to be measured.

[0064] The dimension measurement method provided by an embodiment of the present invention includes: acquiring a component image of a component to be measured, determining a component identification of the component to be measured and an offset of the component image according to a standard component image corresponding to the component image; determining a standard measurement trajectory corresponding to the component identification, and determining a current measurement trajectory according to the standard measurement trajectory and the offset; and controlling a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured. The above technical scheme can firstly acquire a component image of the component to be measured based on an image acquisition device, and secondly determine a standard component image corresponding to the component image, and determine a component identification of the component to be measured according to the standard component image corresponding to the component image, and determine an offset of the component image according to the component image and the standard component image corresponding to the component image, and thirdly determine a standard measurement trajectory corresponding to the component identification, and adjust the standard measurement trajectory according to the offset of the component image of the component to be measured and the standard component image corresponding to the component image, so as to obtain a current measurement trajectory for dimensional measurement of the component to be measured, and then control a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory. Specifically, the measurement arm of the three-dimensional coordinate measuring machine can be controlled to move based on the current measurement trajectory to achieve dimensional measurement of the component to be measured, obtain the component size of the component to be measured, and further automatically determine a more accurate component size of the component to be measured.

[0065] Figure 3 This is a flow chart of another dimension measurement method provided by an embodiment of the present invention. This embodiment is specific based on the above embodiment. Figure 3 As shown, in this embodiment, the method may further include:

[0066] Step 310: Determine the standard component image corresponding to each component identification according to the received component identification and the acquired standard component image.

[0067] Specifically, the operator can input the component identification of the component based on the terminal device and place the component on the slide table that slides out of the three-dimensional coordinate measuring machine. The terminal device can send the component identification to the computer device, and the computer device can also control the slide table to slide into the three-dimensional coordinate measuring machine. When it is determined that the slide table slides into the three-dimensional coordinate measuring machine, the computer device can control the rotation rod of the turntable to rotate to move the image acquisition device to the top of the storage table, and then control the image acquisition device to acquire the component image of the component placed on the storage table. At this time, the acquired component image is the standard component image.

[0068] In practical applications, the component identification may be received multiple times and the standard component image of the component corresponding to the component identification may be obtained. Of course, the component identification and the standard component image corresponding to the component identification may also be stored accordingly.

[0069] In addition, when acquiring the standard component image, the center coordinates of the standard component image can also be acquired.

[0070] In the embodiment of the present invention, after receiving the component identification and acquiring the standard component image of the component corresponding to the component identification, the component identification and the standard component image corresponding to the component identification are stored correspondingly, thereby realizing the corresponding storage of the component identification and the standard component image.

[0071] Step 320: Acquire a component image of the component to be tested.

[0072] Step 330: Determine the standard component image corresponding to the component image from the standard component images corresponding to the component identifications according to the component image, or determine the standard component image corresponding to the component image from the standard component images corresponding to the component identifications according to the received component identification to be tested.

[0073] Specifically, the component image and the standard component images corresponding to the component identifications can be compared, and the standard component image with the highest similarity to the component image can be determined as the standard component image corresponding to the component image; or, the received component identification to be tested can be determined to determine the standard component image corresponding to the component identification to be tested in the corresponding stored component identification and the standard component image corresponding to the component identification, and the standard component image corresponding to the component identification to be tested can be determined as the standard component image corresponding to the component image.

[0074] In the embodiment of the present invention, it is achieved to determine the standard component image corresponding to the component image.

[0075] Step 340: Determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image.

[0076] In one implementation, step 340 may specifically include:

[0077] The component identification corresponding to the standard component image corresponding to the component image is determined as the component identification of the component to be measured; and the offset of the component image is determined according to the first center coordinate of the component image and the second center coordinate of the standard component image corresponding to the component image.

[0078] The offset includes a horizontal axis offset and a vertical axis offset.

[0079] Specifically, the component identification corresponding to the standard component image corresponding to the component image can be determined as the component identification of the component to be tested, thereby determining the component identification. The coordinate offset value of the first center coordinate of the component image and the second center coordinate of the standard component image corresponding to the component image is determined, and the coordinate offset value is determined as the offset of the component image relative to the standard component image corresponding to the component image.

[0080] In the embodiment of the present invention, the component identification of the component to be tested and the offset of the component image are determined according to the standard component image corresponding to the component image.

[0081] Step 350: determine a standard measurement trajectory corresponding to the component identification, and determine a current measurement trajectory according to the standard measurement trajectory and the offset.

[0082] Specifically, after determining the standard component image corresponding to the component identification, the standard measurement trajectory corresponding to the component identification can be determined according to the theoretical measurement trajectory corresponding to the component identification and the center coordinates of the standard component image. Specifically, the theoretical measurement trajectory corresponding to the component identification can be adjusted based on the center coordinates of the standard component image corresponding to the component identification to obtain the standard measurement trajectory corresponding to the component identification. Furthermore, the standard measurement trajectory can be adjusted based on the offset of the component image of the component to be measured and the standard component image corresponding to the component image of the component to be measured to obtain the current measurement trajectory of the component to be measured.

[0083] In the embodiment of the present invention, the standard measurement trajectory of the component to be measured is adjusted according to the component image of the component to be measured and the offset of the standard component image corresponding to the component image of the component to be measured, so as to obtain the current measurement trajectory for measuring the size of the component to be measured.

[0084] Step 360: Control the three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

[0085] Specifically, after determining the current measurement trajectory of the component to be measured, the current measurement trajectory of the component to be measured can be sent to a three-dimensional coordinate measuring machine, so that the three-dimensional coordinate measuring machine can control the movement of the measuring arm based on the current measurement trajectory to measure the size of the component to be measured and obtain the component size of the component to be measured.

[0086] In practical applications, the coordinate measuring machine needs to be reset to zero each time it is restarted and the storage table is determined to be empty.

[0087] In addition, the component size of the component to be measured can be saved, and after saving the component size of the component to be measured, the component size of the component to be measured can also be deleted. The change of the component size of the component to be measured can also be counted on a monthly or annual basis.

[0088] In the embodiment of the present invention, the measurement arm of the three-dimensional coordinate measuring machine is controlled to move based on the current measurement trajectory to achieve the dimension measurement of the component to be measured and obtain the component dimension of the component to be measured.

[0089] Step 370: Determine the standard size of the component to be tested according to the component identification.

[0090] Specifically, if the computer device pre-stores the standard size of the component corresponding to each component identification, the standard size of the component to be tested can be determined according to the component identification of the component to be tested. If the computer device does not pre-store the standard size of the component corresponding to each component identification, the component identification can be sent to the server, and the server determines the standard size of the component to be tested according to the component identification of the component to be tested.

[0091] It should be noted that after the component identification of the component to be tested is determined, the standard size of the component to be tested can be determined according to the component identification of the component to be tested, that is, step 370 can be performed after step 340 and before step 380 .

[0092] In the embodiment of the present invention, the standard size of the component to be tested is determined according to the component identification of the component to be tested.

[0093] Step 380: Determine a dimensional error between the component size and the standard size, and when it is determined that the dimensional error is within a preset error range, determine that the component to be tested is qualified.

[0094] Specifically, the component size of the component to be tested may include the size of each area of ​​the component to be tested. After determining the component size and the standard size of the component to be tested, the size error of each area may be determined, and then the size error of the component size and the standard size may be determined based on the size error of each area. If the size error is within the preset error range, the component to be tested is determined to be qualified, otherwise, the component to be tested is determined to be unqualified.

[0095] In the embodiment of the present invention, the conformity inspection of the component to be tested is implemented according to the dimensional error between the component size and the standard size.

[0096] The dimension measurement method provided by an embodiment of the present invention includes: determining the standard component image corresponding to each component identification according to a received component identification and an acquired standard component image; acquiring a component image of the component to be measured; determining the standard component image corresponding to the component image in the standard component image corresponding to each component identification according to the component image, or determining the standard component image corresponding to the component image in the standard component image corresponding to each component identification according to the received component identification; determining the component identification of the component to be measured and the offset of the component image according to the standard component image corresponding to the component image; determining a standard measurement trajectory corresponding to the component identification, and determining a current measurement trajectory according to the standard measurement trajectory and the offset; controlling a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured; determining the standard size of the component to be measured according to the component identification; determining the dimensional error between the component size and the standard size, and determining that the component to be measured is qualified when the dimensional error is determined to be within a preset error range. The above technical solution, after receiving the component identification and acquiring the standard component image of the component corresponding to the component identification, stores the component identification and the standard component image corresponding to the component identification accordingly, realizes the corresponding storage of the component identification and the component standard image, acquires the component image of the component to be tested based on the image acquisition device, and then determines the standard component image corresponding to the component image, and determines the standard component image corresponding to the component image in the standard component images corresponding to each component identification according to the component image, or determines the standard component image corresponding to the component image in the standard component images corresponding to each component identification according to the received component identification to be tested, and determines the component identification corresponding to the standard component image corresponding to the component image as the component to be tested. The component identification is determined according to the first center coordinate of the component image and the second center coordinate of the standard component image corresponding to the component image, the offset of the component image is determined, the standard measurement trajectory corresponding to the component identification is determined, and the standard measurement trajectory is adjusted according to the component image of the component to be measured and the offset of the standard component image corresponding to the component image, so as to obtain a current measurement trajectory for dimensional measurement of the component to be measured, and the three-dimensional coordinate measuring machine is controlled to measure the component to be measured based on the current measurement trajectory. Specifically, the measurement arm of the three-dimensional coordinate measuring machine can be controlled to move based on the current measurement trajectory to realize dimensional measurement of the component to be measured, obtain the component size of the component to be measured, and further realize automatic determination of a more accurate component size of the component to be measured.

[0097] Moreover, after determining the component identification of the component to be tested, the standard size of the component to be tested can also be determined based on the component identification, and then the dimensional error between the component size of the component to be tested and the standard size can be determined. When it is determined that the dimensional error is within a preset error range, the component to be tested is determined to be qualified, thereby achieving the qualification test of the component to be tested.

[0098] Figure 4 The present invention provides a structural schematic diagram of a dimension measuring device, which can be applied to situations where it is necessary to automatically determine the relatively accurate dimension of a component to be measured. The device can be implemented by software and / or hardware and is generally integrated in a computer device.

[0099] like Figure 4 As shown, the device comprises:

[0100] An acquisition module 410 is used to acquire a component image of a component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image;

[0101] A determination module 420, configured to determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset;

[0102] The measuring module 430 is used to control the three-dimensional coordinate measuring machine to measure the component to be measured based on the current measuring trajectory, and determine the component size of the component to be measured.

[0103] The dimension measuring device provided in this embodiment obtains a component image of a component to be measured, determines a component identification of the component to be measured and an offset of the component image according to a standard component image corresponding to the component image; determines a standard measurement trajectory corresponding to the component identification, and determines a current measurement trajectory according to the standard measurement trajectory and the offset; and controls a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured. The above technical scheme can firstly acquire a component image of the component to be measured based on an image acquisition device, and secondly determine a standard component image corresponding to the component image, and determine a component identification of the component to be measured according to the standard component image corresponding to the component image, and determine an offset of the component image according to the component image and the standard component image corresponding to the component image, and thirdly determine a standard measurement trajectory corresponding to the component identification, and adjust the standard measurement trajectory according to the offset of the component image of the component to be measured and the standard component image corresponding to the component image, so as to obtain a current measurement trajectory for dimensional measurement of the component to be measured, and then control a three-dimensional coordinate measuring machine to measure the component to be measured based on the current measurement trajectory. Specifically, the measurement arm of the three-dimensional coordinate measuring machine can be controlled to move based on the current measurement trajectory to achieve dimensional measurement of the component to be measured, obtain the component size of the component to be measured, and further automatically determine a more accurate component size of the component to be measured.

[0104] Based on the above embodiment, the device further includes:

[0105] The first execution module is used to determine the standard component image corresponding to each component identification according to the received component identification and the acquired standard component image.

[0106] Based on the above embodiment, the device further includes:

[0107] A second execution module is used to determine the standard component image corresponding to the component image according to the component image in the standard component images corresponding to the component identifications before determining the component identification of the component to be tested according to the standard component image corresponding to the component image, or to determine the standard component image corresponding to the component image in the standard component images corresponding to the component identifications according to the received component identification to be tested.

[0108] Based on the above embodiment, the acquisition module 410 is specifically used for:

[0109] Acquire a component image of the component to be measured; determine the component identification corresponding to the standard component image corresponding to the component image as the component identification of the component to be measured; and determine the offset of the component image according to the first center coordinates of the component image and the second center coordinates of the standard component image corresponding to the component image.

[0110] Based on the above embodiment, the device further includes:

[0111] The qualified determination module is used to determine the component identification of the component to be tested according to the standard component image corresponding to the component image, and then determine the standard size of the component to be tested according to the component identification; determine the dimensional error between the component size and the standard size, and determine that the component to be tested is qualified when it is determined that the dimensional error is within a preset error range.

[0112] The dimension measuring device provided in the embodiment of the present invention can execute the dimension measuring method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the dimension measuring method.

[0113] It is worth noting that in the embodiment of the above-mentioned dimension measuring device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0114] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 5 A block diagram of an exemplary electronic device 5 suitable for implementing embodiments of the present invention is shown. Figure 5 The electronic device 5 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0115] like Figure 5As shown, the electronic device 5 is in the form of a general purpose computing electronic device. The components of the electronic device 5 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0116] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0117] The electronic device 5 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 5, including volatile and non-volatile media, removable and non-removable media.

[0118] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 5 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0119] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0120] The electronic device 5 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 5, and / or any device that enables the electronic device 5 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 5 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with other modules of the electronic device 5 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 5, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0121] The processing unit 16 executes various functional applications and page displays by running the programs stored in the system memory 28, for example, implementing the size measurement method provided in the embodiment of the present invention, which includes:

[0122] Acquire a component image of the component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image;

[0123] Determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset;

[0124] The three-dimensional coordinate measuring machine is controlled to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

[0125] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the dimension measurement method provided by any embodiment of the present invention.

[0126] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, for example, a dimension measurement method provided by an embodiment of the present invention is implemented. The method includes:

[0127] Acquire a component image of the component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image;

[0128] Determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset;

[0129] The three-dimensional coordinate measuring machine is controlled to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

[0130] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0131] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0132] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0133] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0135] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.

[0136] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A size measurement method, characterized in that: include: Acquire a component image of the component to be tested, and determine a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image; Determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset; The three-dimensional coordinate measuring machine is controlled to measure the component to be measured based on the current measurement trajectory to determine the component size of the component to be measured.

2. The dimension measuring method according to claim 1, characterized in that: Also includes: The standard component image corresponding to each component identification is determined according to the received component identification and the acquired standard component image.

3. The dimension measuring method according to claim 2, characterized in that: Before determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes: A standard component image corresponding to the component image is determined from the standard component images corresponding to the component identifiers according to the component image.

4. The dimension measuring method according to claim 2, characterized in that: Before determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes: According to the received identification of the component to be tested, a standard component image corresponding to the component image is determined from the standard component images corresponding to the component identifications.

5. The dimension measuring method according to claim 3 or 4, characterized in that: Determining a component identification of the component to be tested according to a standard component image corresponding to the component image includes: The component identification corresponding to the standard component image corresponding to the component image is determined as the component identification of the component to be tested.

6. The dimension measuring method according to claim 3 or 4, characterized in that: Determining the offset of the component image according to the standard component image corresponding to the component image includes: The offset of the component image is determined according to the first center coordinates of the component image and the second center coordinates of the standard component image corresponding to the component image.

7. The dimension measuring method according to claim 1, characterized in that: After determining the component identification of the component to be tested according to the standard component image corresponding to the component image, the method further includes: Determine the standard size of the component to be tested according to the component identification; Correspondingly, after determining the component size of the component to be measured, the method further includes: The dimension error between the component dimension and the standard dimension is determined, and when it is determined that the dimension error is within a preset error range, the component to be tested is determined to be qualified.

8. A dimension measuring device, characterized in that: include: An acquisition module, used for acquiring a component image of a component to be tested, and determining a component identification of the component to be tested and an offset of the component image according to a standard component image corresponding to the component image; A determination module, used to determine a standard measurement track corresponding to the component identification, and determine a current measurement track according to the standard measurement track and the offset; The measuring module is used to control the three-dimensional coordinate measuring machine to measure the component to be measured based on the current measuring trajectory, and determine the component size of the component to be measured.

9. 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 a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the dimension measurement method according to any one of claims 1 to 7.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the dimension measurement method according to any one of claims 1 to 7 when executed by a computer processor.