Calibration method of vision system, electronic device, and storage medium

The calibration method for industrial vision systems addresses installation discrepancies by using preset patterns to calculate feature differences and generate a calibration scheme, enhancing detection accuracy.

JP2024132774APending Publication Date: 2024-10-01HENAN FUCHI TECH CO LTD +4
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2023086133
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2023-05-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Industrial vision systems often deviate from standard hardware parameters during installation, leading to discrepancies between imaging results and actual objects, resulting in detection errors.

Method used

A calibration method that involves capturing a test image using a preset standard image with specific patterns, calculating feature difference values, and generating a calibration scheme to align the vision system's imaging with the actual object.

Benefits of technology

The method quickly generates a calibration scheme to reduce the difference between the vision system's imaging and the actual object, improving detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024132774000001_ABST
    Figure 2024132774000001_ABST
Patent Text Reader

Abstract

To provide a calibration method of a vision system, an electronic device, and a storage medium, capable of reducing difference between an imaging result of the vision system and an actual object by assisting calibration of the vision system.SOLUTION: A calibration method of a vision system comprises the steps of: acquiring a test image obtained by photographing a standard image preset according to a pre-established vision system, the standard image comprising at least one preset pattern; calculating a feature difference value between the test image and the standard image according to at least one preset pattern; and generating a calibration scheme for the vision system according to the feature difference value.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the technical field of vision systems, and in particular to a calibration method, electronic device and storage medium for a vision system. [Background technology]

[0002] Industrial vision systems can be used in automatic inspection, workpiece processing, assembly automation, and image recognition equipment for control and monitoring in production processes, and generally include lighting sources, cameras, camera installation devices, etc. Installers can install industrial vision systems based on various standard hardware parameters (such as light source brightness, camera installation position or angle, etc.) in standard work programs, but due to the high requirements for the installation of industrial vision systems, the actual hardware parameters of the final industrial vision system will have artificially imperceptible differences from the standard hardware parameters, which will cause differences between the imaging results of the industrial vision system and the actual object, leading to errors in the detection results obtained based on the imaging results. Summary of the Invention [Problem to be solved by the invention]

[0003] In view of the above, there is a need to provide a method, an electronic device and a storage medium for calibrating a vision system, which can assist in calibrating the vision system and reduce the discrepancy between the imaging result of the vision system and the actual object. [Means for solving the problem]

[0004] In order to achieve the above object, a method for calibrating a vision system according to the present invention includes the steps of acquiring a test image, calculating a feature difference value between the test image and the standard image based on the preset pattern, and generating a calibration scheme for the vision system based on the feature difference value, where the test image is acquired by capturing a preset standard image based on a pre-constructed vision system, and the standard image includes at least one preset pattern.

[0005] According to one embodiment, the preset patterns include at least one first pattern having lines parallel to each other, and the feature difference values ​​include at least one of an image tilt difference value, an image parallelism difference value, and a difference value of the installation height of a camera that captures the images, and the step of calculating the feature difference values ​​between the test image and the standard image based on the preset patterns includes determining at least one of the image tilt difference value, the image parallelism difference value, and the difference value of the installation height of the camera based on a comparison between the first pattern in the test image and the first pattern in the standard image.

[0006] According to one embodiment, the preset patterns include at least one second pattern, the second pattern including a gradation diagram, the feature difference value including a difference value of brightness uniformity determined based on a gradation value of an image, and the step of calculating the feature difference value between the test image and the standard image based on the preset patterns includes determining the difference value of brightness uniformity based on the gradation value of the second pattern in the test image and the gradation value of the second pattern in the standard image.

[0007] In one embodiment, the preset patterns include at least one third pattern having lines that are not parallel to each other, and the feature difference value includes a sharpness difference value determined based on the sharpness of an image, and the step of calculating the feature difference value between the test image and the standard image based on the preset patterns includes setting the sharpness difference value to the difference between the sharpness of the third pattern in the test image and the sharpness of the third pattern in the standard image.

[0008] According to one embodiment, the preset patterns include at least one fourth pattern, the fourth pattern includes a pattern having a plurality of colors and is located at the center of the standard image, the feature difference value includes a center position difference value determined based on a center position of an image, and the step of calculating the feature difference value between the test image and the standard image based on the preset patterns determines the center position difference value based on a center position of the fourth pattern in the test image and a center position of the fourth pattern in the standard image.

