CN114283271A - Shooting illumination adjusting method and shooting illumination adjusting system - Google Patents

Shooting illumination adjusting method and shooting illumination adjusting system Download PDF

Info

Publication number
CN114283271A
CN114283271A CN202111562940.6A CN202111562940A CN114283271A CN 114283271 A CN114283271 A CN 114283271A CN 202111562940 A CN202111562940 A CN 202111562940A CN 114283271 A CN114283271 A CN 114283271A
Authority
CN
China
Prior art keywords
light source
auxiliary light
sample image
brightness
shooting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111562940.6A
Other languages
Chinese (zh)
Inventor
刘飞香
马金琦
崔建平
戴熙礼
李鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway Construction Heavy Industry Group Co Ltd
Original Assignee
China Railway Construction Heavy Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Railway Construction Heavy Industry Group Co Ltd filed Critical China Railway Construction Heavy Industry Group Co Ltd
Priority to CN202111562940.6A priority Critical patent/CN114283271A/en
Publication of CN114283271A publication Critical patent/CN114283271A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

The invention discloses a shooting illumination adjusting method, which comprises the steps that a photosensitive sensor acquires ambient light information to obtain information such as ambient light brightness and the like; the auxiliary light source is adjusted to a preset value by combining with the ambient light information, and the shooting device shoots and samples the workpiece to be identified to obtain a sample image; comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range; if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source; repeating the above processes and judging until the judgment result is negative, wherein the judgment result shows that clear shot images can be obtained by combining the illumination of the auxiliary light source, so that the workpieces can be shot and detected in subsequent batches, the interference of external factors such as ambient light and the like on the shooting quality is reduced, and clear and stable images are obtained; according to the production condition, the light source can be adjusted in a self-adaptive mode, so that the light source is always kept in an optimal state in the production process. The invention also provides a shooting illumination adjusting system, which can realize the technical effect achieved by the method.

Description

