Image debugging method, device, equipment and storage medium

By receiving image information, calculating grayscale and brightness values, automatically selecting the target brightness area and adjusting the exposure, the problem of artificial experience dependence in the prior art is solved, and efficient and accurate image debugging is achieved.

CN115762439BActive Publication Date: 2025-07-11NANJING HUICHUAN IND VISUAL TECH DEV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211375536.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-04
Publication Date
2025-07-11
Estimated Expiration
2042-11-04

AI Technical Summary

Technical Problem

The existing image brightness debugging relies on manual experience, has low efficiency and accuracy, and the debugging process is time-consuming and labor-intensive, and cannot meet the needs of visual detection systems.

Method used

By receiving image information from each photo area, determining the grayscale value, calculating the brightness value set, automatically selecting the target brightness area, and adjusting the exposure and clarity to meet preset standards, providing a guided image-based interface for debugging.

Benefits of technology

It improves the accuracy and efficiency of image debugging, ensures that brightness and clarity meet the visual detection requirements, get rid of experience-dependent debugging methods, and reduces repeated scene switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115762439B_ABST
    Figure CN115762439B_ABST
Patent Text Reader

Abstract

The present invention discloses an image debugging method, device, equipment and storage medium. By receiving the image information of each photographing area; determining the gray values corresponding to the image information of each photographing area; determining the brightness values corresponding to the image information of each photographing area according to the gray values corresponding to the image information of each photographing area to obtain a set of brightness values; determining a target brightness value according to the set of brightness values, and determining the photographing area corresponding to the target brightness value as the target brightness area. By determining the corresponding gray values according to the image information of each photographing area, and then obtaining a set of brightness values, selecting the target brightness value from them, and determining the corresponding target brightness area, it is used for visual detection, ensuring that the brightness of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the image brightness, and improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual inspection, and particularly to an image debugging method, apparatus, device, and storage medium. Background Art

[0002] As an important part of factory automation, the visual inspection system can be used to replace manual inspection of product defects, improve efficiency, and reduce manpower. Image debugging is an important part of the debugging work of the visual inspection system and has an important impact on the function of the visual inspection system. Image debugging generally includes image brightness debugging. The existing image brightness debugging method is manual debugging. During the debugging process, the debugger observes with the naked eye and judges whether the brightness of the image meets the standard based on personal experience, which results in low efficiency and accuracy of image brightness debugging.

[0003] Therefore, it is necessary to propose a solution to improve the efficiency and accuracy of image brightness debugging. Summary of the Invention

[0004] The main purpose of the present invention is to provide an image debugging method, apparatus, device, and storage medium, aiming to improve the efficiency and accuracy of image debugging.

[0005] To achieve the above object, the present invention provides an image debugging method. The image debugging method is applied to a visual inspection system, and the visual inspection system includes a debugging end and a camera. The image debugging method includes:

[0006] Receiving image information of each photographing area;

[0007] Determining the gray value corresponding to the image information of each photographing area;

[0008] Determining the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, and obtaining a brightness value set;

[0009] Determining a target brightness value according to the brightness value set, and determining the photographing area corresponding to the target brightness value as the target brightness area.

[0010] Optionally, the step of determining the target brightness value according to the brightness value set includes:

[0011] Sorting each brightness value in the brightness value set according to a preset rule to obtain a sorting result;

[0012] Determining the optimal brightness value according to the sorting result;

[0013] Determining the target brightness value according to the optimal brightness value.

[0014] Optionally, the step of determining the target brightness value according to the optimal brightness value includes:

[0015] Determine whether the optimal brightness value matches a preset brightness range;

[0016] If the optimal brightness value matches the preset brightness range, determine the optimal brightness value as the target brightness value;

[0017] If the optimal brightness value does not match the preset brightness range, adjust the exposure of the optimal brightness area corresponding to the optimal brightness value so that the brightness value corresponding to the optimal brightness area matches the preset brightness range, and determine the brightness value corresponding to the adjusted optimal brightness area as the target brightness value.

[0018] Optionally, the step of adjusting the exposure of the optimal brightness area corresponding to the optimal brightness value includes:

[0019] Determine an exposure adjustment value for the optimal brightness area corresponding to the optimal brightness value according to the optimal brightness value and the preset brightness range;