[0009] In one embodiment, the feature difference value includes an overall brightness difference value determined based on the brightness of an image, and the step of calculating the feature difference value between the test image and the standard image based on the preset pattern includes converting both the test image and the standard image into gradation images, and determining the overall brightness difference value based on an average gradation value of all patterns in the gradation image of the test image and an average gradation value of all patterns in the gradation image of the standard image.

[0010] In one embodiment, generating a calibration scheme for the vision system based on the feature difference values ​​includes generating the calibration scheme based on the feature difference values ​​if the feature difference values ​​exceed a corresponding difference range.

[0011] According to one embodiment, the method further comprises displaying the standard image, the test image, the feature difference values ​​and the calibration scheme.

[0012] The electronic device according to the present invention also includes a memory device and at least one processor, the memory device storing at least one instruction, which, when executed by the at least one processor, realizes a method for calibrating the vision system.

[0013] A computer readable storage medium according to the present invention also has stored thereon at least one computer program, which, when executed by a processor, implements the method for calibrating a vision system. Effect of the Invention

[0014] Compared with the related art, the vision system calibration method according to the embodiment of the present application can quickly generate a corresponding vision system calibration scheme based on the difference between a standard image and a corresponding test image, thereby calibrating the vision system and reducing the difference between the image formed by the vision system and the actual object. [Brief description of the drawings]

[0015] In order to more clearly describe the technical aspects in the embodiments of the present application or the prior art, the following briefly describes the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application, and ordinary skilled persons in the art can obtain other drawings based on the drawings provided under the premise of not paying creative labor.

[0016] [Figure 1] FIG. 2 is a schematic diagram of an application scene of the vision system calibration method provided by an embodiment of the present application; [Diagram 2] 1 is a flowchart of a method for calibrating a vision system provided by an embodiment of the present application. [Diagram 3] FIG. 2 illustrates an example of a standard image provided by an embodiment of the present application. [Figure 4]FIG. 2 is a diagram showing an example of a preset pattern provided by an embodiment of the present application. [Diagram 5] FIG. 2 illustrates an example of a test image provided by an embodiment of the present invention. [Figure 6] FIG. 2 illustrates an architecture of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] The present application will be further described with reference to the above-mentioned drawings with respect to the following specific embodiments.

[0018] In order to make the above-mentioned objectives, features and advantages of the present application more clearly understandable, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, if there is no conflict, the embodiments and features of the present application may be combined with each other.

[0019] In the following description, many specific details are described for a full understanding of the present application. The described embodiments are only some embodiments of the present application, but not all embodiments. Any other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative labor should fall within the scope of protection of the present application.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terms used in this specification are for the purpose of describing particular embodiments only and are not intended to be limiting of the present application.

[0021] In one embodiment, the industrial vision system is an image recognition device for automatic inspection, workpiece processing, assembly automation, and control and monitoring of production processes, and generally includes an illumination light source, a camera, a camera installation device, etc. An installer can install the industrial vision system based on various standard hardware parameters (e.g., light source brightness, camera installation position or angle, etc.) in a standard work program, but due to the high installation requirements of the industrial vision system, the actual hardware parameters of the finally obtained industrial vision system will have artificially imperceptible differences from the standard hardware parameters, which will cause a difference between the imaging result of the industrial vision system and the actual object, and an error will occur in the detection result obtained based on the imaging result.

[0022] In order to solve the above problems, the method for calibrating a visual system according to an embodiment of the present application is to take a preset standard image based on a pre-constructed visual system to obtain a test image. Here, the standard image includes at least one preset pattern. Then, based on the preset pattern, a feature difference value between the test image and the standard image is calculated. Finally, a calibration scheme for the visual system is generated based on the feature difference value. The method for calibrating a visual system according to the present application can quickly generate a calibration scheme for the corresponding visual system based on the difference between the standard image and the corresponding test image, so as to calibrate the visual system based on the calibration scheme to reduce the difference between the imaging by the visual system and the real object. In the following, the method for calibrating a visual system provided by an embodiment of the present application is introduced with reference to a schematic diagram of an application scene.

[0023] 1 is a diagram illustrating an application scene of the vision system calibration method provided by an embodiment of the present invention. As shown in FIG. 1, an electronic device 3 communicates with a camera 2 of the vision system for taking an image, and the camera 2 for taking an image takes a preset standard image. The electronic device 3 obtains a test image by communicatively connecting or electrically connecting with the camera 2.

[0024] The electronic device 3 acquires test images from the camera 2 and analyzes the test images to determine whether calibration of the vision system is required and to generate a calibration scheme for the vision system.

[0025] The vision system calibration function provided by the method of the present embodiment is integrated into an electronic device or runs on the electronic device as a Software Development Kit (SDK), which may be a computer, a server, a laptop, or other device.

[0026] In other embodiments, the camera may be a camera of the electronic device, and the electronic device may communicate directly with the vision system to obtain test images from the vision system.

[0027] 2 is a flow chart of a method for calibrating a vision system according to a preferred embodiment of the present application. In this embodiment, the method for calibrating a vision system can be applied to an electronic device (eg, the electronic device 3 shown in FIG. 1).

[0028] As shown in Figure 2, the method for calibrating a vision system specifically includes the following steps: The order of steps in the flowchart can be changed as necessary. Some steps may be omitted.

[0029] In step S1, a test image is acquired.

[0030] In one embodiment, the test image is obtained by capturing a preset standard image based on a pre-configured vision system, the standard image including at least one preset pattern.

[0031] In one embodiment, the vision system represents an industrial vision system, including but not limited to illumination sources, optical lenses, cameras, camera mounting equipment, etc. The electronic device can be communicatively or electrically connected to the industrial vision system to obtain test images.

[0032] In one embodiment, the vision system can be pre-configured based on a standard operating procedure (SOP), which includes multiple standard hardware parameters of the vision system, such as light source brightness, camera mounting position or angle, etc. In this embodiment, the hardware parameters in the pre-configured vision system are called actual hardware parameters.

[0033] In other embodiments, the vision system may further include an image processing system, including but not limited to an image pre-processing module, which may be used to compress, enhance, denoise, etc. the image. The standard operating program may include a number of standard software parameters of the vision system, such as image compression scale.

[0034] In one embodiment, after installing a hardware device, there are often big or small differences between the actual hardware parameters of the vision system and the standard hardware parameters. However, the small errors of the hardware parameters will always be magnified in the image captured by the vision system. This makes the imaging of the vision system unable to restore the real object (e.g., a certain detected part). Therefore, it is necessary to accurately calibrate the vision system so that the imaging of the vision system is as close as possible to the real object.

[0035] In one embodiment, since the error of the hardware parameters of the visual system affects the imaging effect, the difference between the imaging of the visual system and the actual object can be analyzed conversely, and a calibration scheme for the hardware parameters can be obtained based on the feature difference value calculated from the difference.

[0036] However, it is difficult to obtain a standard sample image of a real object, and when the standard sample image of a real object contains a small number of features, the feature difference value obtained from the difference between the standard sample image of a real object and the image of a visual system is relatively one-sided, and it may not be possible to obtain a calibration scheme for more hardware parameter errors.On the other hand, when the standard sample image of a real object contains a large number of features, it is not possible to calculate and obtain the feature difference value based on random features, and it may not be possible to obtain a calibration scheme for more hardware parameter errors.

[0037] In order to solve the above problems, the method for calibrating a vision system provided by the embodiment of the present application uses a preset standard image (also called a color card) instead of a standard sample image of a real object. Furthermore, in order to obtain a calibration scheme as accurate as possible based on the test image and the standard image, the standard image includes at least one preset pattern. For example, refer to the exemplary diagram of the standard image provided by the embodiment of the present application shown in FIG. 3.

[0038] In one embodiment, the preset image includes, but is not limited to, at least one first pattern having parallel lines, at least one second pattern including a tone map, at least one third pattern having non-parallel lines, and at least one fourth pattern including a pattern having multiple colors and located in the center of the standard image. In other embodiments, the fourth pattern may not include multiple colors, but must be located in the center of the standard image.

[0039] For example, FIG. 4 shows an exemplary diagram of a preset pattern provided in an embodiment of the present application. Here, part A in FIG. 4 is an exemplary diagram of a first pattern (rectangular picture frame) provided in an embodiment of the present application, and in relation to FIG. 3, the standard image includes three first patterns parallel to each other. Part B in FIG. 4 is a diagram showing an example of a second pattern provided in an embodiment of the present application. With reference to FIG. 3 as well, the standard image includes six second patterns distributed in a dispersed manner. Part C in FIG. 4 is a diagram showing an example of a third pattern provided by an embodiment of the present application. With reference to FIG. 3 as well, the standard image includes eight third patterns distributed in a dispersed manner. Part D in FIG. 4 is a diagram showing an example of a fourth pattern provided by an embodiment of the present application. With reference to FIG. 3 as well, the standard image includes one fourth pattern at a central position.

[0040] In one embodiment, a standard image may be captured using a previously calibrated vision system, and the historical image obtained by the previously calibrated vision system capturing the standard image may be the standard image used subsequently.

[0041] For example, Fig. 5 is a diagram showing an example of a test image provided in an embodiment of the present application. The test image is obtained by taking a preset standard image using a pre-built vision system. By comparison, Fig. 5 is different from Fig. 3.

[0042] In one embodiment, the preset pattern is used to detect differences between at least one aspect characteristic of the standard image and the test image, such as sharpness, parallelism, illumination consistency, and field of view size (corresponding to the mounting height of the camera), thereby obtaining a more comprehensive and accurate calibration scheme of the vision system.

[0043] In step S2, a feature difference value between the test image and the standard image is calculated based on a preset pattern.

[0044] In one embodiment, the feature difference values ​​include an image tilt difference value, a parallelism difference value, and a mounting height difference value of a camera capturing the image.

[0045] The step of calculating feature difference values ​​between the test image and the standard image based on the preset pattern includes a sub-step of determining an inclination difference value, a parallelism difference value, and an installation height difference value of the camera that captures the image based on a comparison between a first pattern in the test image and a first pattern in the standard image.

[0046] In one embodiment, since the first pattern includes a pattern having lines that are parallel to each other, a tilt difference value, a parallelism difference value, and a mounting height difference value of the camera capturing the images between the test image and the standard image can be determined based on basic knowledge of plane geometry.

[0047] Specifically, determining the tilt difference value includes calculating an offset angle between any line of any first pattern in the test image and any corresponding line in any corresponding first pattern in the standard image, and determining the average value of the offset angles corresponding to all the lines as the tilt difference value. The tilt difference value represents a difference value of the tilt between the test image and the standard image. For example, when the tilt difference value is smaller than 0, it represents that the test image has been rotated clockwise with respect to the standard image. When the tilt difference value is larger than 0, it represents that the test image has been rotated counterclockwise with respect to the standard image. The larger the absolute value of the tilt difference value, the larger the rotation angle.

[0048] The step of determining the parallelism difference value includes a step of calculating a difference value between any side of any first pattern in the test image and any side of any corresponding first pattern in the standard image, and determining the parallelism difference value as the sum of squares of the difference values ​​between all sides of all first patterns and the corresponding opposite sides. The parallelism difference value represents a difference value between the parallelism of the test image and the standard image with respect to the imaging device. For example, the first pattern has four sides, top, bottom, left, and right, and if the parallelism difference value corresponding to the side in the upper side direction is greater than 0, it indicates that a deviation appears in the parallelism of the test image with respect to the upper side of the imaging device. The larger the parallelism difference value, the larger the deviation.

[0049] The step of determining the installation height difference value of the camera capturing the image includes calculating a first ratio between the length of any vertical line of any first pattern in the test image and the installation height of the camera, calculating a second ratio between the length of any vertical line of any first pattern in the standard image and the installation height of the camera, and taking the absolute value of the difference between the first ratio and the second ratio as the installation height difference value of the camera. The installation height difference value of the camera indicates a difference value between the installation height parameter of the camera when the vision system captures the test image and the installation height parameter in the SOP. For example, if the installation height difference value of the camera is smaller than 0, it indicates that the installation height of the camera is low. If the installation height difference value of the camera is larger than 0, it indicates that the installation height of the camera is high. The larger the difference value, the larger the deviation of the installation position.

[0050] In one embodiment, the feature difference value includes determining a light-to-dark uniformity difference value based on the grayscale of the image.

[0051] The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes a step of determining a light-dark uniformity difference value based on the gradation value of the second pattern in the test image and the gradation value of the second pattern in the standard image.

[0052] In one embodiment, the second pattern includes a color scale map, and the color scale map includes a multi-tone map, so that a light-dark uniformity difference value between the test image and the standard image can be determined based on the second pattern.

[0053] Specifically, the difference in gradation value between any gradation map in any second pattern in the test image and any gradation map in any second pattern at the same position in the standard image is calculated, and the sum of the variances of the difference in gradation value corresponding to the gradation maps of all the obtained gradations can be used as the brightness uniformity difference value at the corresponding position. For example, as shown in Figure 5, when the corresponding brightness uniformity difference value is greater than 0, it indicates that there is a difference in brightness uniformity between the second patterns at multiple positions. The larger the difference in brightness uniformity, the worse the brightness uniformity at different positions of the test image.

[0054] In one embodiment, the feature difference value includes a sharpness difference value determined based on the sharpness of the image.

[0055] The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes a step of determining a difference between the sharpness of the third pattern in the test image and the sharpness of the third pattern in the standard image as a sharpness difference value.

[0056] In one embodiment, the third pattern is composed of a plurality of lines that are not parallel to each other, so that the clarity of the test image can be determined based on the clarity of the lines. Specifically, the method for determining the clarity of the pattern includes using a preset image clarity evaluation function such as a Roberts function or a Brenner function. For example, if the clarity difference between the test image and the standard image is less than 0, it indicates that the clarity of the test image is lower than that of the standard image. The larger the absolute value of the clarity difference, the lower the clarity of the test image.

[0057] In one embodiment, the feature difference value includes a centroid difference value determined based on a centroid location of the image.

[0058] The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes a step of determining a center position difference value based on the center position of the fourth pattern in the test image and the center position of the fourth pattern in the standard image.

[0059] In one embodiment, the fourth pattern is a circular figure, and the center position of the circular figure is the center position of the image, so that the center position difference value can be determined based on the center position of the fourth pattern. The center position difference value may be a vector including a direction and a length value. Specifically, the center position of the fourth pattern can be identified based on a feature point detection method. For example, the confluence of the lines of the circular figure is the center position of the circular figure. Furthermore, the center position difference value can indicate the offset direction and offset distance of the center of the test image from the center of the standard image.

[0060] In one embodiment, the feature difference value comprises an overall luminance difference value determined based on the luminance of the image.

[0061] The step of calculating a feature difference value between the test image and the standard image based on a preset pattern includes a step of converting both the test image and the standard image into gradation images, and determining an overall brightness difference value based on an average gradation value of all patterns in the gradation image of the test image and an average gradation value of all patterns in the gradation image of the standard image.

[0062] In one embodiment, in addition to directly using a color card as the standard image, a historical image obtained by a previously calibrated vision system capturing the standard image can also be used as the standard image, in which case a number of first feature difference values ​​between the historical image and the standard color card can be calculated, and then a number of feature difference values ​​of the test image can be compared with a number of second feature difference values ​​of the historical image, and the difference values ​​between the first feature difference values ​​and the corresponding second feature difference values ​​can be used as the feature difference values ​​used in finally generating the calibration scheme.

[0063] In step S3, a calibration scheme for the vision system is generated based on the feature difference values.

[0064] In one embodiment, generating a calibration scheme for the vision system based on the feature difference values ​​includes generating a calibration scheme based on the feature difference values ​​if the feature difference values ​​exceed a corresponding difference range.

[0065] In one embodiment, each feature difference value has a corresponding difference range, for example, the difference range corresponding to the gradient difference value is [-1 degree, 1 degree], the difference range corresponding to the brightness uniformity difference value is [-10, 10], etc.

[0066] In one embodiment, the calibration scheme may be compiled based on past artificial calibration methods. The calibration scheme corresponding to any feature difference value aims to make the test image closer to the standard image. For example, if the camera installation height difference value indicates that the camera installation height is too high, the camera installation height is lowered. If the brightness uniformity difference value indicates that the test image is dark overall, the brightness of the light source is increased, etc.

[0067] In one embodiment, the method for calibrating a vision system further includes displaying the standard image, the test image, the feature difference values, and the calibration scheme via a pre-configured user interface on a display screen of the electronic device.

[0068] In one embodiment, the method provided by the above embodiment is integrated into a software program, and a calibration visualization interface is designed in the software, which displays the standard image, the test image, the feature difference value and the calibration scheme, thereby allowing the user to more intuitively understand the calibration scheme.

[0069] In one embodiment, the present application provides a method for calibrating a vision system, which includes: taking a preset standard image using a pre-constructed vision system to obtain a test image, where the standard image includes at least one preset pattern; calculating a feature difference value between the test image and the standard image based on the preset pattern; and generating a calibration scheme for the vision system based on the feature difference value. That is, the present application can quickly generate a calibration scheme for the corresponding vision system based on the difference between the standard image and the corresponding test image, so that the vision system can be calibrated based on the calibration scheme, and the difference between the imaging by the vision system and the real object can be reduced.

[0070] The above Fig. 2 introduces in detail the method for calibrating a vision system of the present application. In the following, in conjunction with Fig. 6, the functional modules of the software system for implementing the method for calibrating a vision system and the architecture of the hardware device for implementing the method for calibrating a vision system will be introduced.

[0071] It should be understood that this embodiment is for illustrative purposes only and the scope of the patent application is not limited to this structure.

[0072] FIG. 6 shows a schematic structure of an electronic device provided by a preferred embodiment of the present application.

[0073] In the preferred embodiment of the present application, the electronic device 3 includes a storage device 31 and at least one processor 32. Those skilled in the art will recognize that the structure of the electronic device shown in Fig. 6 is not intended to limit the present application, and may be a bus-type structure or a star-type structure. The electronic device 3 may include more or less other hardware or software than shown, or a different component arrangement.

[0074] In some embodiments, the electronic device 3 is a terminal that includes pre-programmed or storable instructions and automatically performs numerical calculations and / or information processing, the hardware of which includes, but is not limited to, microprocessors, dedicated integrated circuits, programmable gate arrays, digital processors, embedded devices, etc.

[0075] It should be noted that the electronic device 3 is merely an example, and other existing or future electronic products, if applicable to the present application, are also within the scope of protection of the present application and should be included herein by reference.

[0076] In some embodiments, the storage device 31 is used to store program code and various data. For example, the storage device 31 may be used to store the vision system calibration system 30 installed in the electronic device 3 and provide fast, automatic access to the programs or data during operation of the electronic device 3. The storage device 31 may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk memory, magnetic disk memory, magnetic tape storage, or other computer readable storage medium that can be used to carry or store data.

[0077] In some embodiments, the at least one processor 32 may be configured as an integrated circuit. For example, the at least one processor 32 may be configured as a single packaged integrated circuit, or may be configured as packaged integrated circuits with the same or different functions, including one or more central processors (Central Processing Units (CPUs)), microprocessors, digital processing chips, graphic processors, and combinations of various control chips. The at least one processor 32 is a control core (Control Unit) of the electronic device 3, connects each component of the entire electronic device 3 using various interfaces and lines, runs or executes programs or modules stored in the storage device 31, and calls up data stored in the storage device 31 to perform various functions and process data of the electronic device 3, such as the calibration function of the vision system shown in FIG. 2.

[0078] In some embodiments, the vision system calibration system 30 runs on the electronic device 3. The vision system calibration system 30 may include multiple functional modules made up of program code segments. The program code for each segment in the vision system calibration system 30 may be stored in a memory device 31 of the electronic device 3 and executed by at least one processor 32 to implement the vision system calibration functions shown in FIG.

[0079] In this embodiment, the vision system calibration system 30 may be divided into multiple functional modules according to the functions it performs. A module in this specification refers to a series of computer program segments that can be executed by at least one processor and complete a fixed function, and is stored in a storage device.

[0080] Although not shown, the electronic device 3 may also include a power source (e.g., a battery) that supplies power to each component. Preferably, the power source is logically connected to at least one processor 32 via a power management unit to manage functions such as charging, discharging, and power consumption via the power management unit. The power source may include any components such as one or more DC / AC power sources, a recharging unit, a power supply fault test circuit, a power supply converter or inverter, a power supply status indicator, etc. Furthermore, the electronic device 3 may include multiple sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be described further herein.

[0081] It should be understood that the above embodiments are for illustrative purposes only, and the scope of the patent application is not limited to these structures.

[0082] The integrated unit realized as the above-mentioned software function module may be stored in one computer-readable storage medium. The above-mentioned software function module is stored in one storage medium and includes several instructions so that an electronic device (which may be a server, a personal computer, etc.) or a processor executes the methods described in various embodiments of the present application.

[0083] The storage device 31 stores program codes, and the at least one processor 32 can call the program codes stored in the storage device 31 to execute associated functions. The program codes stored in the storage device 31 are executed by the at least one processor 32 to realize the functions of each module and further achieve the purpose of calibrating the vision system.

[0084] In some embodiments provided herein, it should be understood that the disclosed apparatus and method may be realized in other ways. For example, the above-described apparatus embodiments are merely exemplary. For example, the division of modules is merely a division of logical functions, and there may be other division methods in actual implementation.

[0085] The modules described as separate means may or may not be physically separated. The means shown as modules may or may not be physical units, i.e., they may be located in one place or distributed among several network units. The objectives of the present embodiment can be realized by selecting some or all of the modules according to the actual needs.

[0086] In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be realized in the form of hardware, or in the form of a hardware-plus-software functional module.

[0087] It is clear to those skilled in the art that the present application is not limited to the details of the exemplary embodiment described above, and that the present application can be realized in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, in all respects, the above embodiment is illustrative and non-limiting. The scope of the present application is limited by the appended claims, not by the above description, and all changes that fall within the scope of the equivalents of the claims are intended to be included in the present application. Any reference signs in the claims should not be construed as limiting the relevant claims. It is also clear that the word "comprise" does not exclude other elements, and the singular does not exclude a plurality. A plurality of units or devices described in a device claim may be realized by one unit or device by software or hardware. Words such as first, second, etc. are used to indicate names, not to indicate a particular order.

[0088] Finally, it should be explained that the above-mentioned embodiments are only used to describe the technical aspects of the present application, and do not limit the scope of the claims of the present application. Although the present application has been described in detail with reference to the above-mentioned preferred embodiments, those skilled in the art should understand that the technical aspects of the present application can be modified or replaced with equivalents without departing from the spirit and scope of the technical aspects of the present application.

Claims

1. A method for calibrating a vision system applied to an electronic device, comprising: Obtaining a test image by capturing a standard image including at least one preset pattern, the standard image being preset based on a pre-configured vision system; calculating a feature difference value between the test image and the standard image based on the preset pattern; generating a calibration scheme for the vision system based on the feature difference values.

2. The preset patterns include at least one first pattern having lines parallel to each other, and the feature difference value includes at least one of an inclination difference value of an image, a parallelism difference value of an image, and a difference value of an installation height of a camera that captures an image; The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes:

2. The method of claim 1, further comprising determining at least one of an inclination difference value of the image, a parallelism difference value of the image, and a difference value of an installation height of the camera based on a comparison between a first pattern in the test image and a first pattern in the standard image.

3. The preset patterns include at least one second pattern, the second pattern includes a gradation map, and the feature difference value includes a brightness uniformity difference value determined based on a gradation value of an image; The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes:

2. The method of claim 1, further comprising determining the light-dark uniformity difference value based on a grayscale value of a second pattern in the test image and a grayscale value of a second pattern in the standard image.

4. the preset patterns include at least one third pattern having lines that are not parallel to one another, and the feature difference values ​​include sharpness difference values ​​determined based on a sharpness of an image; The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes:

2. The method of claim 1, further comprising determining the difference in sharpness between the third pattern in the test image and the third pattern in the standard image as the sharpness difference value.

5. the preset patterns include at least one fourth pattern, the fourth pattern includes a pattern having a plurality of colors and is located at a center of the standard image, and the feature difference value includes a center position difference value determined based on a center position of the image; The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes:

2. The method of claim 1, further comprising determining the central position difference value based on a central position of a fourth pattern in the test image and a central position of a fourth pattern in the standard image.

6. the feature difference value comprises a global luminance difference value determined based on a luminance of the image; The step of calculating a feature difference value between the test image and the standard image based on the preset pattern includes:

2. The method of claim 1, further comprising converting both the test image and the standard image into a grayscale image, and determining the overall luminance difference value based on an average grayscale value of all patterns in the grayscale image of the test image and an average grayscale value of all patterns in the grayscale image of the standard image.

7. generating a calibration scheme for the vision system based on the feature difference values, 2. The method of claim 1, further comprising: generating the calibration scheme based on the feature difference values ​​if the feature difference values ​​exceed a corresponding difference range.

8. The method further comprises:

2. The method of claim 1, further comprising: displaying said standard image, said test image, said feature difference values, and said calibration scheme.

9. 9. The electronic device, comprising: a storage device; and a processor for implementing the method for calibrating a vision system according to any one of claims 1 to 8 when executing a computer program stored in the storage device.

10. A computer-readable storage medium having a computer program stored thereon, A computer readable storage medium, comprising a computer program which, when executed by a processor, performs the method for calibrating a vision system according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Machine vision calibration target and method for determining target position and orientation within an image

    JP2001524228A

  • Apparatus for imaging microscopic picture

    JP2004070036A

  • Calibration chart image display device, calibration apparatus, and calibration method

    JP2005003463A

  • Electronic camera having function for preparing calibration data of image output destination

    JP2008066871A

  • Image forming apparatus

    JP2010030257A