Shooting illumination adjusting method and shooting illumination adjusting system
Technical Field
The invention relates to the technical field of image recognition, in particular to a shooting illumination adjusting method. In addition, the invention also relates to a shooting illumination adjusting system.
Background
With the development of machine vision, OCR (Optical Character Recognition) is widely used in the industrial field to trace the destination of a workpiece by Character code Recognition of the surface of the workpiece. Because the reading speed is high and the accuracy is high, the intellectualization of the production process is effectively promoted.
For workpieces with different surface qualities, the ambient light is greatly influenced by time and weather, so that the illumination brightness of the surface of the workpiece is insufficient, or the surface is locally overexposed due to reflection of the ambient light and cannot be clearly identified, and the uncertainty of the ambient light has great influence on light supplement of a light source.
For those skilled in the art, how to overcome the interference of ambient light to the shooting and recognition of the workpiece is a technical problem to be solved at present.
Disclosure of Invention
The invention provides a shooting illumination adjusting method and a shooting illumination adjusting system, which can apply auxiliary illumination by combining ambient light so as to obtain a clear image and contribute to improving the accuracy of image identification, and the specific scheme is as follows:
a method for adjusting the illumination of a camera includes
Moving the workpiece to be identified to an identification station;
acquiring ambient light information by a photosensitive sensor;
the brightness and the irradiation direction of the auxiliary light source are automatically adjusted by combining the ambient light information;
the method comprises the following steps that a shooting device shoots and samples a workpiece to be identified to obtain a sample image;
comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range;
if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source;
and repeating the above processes and judging until the judgment result is negative.
Optionally, the acquiring a sample image includes:
and sequentially carrying out gray level transformation, binarization, region communication, region segmentation, affine transformation and identification display on the image.
Optionally, the comparing the sample image with a database standard image comprises:
the gray contrast is performed for each pixel of the identification area under a single channel.
Optionally, the illumination orientation comprises a vertical height and an illumination angle.
The present invention also provides a photographing illumination adjusting system, including:
a photographing device for acquiring an image;
the auxiliary light source is used for applying the auxiliary light source to the workpiece to be identified, and the brightness and/or the irradiation direction can be adjusted;
the photosensitive sensor is used for acquiring ambient light information;
the control system can adjust the brightness and the irradiation direction of the auxiliary light source by combining the ambient light information; acquiring a sample image shot by the shooting device, comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range; if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source; and repeating the above processes and judging until the judgment result is negative.
Optionally, the auxiliary light source surrounds the workpiece to be identified on at least three sides.
Optionally, the auxiliary light sources include three, and each auxiliary light source is arc-shaped or linear.
Optionally, each of the auxiliary light sources is capable of tilting.
Optionally, the support of the auxiliary light source is slidably mounted on the support frame and can move vertically relative to the support frame.
Optionally, the shooting device is an area-array camera; the auxiliary light source comprises LED lamp beads arranged in an array.
The core of the invention is to provide a shooting illumination adjusting method, which is characterized in that a workpiece to be identified is moved to an identification station; obtaining ambient light information by a photosensitive sensor to obtain information such as ambient light brightness and the like; adjusting the brightness and the irradiation direction of the auxiliary light source by combining the ambient light information, pre-adjusting the auxiliary light source to a preset value by using the detected ambient light information, and shooting and sampling the workpiece to be identified by a shooting device to obtain a sample image; comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range; if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source; the above processes are repeated and judged until the judgment result is negative, and then the clear shot image can be obtained by combining the illumination of the auxiliary light source, the interference of external factors such as ambient light and the like on the shooting quality is reduced, and the clear and stable imaging effect is obtained. According to the production condition, the light source can be adjusted in a self-adaptive mode, so that the light source is always kept in an optimal state in the production process. The invention also provides a shooting illumination adjusting system which can achieve the technical effect achieved by the method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a photographing illumination adjusting method according to the present invention;
FIG. 2 is a schematic structural diagram of a photographing illumination adjusting apparatus according to the present invention;
fig. 3 is a schematic structural diagram of an arc-shaped auxiliary light source.
The figure includes:
the device comprises a shooting device 1, an auxiliary light source 2, a photosensitive sensor 3 and a support frame 4.
Detailed Description
The core of the invention is to provide a shooting illumination adjusting method and a shooting illumination adjusting system, which can apply auxiliary illumination in combination with ambient light, thereby obtaining clear images and being beneficial to improving the accuracy of image recognition.
In order to make those skilled in the art better understand the technical solution of the present invention, the photographing illumination adjusting method and the photographing illumination adjusting system of the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a photographing illumination adjusting method according to the present invention; the shooting illumination adjusting method comprises the following steps:
s1, moving the workpiece to be identified to an identification station; the shooting device is right opposite to the identification station, and the shooting device can conveniently acquire information on the workpiece.
S2, acquiring ambient light information by the photosensitive sensor; the photosensitive sensor can detect information of ambient light, including illumination intensity of the ambient light and the like. The photosensitive sensor is arranged back to the auxiliary light source, so that the interference of the auxiliary light source is avoided.
S3, automatically adjusting the brightness of the auxiliary light source by combining the ambient light information; for the condition of dark ambient light, the brightness of the auxiliary light source is slightly higher, and light is supplemented, so that the mark on the workpiece is identified more clearly; if the intensity of the ambient light is high, usually only a small luminance aid is needed or no aid is needed; if the light is too strong to generate the overexposure phenomenon, the overexposure can be eliminated by manual intervention shielding and other methods.
S4, shooting and sampling the workpiece to be recognized by a shooting device to obtain a sample image; the auxiliary light applied according to the ambient light information needs to be actually checked by means of photographing.
S5, comparing the sample image with the database standard image, and judging whether the sample image exceeds the deviation range; .
If so, indicating that the sample image has a larger deviation from the database standard image, indicating that the light supplement effect of the auxiliary light source is insufficient at the moment, the light correction effect cannot be realized, and the illumination condition of the auxiliary light source needs to be changed to adjust the brightness and/or the illumination direction of the auxiliary light source; the brightness or the irradiation direction of the light source can be independently adjusted, the brightness and the irradiation direction of the light source can also be adjusted at the same time, and the deficiency of the sample image is made up through the adjustment of the brightness and the adjustment of the irradiation angle. And if the sample image still exceeds the deviation range after the auxiliary light is turned off, an alarm is given.
Repeating the above processes and judging until the judgment result is negative; after the adjustment, shooting and checking are carried out again, the shooting effect after correction can be repeatedly detected, if the conditions are met, the subsequent normal shooting process can be carried out, the images of the workpieces with the same specification are shot, and the accuracy of each shooting and detecting can be ensured; if the condition is still not met, the adjustment may be continued until the condition is met.
The shooting illumination adjusting method provided by the invention combines the ambient light information, applies the auxiliary light source for irradiation on the workpiece, utilizes the irradiation of the auxiliary light source to make up the deficiency of ambient light, improves the quality of the image obtained by shooting, and improves the detection accuracy.
On the basis of the above scheme, the step S4 of the present invention of acquiring a sample image includes the following processes:
and sequentially carrying out gray level transformation, binarization, region communication, region segmentation, affine transformation and identification display on the image. When the surface quality of the workpiece is the same, the light source is adjusted to a fixed position and fixed brightness, so that the identification information can be effectively distinguished from the surrounding background, and the identification area can be conveniently identified. In order to enable the workpiece with large surface state contrast to be successfully identified and reduce the development difficulty of a subsequent algorithm, the image is processed by the identification algorithm under the self-adaptive brightness adjustment.
The step S5 of comparing the sample image with the database standard image includes the following steps: the gray contrast is performed for each pixel of the identification area under a single channel. And the brightness and the irradiation direction of the auxiliary light source are obtained by calculation after the feedback value of the photosensitive sensor and the brightness of the single-channel image are fused.
The single-channel image brightness is obtained after being processed by a controller algorithm. And acquiring and storing image information through a camera, analyzing the gray scale of each pixel according to the image information, and converting the gray scale information of the pixels into the brightness of the light source.
The irradiation direction adjustment comprises two dimensions, namely vertical height and an irradiation angle; namely, the vertical height between the auxiliary light source and the workpiece and the irradiation angle of the auxiliary light source are adjusted.
The invention also provides a shooting illumination adjusting system, and FIG. 2 is a schematic structural diagram of the device, wherein the reference number A represents a workpiece, and the upper surface of the workpiece is provided with numbering information; the system comprises a shooting device 1, an auxiliary light source 2, a photosensitive sensor 3, a control system and the like, wherein the shooting device 1 is used for acquiring images, namely shooting a workpiece, and the shooting device 1 is generally positioned right above the workpiece.
The auxiliary light source 2 is used for applying an auxiliary light source to the workpiece to be identified, and can adjust brightness and/or irradiation direction, that is, the auxiliary light source 2 is not fixed, and can adjust brightness and irradiation direction of light irradiation so as to apply different forms of auxiliary light to the workpiece.
The photosensitive sensor 3 is used for acquiring ambient light information, and the detection direction of the photosensitive sensor faces away from the auxiliary light source, so that the interference of the auxiliary light source 2 on the photosensitive sensor is reduced.
The control system has the functions of receiving information, processing operation, sending control commands and the like, and can adjust the brightness and the irradiation direction of the auxiliary light source 2 by combining the ambient light information; acquiring a sample image shot by the shooting device 1, comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range; if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source; and repeating the above processes and judging until the judgment result is negative.
The control system performs operation processing to control the process and principle of the shooting illumination adjusting method to adjust, and realizes control and adjustment of the auxiliary light source.
Specifically, the auxiliary light source 2 of the present invention surrounds the workpiece to be identified on at least three sides, that is, the auxiliary light source 2 surrounds the workpiece in a U shape, and the auxiliary light source 2 is located above the workpiece to be identified, and emits light from different directions, respectively, and provides illumination from different angles.
Preferably, the auxiliary light sources 2 of the present invention include three, each of the auxiliary light sources 2 is arc-shaped or linear, and the three auxiliary light sources shown in fig. 2 are respectively linear; as shown in fig. 3, which is a schematic structural diagram of the arc-shaped auxiliary light source, the three arc-shaped auxiliary light sources surround to form a semi-annular structure, and irradiate annular light to the workpiece.
Each of the auxiliary light sources 2 is capable of pitching, as shown in fig. 2, wherein a double-headed arc arrow indicates a direction of a swing adjustment of each of the auxiliary light sources 2, each of the auxiliary light sources 2 individually adjusts a pitch angle, and the three auxiliary light sources 2 are engaged with each other.
The support of the auxiliary light source 2 is slidably mounted on the support frame 4, and can vertically move relative to the support frame 4, so that the vertical height between the auxiliary light source 2 and a workpiece is changed, and the three auxiliary light sources 2 are synchronously vertically adjusted.
The shooting device 1 is an area-array camera; the auxiliary light source 2 includes LED lamp beads arranged in an array, and as shown in fig. 3, it is shown that the auxiliary light source 2 is formed by arranging a plurality of LED lamp beads.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A shooting illumination adjustment method is characterized by comprising
Moving the workpiece to be identified to an identification station;
acquiring ambient light information by a photosensitive sensor;
the brightness and the irradiation direction of the auxiliary light source are automatically adjusted by combining the ambient light information;
the method comprises the following steps that a shooting device shoots and samples a workpiece to be identified to obtain a sample image;
comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range;
if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source;
and repeating the above processes and judging until the judgment result is negative.
2. The photographic light adjustment method of claim 1, wherein the acquiring a sample image comprises:
and sequentially carrying out gray level transformation, binarization, region communication, region segmentation, affine transformation and identification display on the image.
3. The photographic light adjustment method of claim 2, wherein the comparing the sample image to a database standard image comprises:
the gray contrast is performed for each pixel of the identification area under a single channel.
4. The photographing illumination adjustment method according to claim 3, wherein the illumination orientation includes a vertical height and an illumination angle.
5. A photographing illumination adjustment system, comprising:
a camera (1) for acquiring an image;
the auxiliary light source (2) is used for applying the auxiliary light source to the workpiece to be identified, and the brightness and/or the irradiation direction can be adjusted;
a light sensitive sensor (3) for acquiring ambient light information;
the control system can adjust the brightness and the irradiation direction of the auxiliary light source (2) by combining the ambient light information; acquiring a sample image shot by the shooting device (1), comparing the sample image with a database standard image, and judging whether the sample image exceeds a deviation range; if so, adjusting the brightness and/or the irradiation direction of the auxiliary light source; and repeating the above processes and judging until the judgment result is negative.
6. The photographic light adjustment system according to claim 5, characterized in that the auxiliary light source (2) surrounds the workpiece to be identified on at least three sides.
7. Photographic light adjustment system according to claim 6, characterized in that the auxiliary light sources (2) comprise three, each auxiliary light source (2) being arc-shaped or linear.
8. Photographic light adjustment system according to claim 7, characterized in that each of the auxiliary light sources (2) is tiltable.
9. Photographic light adjustment system according to claim 8, characterized in that the support of the auxiliary light source (2) is slidably mounted to a support frame (4) vertically movable with respect to the support frame (4).
10. Photographic light adjustment system according to claim 9, characterized in that the photographic device (1) is an area-array camera; the auxiliary light source (2) comprises LED lamp beads arranged in an array.
CN202111562940.6A 2021-12-20 2021-12-20 Shooting illumination adjusting method and shooting illumination adjusting system Pending CN114283271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111562940.6A CN114283271A (en) 2021-12-20 2021-12-20 Shooting illumination adjusting method and shooting illumination adjusting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111562940.6A CN114283271A (en) 2021-12-20 2021-12-20 Shooting illumination adjusting method and shooting illumination adjusting system