[0020] Adjust the exposure of the optimal brightness area corresponding to the optimal brightness value according to the exposure adjustment value.

[0021] Optionally, after the step of determining the target brightness value according to the set of brightness values and determining the photographing area corresponding to the target brightness value as the target brightness area, the image debugging method further includes:

[0022] Receive the image information of the target brightness area;

[0023] Determine the edge pixel transition value corresponding to the image information of the target brightness area;

[0024] Determine the target sharpness of the target brightness area according to the edge pixel transition value.

[0025] Optionally, the step of determining the target sharpness of the target brightness area according to the edge pixel transition value includes:

[0026] Determine the difference between the edge pixel transition value and a preset edge pixel transition value;

[0027] Determine the target sharpness of the target brightness area according to the difference.

[0028] Optionally, the step of determining the target sharpness of the target brightness area according to the difference includes:

[0029] Determine whether the difference matches a preset difference range;

[0030] If the difference matches the preset difference range, obtain the current sharpness of the target brightness area, and determine the current sharpness as the target sharpness corresponding to the target brightness area;

[0031] If the difference does not match the preset difference range, return to execute the step of receiving the image information of the target brightness area.

[0032] In addition, to achieve the above object, the present invention further provides an image debugging device, which includes:

[0033] An image receiving module, configured to receive image information of each photographing area;

[0034] A grayscale determination module, configured to determine the grayscale value corresponding to the image information of each photographing area;

[0035] A brightness determination module, configured to determine the brightness value corresponding to the image information of each photographing area according to the grayscale value corresponding to the image information of each photographing area, to obtain a set of brightness values;

[0036] A region determination module, configured to determine a target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area.

[0037] In addition, to achieve the above object, the present invention further provides an image debugging device, which includes a memory, a processor, and an image debugging program stored on the memory and executable on the processor. When the image debugging program is executed by the processor, the steps of the above-mentioned image debugging method are implemented.

[0038] In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which an image debugging program is stored. When the image debugging program is executed by a processor, the steps of the above-mentioned image debugging method are implemented.

[0039] An image debugging method, device, equipment, and storage medium proposed by an embodiment of the present invention receive image information of each photographing area; determine the gray value corresponding to the image information of each photographing area; determine the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, obtaining a set of brightness values; determine a target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area. By determining the corresponding gray value according to the image information of each photographing area, and then obtaining a set of brightness values, selecting a target brightness value from them, and determining the corresponding target brightness area, it can be used for visual detection, ensuring that the brightness of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the image brightness, and improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the functional modules of the equipment to which the image debugging device of the present invention belongs;

[0041] Figure 2 It is a schematic flowchart of an exemplary embodiment of the image debugging method of the present invention;

[0042] Figure 3 For Figure 2 It is a specific flowchart of step S40 in the embodiment;

[0043] Figure 4 It is the first schematic diagram of the debugging interface in the embodiment of the present invention;

[0044] Figure 5 It is the second schematic diagram of the debugging interface in the embodiment of the present invention;

[0045] Figure 6 It is a schematic flowchart of another exemplary embodiment of the image debugging method of the present invention;

[0046] Figure 7 It is the third schematic diagram of the debugging interface in the embodiment of the present invention.

[0047] The realization, functional features, and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0049] The main solution of the embodiment of the present invention is as follows: by receiving the image information of each photographing area; determining the gray value corresponding to the image information of each photographing area; determining the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, to obtain a set of brightness values; determining a target brightness value according to the set of brightness values, and determining the photographing area corresponding to the target brightness value as the target brightness area. By determining the corresponding gray value according to the image information of each photographing area, and then obtaining a set of brightness values, selecting a target brightness value from them, and determining the corresponding target brightness area, it can be used for visual detection, ensuring that the brightness of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the image brightness, and improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging.

[0050] As an important part of factory automation, the visual inspection system can be used to replace manual inspection of product defects, improve efficiency and reduce labor. Image debugging is an important part of the debugging work of the visual inspection system and has an important impact on the function of the visual inspection system. Image debugging generally includes brightness debugging and clarity debugging of images. The existing image debugging method is manual debugging. During the debugging process, the debugger observes with the naked eye and judges whether the brightness and clarity of the image meet the standards based on personal experience.

[0051] The existing manual debugging method has at least the following defects:

[0052] 1. The image debugging interface is in English, which is difficult for the debugger to read;

[0053] 2. There is no standard debugging, and it completely relies on experience to judge the brightness and clarity of the image. Usually, the angle of the camera bracket needs to be adjusted repeatedly, and the camera bracket does not support precise debugging, so the debugging accuracy is low;

[0054] 3. Each time the camera angle is adjusted, it is necessary to observe the brightness and clarity of the image and judge according to experience, and the camera lens needs to be adjusted repeatedly. The debugging process requires switching scenes back and forth between the camera and the terminal. The image debugging is time-consuming and laborious, and the debugging efficiency is low.

[0055] The present invention provides a solution. Through the software and hardware co-debugging and the guided graphical software interface for standard debugging, the debugging process can be carried out according to standards, and the image debugging process can be completed quickly, accurately and automatically, improving the image debugging accuracy and debugging efficiency.

[0056] Specifically, referring to Figure 1 , Figure 1It is a schematic diagram of the functional modules of the device to which the image debugging device of the present invention belongs. The image debugging device can be a device independent of the terminal device and capable of performing image debugging, and can be carried on the terminal device in the form of hardware or software. The terminal device can be an intelligent mobile terminal with data processing functions such as a mobile phone or a tablet computer, and can also be a fixed terminal device or a server with data processing functions, etc.

[0057] In this embodiment, the device to which the image debugging device belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.

[0058] The memory 130 stores an operating system and an image debugging program. The image debugging device can store information such as the image information of each photographing area, the gray value corresponding to the image information, the brightness value corresponding to the image information, the target brightness value, and the target brightness area in the memory 130; the output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, a Bluetooth module, etc., and communicates with external devices or servers through the communication module 140.

[0059] Among them, when the image debugging program in the memory 130 is executed by the processor, the following steps are implemented:

[0060] Receive the image information of each photographing area;

[0061] Determine the gray value corresponding to the image information of each photographing area;

[0062] Determine the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, and obtain a set of brightness values;

[0063] Determine the target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area.

[0064] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are also implemented:

[0065] Sort each brightness value in the set of brightness values according to a preset rule to obtain a sorting result;

[0066] Determine the optimal brightness value according to the sorting result;

[0067] Determine the target brightness value according to the optimal brightness value.

[0068] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are also implemented:

[0069] Judge whether the optimal brightness value matches a preset brightness interval;

[0070] If the optimal brightness value matches the preset brightness range, determine the optimal brightness value as the target brightness value;

[0071] If the optimal brightness value does not match the preset brightness range, adjust the exposure of the optimal brightness area corresponding to the optimal brightness value so that the brightness value corresponding to the optimal brightness area matches the preset brightness range, and determine the brightness value corresponding to the adjusted optimal brightness area as the target brightness value.

[0072] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are further implemented:

[0073] Determine an exposure adjustment value for the optimal brightness area corresponding to the optimal brightness value according to the optimal brightness value and the preset brightness range;

[0074] Adjust the exposure of the optimal brightness area corresponding to the optimal brightness value according to the exposure adjustment value.

[0075] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are further implemented:

[0076] Receive the image information of the target brightness area;

[0077] Determine the edge pixel transition value corresponding to the image information of the target brightness area;

[0078] Determine the target sharpness of the target brightness area according to the edge pixel transition value.

[0079] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are further implemented:

[0080] Determine the difference between the edge pixel transition value and the preset edge pixel transition value;

[0081] Determine the target sharpness of the target brightness area according to the difference.

[0082] Further, when the image debugging program in the memory 130 is executed by the processor, the following steps are further implemented:

[0083] Judge whether the difference matches the preset difference range;

[0084] If the difference matches the preset difference range, obtain the current sharpness of the target brightness area, and determine the current sharpness as the target sharpness corresponding to the target brightness area;

[0085] If the difference does not match the preset difference range, return to execute the step of receiving the image information of the target brightness area.

[0086] In this embodiment, through the above solution, specifically, by receiving the image information of each photographing area; determining the gray value corresponding to the image information of each photographing area; determining the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, obtaining a set of brightness values; determining the target brightness value according to the set of brightness values, and determining the photographing area corresponding to the target brightness value as the target brightness area. Determine the corresponding gray value according to the image information of each photographing area, and then obtain a set of brightness values, select the target brightness value from them, and determine the corresponding target brightness area, so as to be used for visual detection, ensure that the brightness of the debugged image can meet the requirements of visual detection, get rid of the debugging method that completely relies on experience to judge the image brightness, and improve the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging.

[0087] Based on the above device architecture but not limited to the above architecture, an embodiment of the method of the present invention is proposed.

[0088] The execution subject of the method in this embodiment can be an image debugging device or an image debugging device, etc. In this embodiment, an image debugging device is taken as an example.

[0089] Refer to Figure 2 , Figure 2 is a schematic flowchart of an exemplary embodiment of the image debugging method of the present invention. The image debugging method includes:

[0090] Step S10, receiving the image information of each photographing area;

[0091] In the embodiment of the present invention, the image debugging method is applied to the debugging end of the visual detection system. The visual detection system further includes a camera. Among them, the debugging end can be a debugging interface provided by a debugging program installed in a terminal device (such as a computer). In this embodiment, a computer is taken as an example. First, a communication connection needs to be established between the computer and the camera. For example, the computer is connected to the camera through a network cable, and the two can also communicate through Bluetooth connection. The debugger logs in to the debugging software to enter the image debugging interface.

[0092] Optionally, the image debugging interface in this embodiment is a full Chinese interface to facilitate the debugger to read and operate smoothly.

[0093] Optionally, after entering the debugging interface, the debugger can fine-tune the camera bracket knob to enable the camera to comprehensively obtain the image information of each photographing area and transmit the image information to the computer in real time, so that the computer receives the image information of each photographing area and displays it on the debugging interface.

[0094] Step S20, determine the gray values corresponding to the image information of each photographing area;

[0095] Optionally, the computer receives the image information of each photographing area transmitted by the camera, and obtains the gray values corresponding to the image information through software for calculating the brightness values corresponding to the image information of each photographing area.

[0096] Step S30, determine the brightness values corresponding to the image information of each photographing area according to the gray values corresponding to the image information of each photographing area, and obtain a set of brightness values;

[0097] Furthermore, after obtaining the gray values corresponding to the image information of each photographing area through software, the brightness values corresponding to the image information of the photographing area can be calculated in sequence according to the gray values, and the brightness values are stored to obtain a set of brightness values.

[0098] Step S40, determine the target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area.

[0099] Even further, after obtaining the set of brightness values, select the target brightness value from the set of brightness values according to a preset rule, and then select the photographing area corresponding to the target brightness value as the target brightness area. Specifically, sort all the brightness values in the set of brightness values, for example, sort them from high to low according to the brightness values to obtain the optimal brightness value, and then the target brightness area corresponding to the optimal brightness value can be further obtained.

[0100] Optionally, fine-tune the camera support knob again, and at the same time calculate the brightness value of the area image obtained in real time. When the highest brightness value is reached, give a prompt through the software interface to confirm the target brightness area, and then keep the camera angle unchanged to further determine the target clarity.

[0101] Optionally, after determining the target brightness area, obtain the image information of the target brightness area, calculate the corresponding gray value, and then obtain the brightness value of the target brightness area, that is, the optimal brightness value. Determine whether the optimal brightness value reaches the threshold set by the software. If the optimal brightness value is not within the preset range, adjust the optical parameters of the camera to adjust the optimal brightness value until it reaches the preset range, and then the target brightness value can be obtained. For example, the optimal brightness value can be adjusted by adjusting the exposure of the camera.

[0102] Optionally, after correcting the optical parameters of the camera by adjusting the optimal brightness value of the target brightness area, after obtaining the target optical parameters, keep the camera angle and optical parameters unchanged, that is, based on the determined target brightness area and target brightness value, adjust the camera lens and send the image information of the target brightness area to the computer in real time.

[0103] Optionally, after the computer receives the image information sent by the camera, it calculates the edge pixel transition value of the image and compares it with a preset standard edge pixel transition value. When the difference between the two reaches the preset range, the image clarity debugging is completed, that is, the target clarity is obtained. Based on the camera lens parameters corresponding to the target clarity, visual detection can be further performed.

[0104] In this embodiment, by receiving the image information of each photographing area; determining the gray value corresponding to the image information of each photographing area; determining the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, a brightness value set is obtained; determining the target brightness value according to the brightness value set, and determining the photographing area corresponding to the target brightness value as the target brightness area. Determining the corresponding gray value according to the image information of each photographing area, and then obtaining a brightness value set, selecting the target brightness value from it, and determining the corresponding target brightness area, so as to be used for visual detection, ensuring that the brightness of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the image brightness, and improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging.

[0105] Refer to Figure 3 , Figure 3 For Figure 2 The specific flowchart of step S40 in the embodiment. This embodiment is based on the above Figure 2 shown embodiment. In this embodiment, the step of determining the target brightness value according to the brightness value set in the above step S40 includes:

[0106] Step S401, sorting each brightness value in the brightness value set according to a preset rule to obtain a sorting result;

[0107] Specifically, after obtaining the gray value corresponding to the image information of each photographing area through software, calculate the brightness value corresponding to the image information of the photographing area according to the gray value in turn, and store the brightness value. After obtaining the brightness value set, the brightness values in the brightness value set can be sorted according to a preset rule, which can be in ascending order of brightness value or in descending order of brightness value to obtain a sorting result.

[0108] Step S402, determining the best brightness value according to the sorting result;

[0109] Furthermore, after obtaining the sorting result according to the preset rule, the highest brightness value can be selected as the best brightness value, and then the target brightness value can be further determined by judging whether the best brightness value meets the preset brightness interval.

[0110] Step S403: Determine the target brightness value according to the optimal brightness value, specifically including:

[0111] Judge whether the optimal brightness value matches a preset brightness range;

[0112] If the optimal brightness value matches the preset brightness range, determine the optimal brightness value as the target brightness value;

[0113] If the optimal brightness value does not match the preset brightness range, adjust the exposure of the optimal brightness area corresponding to the optimal brightness value so that the brightness value corresponding to the optimal brightness area matches the preset brightness range, and determine the brightness value corresponding to the adjusted optimal brightness area as the target brightness value.

[0114] Determine the exposure adjustment value of the optimal brightness area corresponding to the optimal brightness value according to the optimal brightness value and the preset brightness range;

[0115] Adjust the exposure of the optimal brightness area corresponding to the optimal brightness value according to the exposure adjustment value.

[0116] Refer to Figure 4 , Figure 4 which is the first schematic diagram of the debugging interface in the embodiment of the present invention. As Figure 4 shown, fine-tune the camera support knob again, and at the same time calculate the brightness value of the region image obtained in real time. When the highest brightness value is reached, a prompt is given through the software interface to confirm the target brightness area, complete the angle adjustment of the camera, and then keep the camera angle unchanged to further determine the optical parameters corresponding to the target brightness area.

[0117] Refer to Figure 5 , Figure 5 which is the second schematic diagram of the debugging interface in the embodiment of the present invention. As Figure 5 shown, optionally, after determining the target brightness area, obtain the image information of the target brightness area, calculate the gray value corresponding to the target brightness area, and then obtain the brightness value corresponding to the target brightness area, that is, the optimal brightness value. Judge whether the optimal brightness value reaches the threshold set by the software, that is, the preset brightness range. If the optimal brightness value is not within the preset brightness range, adjust the optical parameters of the camera to adjust the brightness value of the target brightness area image until the preset brightness range is reached.

[0118] For example, if the set preset brightness range is 70±10, and the optimal brightness value is 55, the optimal brightness value can be increased to within the preset brightness range by extending the exposure time of the camera; if the brightness value of the target area image is 85, the optimal brightness value can be reduced to within the preset brightness range by shortening the exposure time of the camera. Herein, the preset brightness range can be adjusted according to actual needs, and this embodiment does not limit specific thresholds.

[0119] In this embodiment, through the above solution, specifically, each brightness value in the brightness value set is sorted according to a preset rule to obtain a sorting result; the optimal brightness value is determined according to the sorting result; and the target brightness value is determined according to the optimal brightness value. By selecting the optimal brightness value from the brightness value set and then determining the corresponding target brightness value according to the optimal brightness value, optical parameter correction is performed in this process to obtain a brightness area and optical parameters that meet the visual detection requirements.

[0120] Refer to Figure 6 , Figure 6 is a schematic flowchart of another exemplary embodiment of the image debugging method of the present invention. Based on the above Figure 2 illustrated embodiment, in this embodiment, after step S40 determines the target brightness value according to the brightness value set and determines the photographing area corresponding to the target brightness value as the target brightness area, the image debugging method further includes:

[0121] Step S50, receiving the image information of the target brightness area;

[0122] Step S60, determining the edge pixel transition value corresponding to the image information of the target brightness area;

[0123] Step S70, determining the target clarity of the target brightness area according to the edge pixel transition value, specifically including:

[0124] Determining the difference between the edge pixel transition value and the preset edge pixel transition value;

[0125] Determining the target clarity of the target brightness area according to the difference, including:

[0126] Judging whether the difference matches the preset difference range;

[0127] If the difference matches the preset difference range, obtaining the current clarity of the target brightness area and determining the current clarity as the target clarity corresponding to the target brightness area;

[0128] If the difference does not match the preset difference range, return to execute the step of receiving the image information of the target brightness area.

[0129] Specifically, referring to Figure 7 , Figure 7 , which is the third schematic diagram of the debugging interface in the embodiment of the present invention. As Figure 7 shown, after adjusting the target brightness value of the target brightness area to correct the optical parameters of the camera, the camera angle and optical parameters can be kept unchanged. That is, based on the determined target brightness area and target brightness value, the lens of the camera is adjusted to send the image information of the target brightness area to the computer in real time.

[0130] Optionally, after the computer receives the image information of the target brightness area sent by the camera, it calculates the edge pixel transition value of the image. The image is composed of pixels. The clearer the picture, the smaller the pixel transition value between the edge of the photographed object and the background. Conversely, the more blurred the image, the larger the transition value. The calculated edge pixel transition value is compared with the preset standard edge pixel transition value to obtain the difference between the two. When the difference is larger, the misalignment of the two boxes is larger, and vice versa. When the difference between the two reaches the preset difference interval and the boxes completely overlap, the image clarity debugging is completed, that is, the target clarity is obtained. At this time, the corresponding lens parameters of the camera can be used as the target lens parameters, and then the camera can perform visual detection based on the determined target brightness area, target brightness value and target lens parameters.

[0131] In this embodiment, through the above solution, specifically by receiving the image information of the target brightness area; determining the edge pixel transition value corresponding to the image information of the target brightness area; and determining the target clarity of the target brightness area according to the edge pixel transition value. It is ensured that the brightness and clarity of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the brightness and clarity of the image, improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging and clarity debugging.

[0132] In addition, the embodiment of the present invention also proposes an image debugging device, and the image debugging device includes:

[0133] An image receiving module, configured to receive the image information of each photographing area;

[0134] A grayscale determination module, configured to determine the grayscale value corresponding to the image information of each photographing area;

[0135] A brightness determination module, configured to determine the brightness value corresponding to the image information of each photographing area according to the grayscale value corresponding to the image information of each photographing area, and obtain a brightness value set;

[0136] A region determination module, configured to determine the target brightness value according to the brightness value set, and determine the photographing area corresponding to the target brightness value as the target brightness area.

[0137] For the principle and implementation process of image debugging in this embodiment, please refer to the above-mentioned embodiments, which will not be elaborated here.

[0138] In addition, an embodiment of the present invention further provides an image debugging device, which includes a memory, a processor, and an image debugging program stored on the memory and executable on the processor. When the image debugging program is executed by the processor, the steps of the above-mentioned image debugging method are implemented.

[0139] Since all the technical solutions of the foregoing embodiments are adopted when the image debugging program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, which will not be elaborated here one by one.

[0140] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an image debugging program is stored. When the image debugging program is executed by the processor, the steps of the above-mentioned image debugging method are implemented.

[0141] Since all the technical solutions of the foregoing embodiments are adopted when the image debugging program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, which will not be elaborated here one by one.

[0142] Compared with the prior art, the image debugging method, device, equipment, and storage medium proposed in the embodiments of the present invention receive the image information of each photographing area; determine the gray value corresponding to the image information of each photographing area; determine the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, and obtain a set of brightness values; determine a target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area. By determining the corresponding gray value according to the image information of each photographing area, and then obtaining a set of brightness values, selecting the target brightness value from it, and determining the corresponding target brightness area, it can be used for visual detection, ensuring that the brightness of the debugged image can meet the requirements of visual detection, getting rid of the debugging method that completely relies on experience to judge the image brightness, and improving the image debugging accuracy; at the same time, there is no need to switch scenes back and forth during the debugging process, improving the efficiency of image brightness debugging.

[0143] It should be noted that in this text, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or system. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or system comprising that element.

[0144] The serial numbers of the embodiments of the present application above are for description only and do not represent the superiority or inferiority of the embodiments.

[0145] From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that makes a contribution to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of the present application.

[0146] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structural or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. An image debugging method, characterized in that, The described image debugging method includes the following steps: Receiving image information of each photographing area; Determining the gray value corresponding to the image information of each photographing area; Determining the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, obtaining a set of brightness values; Determining a target brightness value according to the set of brightness values, and determining the photographing area corresponding to the target brightness value as the target brightness area, where the target brightness value is determined according to the sorting result corresponding to the set of brightness values; Receiving the image information of the target brightness area; Determining the edge pixel transition value corresponding to the image information of the target brightness area; Determining the target clarity of the target brightness area according to the edge pixel transition value, including: determining the difference between the edge pixel transition value and a preset edge pixel transition value; determining whether the difference matches a preset difference interval; if the difference matches the preset difference interval, obtaining the current clarity of the target brightness area, and determining the current clarity as the target clarity corresponding to the target brightness area; if the difference does not match the preset difference interval, returning to execute the step of receiving the image information of the target brightness area.

2. The image debugging method according to claim 1, wherein The step of determining the target brightness value according to the set of brightness values includes: Sorting each brightness value in the set of brightness values according to a preset rule, obtaining a sorting result; Determining the best brightness value according to the sorting result; Determining the target brightness value according to the best brightness value.

3. The image debugging method according to claim 2, wherein The step of determining the target brightness value according to the best brightness value includes: Determining whether the best brightness value matches a preset brightness interval; If the best brightness value matches the preset brightness interval, determining the best brightness value as the target brightness value; If the best brightness value does not match the preset brightness interval, adjusting the exposure of the best brightness area corresponding to the best brightness value so that the brightness value corresponding to the best brightness area matches the preset brightness interval, and determining the brightness value corresponding to the adjusted best brightness area as the target brightness value.

4. The image debugging method according to claim 3, characterized in that, The step of adjusting the exposure of the best brightness area corresponding to the best brightness value includes: Determining an exposure adjustment value of the best brightness area corresponding to the best brightness value according to the best brightness value and the preset brightness interval; Adjusting the exposure of the best brightness area corresponding to the best brightness value according to the exposure adjustment value.

5. An image debugging device, characterized in that, The image debugging device includes: An image receiving module, configured to receive image information of each photographing area; A gray determination module, configured to determine the gray value corresponding to the image information of each photographing area; A brightness determination module, configured to determine the brightness value corresponding to the image information of each photographing area according to the gray value corresponding to the image information of each photographing area, obtaining a set of brightness values; An area determination module is configured to determine a target brightness value according to the set of brightness values, and determine the photographing area corresponding to the target brightness value as the target brightness area, where the target brightness value is determined according to the sorting result corresponding to the set of brightness values; receive the image information of the target brightness area; determine the edge pixel transition value corresponding to the image information of the target brightness area; determine the target sharpness of the target brightness area according to the edge pixel transition value, including: determining the difference between the edge pixel transition value and a preset edge pixel transition value; determining whether the difference matches a preset difference interval; if the difference matches the preset difference interval, obtaining the current sharpness of the target brightness area and determining the current sharpness as the target sharpness corresponding to the target brightness area; if the difference does not match the preset difference interval, returning to execute receiving the image information of the target brightness area.

6. An image debugging device, characterized in that, The image debugging device includes a memory, a processor, and an image debugging program stored on the memory and executable on the processor. When the image debugging program is executed by the processor, the steps of the image debugging method according to any one of claims 1-4 are implemented.

7. A computer-readable storage medium, characterized in that, An image debugging program is stored on the computer-readable storage medium. When the image debugging program is executed by a processor, the steps of the image debugging method according to any one of claims 1-4 are implemented.

Citation Information

Patent Citations

  • Automatic exposure adjusting method and system

    CN112312037A

  • PCB (Printed Circuit Board) detection device with marking function, marking method, equipment and medium

    CN115165925A