Publications (1)

Publication Number Publication Date
CN114283271A true CN114283271A (en) 2022-04-05

Family

ID=80873161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111562940.6A Pending CN114283271A (en) 2021-12-20 2021-12-20 Shooting illumination adjusting method and shooting illumination adjusting system

Country Status (1)

Country Link
CN (1) CN114283271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615484A (en) * 2024-01-24 2024-02-27 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117615484A (en) * 2024-01-24 2024-02-27 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium
CN117615484B (en) * 2024-01-24 2024-05-03 金品计算机科技(天津)有限公司 AI-based visual detection light source control method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN108760765B (en) Side-view camera shooting-based surface damage defect detection device and method
JP5588331B2 (en) 3D shape recognition device
US20090067701A1 (en) System and method for detecting blemishes on surface of object
CN113418933B (en) Flying shooting visual imaging detection system and method for detecting large-size object
JPH07260701A (en) Recognition method of area of inspection
CN114283271A (en) Shooting illumination adjusting method and shooting illumination adjusting system
JP2009250844A (en) Three-dimensional shape measurement method and three-dimensional shape measurement apparatus
CN111638222A (en) Defect detection system and method for optical filter
JP2000193601A (en) Surface defect inspecting device
CN109982063B (en) AA method and device of TOF depth camera
CN104122264A (en) Appearance flaw detection system and method
CN110646441A (en) PCB defect detection system and method based on FPGA
CN114113116A (en) Accurate detection process method for micro-defects on surface of large-diameter element
KR101522312B1 (en) Inspection device for pcb product and inspecting method using the same
CN115471482B (en) Method for detecting defects of inner wall of small-caliber container based on computer vision
CN116433604A (en) Chip identification method and pickup system
KR101870088B1 (en) Camera module pre-active aligning method
KR20230063933A (en) Light resettable vision machine device and product test method thereof
CN209767677U (en) Automatic camera of focusing of chip
CN212031322U (en) Panel material edge defect detecting system
CN106980226B (en) Mask inspection device and method thereof
KR102069061B1 (en) System for taking image of flexible oled cell
CN113900270A (en) Precision positioning equipment and automatic optical axis precision positioning method
CN110793974A (en) Panel material edge defect detecting system
CN111464723B (en) Method for expanding illumination intensity range and hand-eye system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination