CN114397301A - Method and device for configuring light source, storage medium and detection equipment - Google Patents

Method and device for configuring light source, storage medium and detection equipment Download PDF

Info

Publication number
CN114397301A
CN114397301A CN202111565359.XA CN202111565359A CN114397301A CN 114397301 A CN114397301 A CN 114397301A CN 202111565359 A CN202111565359 A CN 202111565359A CN 114397301 A CN114397301 A CN 114397301A
Authority
CN
China
Prior art keywords
light source
configuring
control mechanism
configuration
input
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
CN202111565359.XA
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.)
Suzhou Mega Technology Co Ltd
Original Assignee
Suzhou Mega Technology 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 Suzhou Mega Technology Co Ltd filed Critical Suzhou Mega Technology Co Ltd
Priority to CN202111565359.XA priority Critical patent/CN114397301A/en
Publication of CN114397301A publication Critical patent/CN114397301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8806Specially adapted optical and illumination features
    • G01N2021/8835Adjustable illumination, e.g. software adjustable screen

Abstract

The application discloses a method and a device for configuring a light source, a storage medium and a detection device. The method comprises the following steps: acquiring an input light source configuration instruction; configuring working parameters of the light source according to the light source configuration instruction; storing a parameter configuration result obtained by configuring the working parameters of the light source; and sending the parameter configuration result to the light source control mechanism. According to the method and the device, the light source is subjected to parameter configuration, so that the light source can be polished according to the configured parameters, defects of different surfaces of the device can be highlighted, and the result of subsequent image processing is more accurate.

Description

Method and device for configuring light source, storage medium and detection equipment
Technical Field
The present application relates to the field of device inspection technologies, and in particular, to a method and an apparatus for configuring a light source, a storage medium, and an inspection device.
Background
Generally, after the device is manufactured, defect detection is performed before the device is shipped to remove the device with defective quality, and the defect detection of the device generally needs to be completed by means of special detection equipment. With the continuous development of science and technology, the structural complexity of various devices and the production capacity of the devices are also continuously improved, and accordingly, higher requirements are put forward on the detection equipment of the devices. In order to detect the device, the detection equipment may perform various detection operations such as photographing and scanning on the device, and finally perform a blanking operation on the device. In the prior art, the defects of different surfaces of the device cannot be highlighted by the shot image after the device is illuminated by the image acquisition equipment, and if the shot image is used as the input of an image processing algorithm, the result of subsequent image processing is inaccurate.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a storage medium, and a detection device for configuring a light source, so as to solve the problem that in the prior art, an image processing result is inaccurate due to the fact that defects of different surfaces of an image highlighting device cannot be acquired by an image acquisition device.
In order to achieve the above object, a first aspect of the present application provides a method for configuring a light source, which is applied to a detection apparatus, the detection apparatus includes a light source, a light source control mechanism and an image acquisition device, the light source is used for providing illumination for the corresponding image acquisition device, the light source control mechanism controls the light source to perform illumination, the method includes:
acquiring an input light source configuration instruction;
configuring working parameters of the light source according to the light source configuration instruction;
storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and sending the parameter configuration result to a light source control mechanism.
In an embodiment of the application, the detection device comprises a plurality of light sources, and the method further comprises:
acquiring an input light source selection instruction;
and displaying a configuration interface of the target light source selected by the light source selection instruction according to the input light source selection instruction.
In an embodiment of the present application, the method further includes:
acquiring a parameter configuration intermediate result of the light source in real time;
and sending the parameter configuration intermediate result to the light source control mechanism in real time so that the light source control mechanism can control the light source to illuminate in real time.
In an embodiment of the present application, acquiring the input light source configuration instruction includes:
component values of color channels of a light source input in character are acquired.
In an embodiment of the present application, acquiring the input light source configuration instruction includes:
acquiring component values of a color channel of the light source input in a cursor dragging mode.
In an embodiment of the present application, configuring an operating parameter of a light source according to a light source configuration instruction includes:
simultaneously adjusting component values of a plurality of color channels of a light source; or
The component values of each color channel of the light source are adjusted separately.
In an embodiment of the present application, acquiring the input light source configuration instruction includes:
and acquiring the illumination duration of the input light source, wherein the illumination duration is the duration for providing illumination for the image light source to take a single picture for the image acquisition device.
In an embodiment of the present application, the method further includes:
saving the current parameter configuration result;
and when the light source control mechanism is initialized, sending the stored parameter configuration result to the light source control mechanism, and obtaining a sending log of the parameter configuration result.
The second aspect of the present application provides a device for configuring a light source, which is applied to a detection apparatus, the detection apparatus includes a light source, a light source control mechanism and an image acquisition device, the light source is used for providing illumination for the corresponding image acquisition device, the light source control mechanism controls the light source to illuminate, the device includes:
the acquisition module is used for acquiring an input light source configuration instruction;
the configuration module is used for configuring the working parameters of the light source according to the light source configuration instruction;
the storage module is used for storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and the sending module is used for sending the parameter configuration result of the light source to the light source control mechanism.
A third aspect of the present application provides a storage medium storing a computer program which is operable to perform the above-described method for configuring a light source.
A fourth aspect of the present application provides a detection device, which includes a memory and a processor, the memory and the processor are connected through a bus, the memory stores a computer program, and the computer program executes the above method for configuring the light source when being called by the processor.
According to the technical scheme, the input light source configuration instruction is obtained, the working parameters of the light source are configured according to the light source configuration instruction, the parameter configuration result obtained by configuring the working parameters of the light source is stored, and the parameter configuration result is sent to the light source control mechanism. According to the method and the device, the light source is subjected to parameter configuration, so that the light source can be polished according to the configured parameters, defects of different surfaces of the device can be highlighted, and the result of subsequent image processing is more accurate.
Additional features and advantages of embodiments of the present application will be described in detail in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the embodiments of the disclosure, but are not intended to limit the embodiments of the disclosure. In the drawings:
fig. 1 schematically shows a flow diagram of a method for configuring a light source according to an embodiment of the application;
FIG. 2 schematically illustrates a schematic view of a light source configuration interface according to an embodiment of the present application;
fig. 3 schematically shows a schematic structural diagram of an apparatus for configuring a light source according to an embodiment of the present application;
fig. 4 schematically shows a block diagram of a detection apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the specific embodiments described herein are only used for illustrating and explaining the embodiments of the present application and are not used for limiting the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that if directional indications (such as up, down, left, right, front, and back … …) are referred to in the embodiments of the present application, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Fig. 1 schematically shows a flow diagram of a method for configuring a light source according to an embodiment of the application. As shown in fig. 1, an embodiment of the present application provides a method for configuring a light source, which is applied to a detection apparatus, where the detection apparatus may include a light source, a light source control mechanism, and an image capture device, the light source is used to provide illumination for the corresponding image capture device, and the light source control mechanism controls the light source to perform illumination, and the method may include the following steps:
102, acquiring an input light source configuration instruction;
104, configuring working parameters of the light source according to the light source configuration instruction;
step 106, storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and step 108, sending the parameter configuration result to a light source control mechanism.
In an embodiment of the application, the detection device comprises a light source, an image acquisition device and a light source control mechanism. The light source is used for providing illumination for the corresponding image acquisition device. Taking the example that the detection device comprises a plurality of light sources, the number 1 image acquisition device corresponds to the number 1 light source, the number 2 image acquisition devices correspond to the number 2 light source, and so on. The light source control mechanism is used for controlling the light source to illuminate. The processor configures the light sources according to the working parameters input by the user, and stores the working parameters corresponding to the light sources after configuration, so that different light sources illuminate according to the respective working parameters.
Fig. 2 schematically shows a schematic view of a light source configuration interface according to an embodiment of the application. As shown in fig. 2, a user may input a light source configuration command into the light source configuration interface, and the processor configures the operating parameters of the light source according to the obtained light source configuration command.
In one example, the light source configuration interface supports adjusting component values of color channels of the light source in a character input manner. The processor may acquire component values of color channels of the light sources input in a character manner, and determine the component value of the color channel of each light source according to the input character. As shown in the upper left corner of fig. 2, the channel light source may include 6 channels, with the red channel numbered 2 corresponding to a character of 65, the green channel numbered 3 corresponding to a character of 129, the blue channel numbered 5 corresponding to a character of 183, and so on. The user only needs to input the number corresponding to each color channel, and the configuration of the component value of each channel can be completed. In this way, the component values of the color channels of each light source can be accurately acquired.
In another example, the light source configuration interface supports adjusting component values of a color channel of a light source in a cursor drag manner. The processor can acquire the dragging information of the cursor to determine the component values of the color channels of the light source. For example, when the user drags the component size of the red channel in fig. 2, the red channel light of the light source changes in real time during the dragging process. The user only needs to drag the cursor, and the processor can obtain the configuration of the component values of each channel. Thus, the change of the light source can be observed in real time.
In other examples, a cursor dragging mode and a character input mode may be simultaneously applied to the light source configuration interface, and a user inputs component values of color channels of the light source according to actual requirements.
In addition, the light source configuration interface may support individual adjustment of the components of each color channel followed by a cursor drag box and/or a character input box. The processor may configure the component values for each color channel based on the cursor position or character content behind the component of each color channel. In order to flexibly configure the components of each color channel of the light source. And the light source configuration interface also supports adjusting the components of the color channels simultaneously, thereby adjusting the component values of the plurality of color channels on the light source at one time. For example, the user adjusts the component values of all color channels to 0 or other preset values by clicking the options of all light sources, by configuring the component values of the color channels of all light sources. For another example, if the user only adjusts the operating parameters of some light sources, the color channels that do not need to be adjusted can be directly closed in a checking manner, so that the processor can adjust the component values of the selected color channels at one time. In this way, the processor can adjust the component values of a plurality of color channels at one time according to the selection of the user, and the configuration efficiency is improved.
In embodiments of the present application, the light source configuration interface also supports adjusting the illumination duration of the light source. The user sets the illumination duration of each light source according to actual requirements, and the processor acquires the input illumination duration of the light sources. The illumination duration is the duration of illumination provided by the image light source for single photographing of the image acquisition device. For example, if the illumination duration is set to be 1s, the processor turns on the corresponding light source while controlling the image capturing device to start photographing, and turns off the light source after 1 s. Therefore, resources can be saved, the lighting function can be started in effective time, and the lighting of other light sources cannot be influenced.
In the embodiment of the application, after the setting is finished, the user can click the save button. And after receiving the storage instruction, the processor sends the storage instruction to the memory and stores the current parameter configuration result. After the light source control mechanism is shut down, the previous parameter configuration result may be lost, and after the light source control mechanism is initialized, the stored parameter configuration result may be sent to the light source control mechanism, so as to avoid that the system cannot operate due to parameter loss. In addition, the light source control mechanism can control the light source to illuminate according to the previously configured parameters, and a user can know the last parameter configuration result before using each time, so that the adjustment can be performed on historical data, and the parameter configuration efficiency is improved.
In the embodiment of the application, the high-density transmission serial port data is optimized, and a communication buffer mechanism is added. When a large amount of serial port data is detected to be sent in a short time, the content is actively cached firstly. Through analysis, the maximum value of sending is found, so that the brightness of the light source is conveniently adjusted, and meanwhile, no extra communication burden is added to the serial port device.
According to the technical scheme, the input light source configuration instruction is obtained, the working parameters of the light source are configured according to the light source configuration instruction, the parameter configuration result obtained by configuring the working parameters of the light source is stored, and the parameter configuration result is sent to the light source control mechanism. According to the method and the device, the light source is subjected to parameter configuration, so that the light source can be polished according to the configured parameters, defects of different surfaces of the device can be highlighted, and the result of subsequent image processing is more accurate.
In an embodiment of the present application, the detection device may include a plurality of light sources, and the method may further include:
acquiring an input light source selection instruction;
and displaying a configuration interface of the target light source selected by the light source selection instruction according to the input light source selection instruction.
In particular, the detection device may comprise a plurality of light sources, one for each image acquisition arrangement. The user may select a target light source by inputting a light source selection instruction. And the processor acquires the input light source selection instruction and displays a configuration interface of the corresponding target light source according to the selection instruction. Therefore, the working parameters of the selected light source can be configured according to the instruction of the user.
In an embodiment of the present application, the method may further include:
acquiring a parameter configuration intermediate result of the light source in real time;
and sending the parameter configuration intermediate result to the light source control mechanism in real time so that the light source control mechanism can control the light source to illuminate in real time.
Specifically, when the user configures the working parameters of the light source, the processor may obtain the parameter configuration intermediate result of the light source in real time. And sending the parameter configuration intermediate result to a light source control mechanism, and controlling the light source to illuminate in real time by the light source control mechanism according to the configured working parameters. In this way, the user can configure different operating parameters to observe the rendering effect of the light source. The light sources are more flexibly configured.
In this embodiment of the present application, the step 102 of acquiring the input light source configuration instruction may include:
component values of color channels of a light source input in character are acquired.
In particular, the light source configuration interface supports adjusting component values of color channels of the light source in a character input manner. The processor may acquire component values of color channels of the light sources input in a character manner, and determine the component value of the color channel of each light source according to the input character. As shown in the upper left corner of fig. 2, the channel light source may include 6 channels, with the red channel numbered 2 corresponding to a character of 65, the green channel numbered 3 corresponding to a character of 129, the blue channel numbered 5 corresponding to a character of 183, and so on. The user only needs to input the number corresponding to each color channel, and the configuration of the component value of each channel can be completed. In this way, the component values of the color channels of each light source can be accurately acquired.
In this embodiment of the present application, the step 102 of acquiring the input light source configuration instruction may include:
acquiring component values of a color channel of the light source input in a cursor dragging mode.
In particular, the light source configuration interface supports adjusting component values of color channels of a light source in a cursor drag manner. The processor can acquire the dragging information of the cursor to determine the component values of the color channels of the light source. For example, when the user drags the component size of the red channel in fig. 2, the red channel light of the light source changes in real time during the dragging process. The user only needs to drag the cursor, and the processor can obtain the configuration of the component values of each channel. Thus, the change of the light source can be observed in real time.
In this embodiment of the present application, the step 104 of configuring the operating parameters of the light source according to the light source configuration instruction may include:
simultaneously adjusting component values of a plurality of color channels of a light source; or
The component values of each color channel of the light source are adjusted separately.
In particular, the light source configuration interface may support individual adjustment of the components of each color channel followed by a cursor drag box and/or a character input box. The processor may configure the component values for each color channel based on the cursor position or character content behind the component of each color channel. In order to flexibly configure the components of each color channel of the light source. And the light source configuration interface also supports adjusting the components of the color channels simultaneously, thereby adjusting the component values of the plurality of color channels on the light source at one time. For example, the user adjusts the component values of all color channels to 0 or other preset values by clicking the options of all light sources, by configuring the component values of the color channels of all light sources. For another example, if the user only adjusts the operating parameters of some light sources, the color channels that do not need to be adjusted can be directly closed in a checking manner, so that the processor can adjust the component values of the selected color channels at one time. In this way, the processor can adjust the component values of a plurality of color channels at one time according to the selection of the user, and the configuration efficiency is improved.
In this embodiment of the present application, the step 102 of acquiring the input light source configuration instruction may include:
and acquiring the illumination duration of the input light source, wherein the illumination duration is the duration for providing illumination for the image light source to take a single picture for the image acquisition device.
In particular, the light source configuration interface also supports adjusting the illumination duration of the light source. The user sets the illumination duration of each light source according to actual requirements, and the processor acquires the input illumination duration of the light sources. The illumination duration is the duration of illumination provided by the image light source for single photographing of the image acquisition device. For example, if the illumination duration is set to be 1s, the processor turns on the corresponding light source while controlling the image capturing device to start photographing, and turns off the light source after 1 s. Therefore, resources can be saved, the lighting function can be started in effective time, and the lighting of other light sources cannot be influenced.
In an embodiment of the present application, the method may further include:
saving the current parameter configuration result;
and when the light source control mechanism is initialized, sending the stored parameter configuration result to the light source control mechanism, and obtaining a sending log of the parameter configuration result.
Specifically, the user may click the save button after the setup is completed. And after receiving the storage instruction, the processor sends the storage instruction to the memory and stores the current parameter configuration result. In this way, when the light source control mechanism is initialized, the saved parameter configuration result is sent to the light source control mechanism, and a sending log of the parameter configuration result can be obtained (as shown in the lower left corner of fig. 2). According to the embodiment of the application, the data sent last time is recorded, when the program is started next time, the processor automatically reads the content stored last time and automatically sends the brightness data, and therefore the problem that the brightness data are lost due to power failure is solved. The efficiency of parameter configuration is improved.
Fig. 3 schematically shows a schematic structural diagram of an apparatus for configuring a light source according to an embodiment of the present application. The embodiment of the application provides a device for configuring light source, is applied to check out test set, and this check out test set can include light source, light source control mechanism and image acquisition device, and the light source is used for providing the illumination for corresponding image acquisition device, and light source control mechanism controls the light source and throws light on, and the device can include:
an obtaining module 302, configured to obtain an input light source configuration instruction;
a configuration module 304, configured to configure operating parameters of the light source according to the light source configuration instruction;
the storage module 306 is configured to store a parameter configuration result obtained by configuring the working parameters of the light source; and
and a sending module 308, configured to send the parameter configuration result of the light source to the light source control mechanism.
In an embodiment of the application, the detection device comprises a light source, an image acquisition device and a light source control mechanism. The light source is used for providing illumination for the corresponding image acquisition device. Taking the example that the detection device comprises a plurality of light sources, the number 1 image acquisition device corresponds to the number 1 light source, the number 2 image acquisition devices correspond to the number 2 light source, and so on. The light source control mechanism is used for controlling the light source to illuminate. The processor configures the light sources according to the working parameters input by the user, and stores the working parameters corresponding to the light sources after configuration, so that different light sources illuminate according to the respective working parameters.
As shown in fig. 2, a user may input a light source configuration command into the light source configuration interface, and the processor configures the operating parameters of the light source according to the obtained light source configuration command.
In one example, the light source configuration interface supports adjusting component values of color channels of the light source in a character input manner. The processor may acquire component values of color channels of the light sources input in a character manner, and determine the component value of the color channel of each light source according to the input character. As shown in the upper left corner of fig. 2, the channel light source may include 6 channels, with the red channel numbered 2 corresponding to a character of 65, the green channel numbered 3 corresponding to a character of 129, the blue channel numbered 5 corresponding to a character of 183, and so on. The user only needs to input the number corresponding to each color channel, and the configuration of the component value of each channel can be completed. In this way, the component values of the color channels of each light source can be accurately acquired.
In another example, the light source configuration interface supports adjusting component values of a color channel of a light source in a cursor drag manner. The processor can acquire the dragging information of the cursor to determine the component values of the color channels of the light source. For example, when the user drags the component size of the red channel in fig. 2, the red channel light of the light source changes in real time during the dragging process. The user only needs to drag the cursor, and the processor can obtain the configuration of the component values of each channel. Thus, the change of the light source can be observed in real time.
In other examples, a cursor dragging mode and a character input mode may be simultaneously applied to the light source configuration interface, and a user inputs component values of color channels of the light source according to actual requirements.
In addition, the light source configuration interface may support individual adjustment of the components of each color channel followed by a cursor drag box and/or a character input box. The processor may configure the component values for each color channel based on the cursor position or character content behind the component of each color channel. In order to flexibly configure the components of each color channel of the light source. And the light source configuration interface also supports adjusting the components of the color channels simultaneously, thereby adjusting the component values of the plurality of color channels on the light source at one time. For example, the user adjusts the component values of all color channels to 0 or other preset values by clicking the options of all light sources, by configuring the component values of the color channels of all light sources. For another example, if the user only adjusts the operating parameters of some light sources, the color channels that do not need to be adjusted can be directly closed in a checking manner, so that the processor can adjust the component values of the selected color channels at one time. In this way, the processor can adjust the component values of a plurality of color channels at one time according to the selection of the user, and the configuration efficiency is improved.
In embodiments of the present application, the light source configuration interface also supports adjusting the illumination duration of the light source. The user sets the illumination duration of each light source according to actual requirements, and the processor acquires the input illumination duration of the light sources. The illumination duration is the duration of illumination provided by the image light source for single photographing of the image acquisition device. For example, if the illumination duration is set to be 1s, the processor turns on the corresponding light source while controlling the image capturing device to start photographing, and turns off the light source after 1 s. Therefore, resources can be saved, the lighting function can be started in effective time, and the lighting of other light sources cannot be influenced.
In the embodiment of the application, after the setting is finished, the user can click the save button. And after receiving the storage instruction, the processor sends the storage instruction to the memory and stores the current parameter configuration result. In this way, when the light source control means is initialized, the stored parameter configuration result is transmitted to the light source control means. Therefore, the user can know the last parameter configuration result before using each time, and adjust the result on historical data, so that the efficiency of parameter configuration is improved.
In the embodiment of the application, the high-density transmission serial port data is optimized, and a communication buffer mechanism is added. When a large amount of serial port data is detected to be sent in a short time, the content is actively cached firstly. Through analysis, the maximum value of sending is found, so that the brightness of the light source is conveniently adjusted, and meanwhile, no extra communication burden is added to the serial port device.
According to the technical scheme, the input light source configuration instruction is obtained, the working parameters of the light source are configured according to the light source configuration instruction, the parameter configuration result obtained by configuring the working parameters of the light source is stored, and the parameter configuration result is sent to the light source control mechanism. According to the method and the device, the light source is subjected to parameter configuration, so that the light source can be polished according to the configured parameters, defects of different surfaces of the device can be highlighted, and the result of subsequent image processing is more accurate.
Embodiments of the present application also provide a storage medium storing a computer program, which is executed to perform the above-mentioned method for configuring a light source.
Fig. 4 schematically shows a block diagram of a detection apparatus according to an embodiment of the present application. As shown in fig. 4, the embodiment of the present application provides a detection apparatus, which includes a memory 410 and a processor 420, the memory 410 and the processor 420 are connected through a bus, a computer program is stored in the memory 410, and the computer program, when called by the processor 420, executes the above-mentioned method for configuring the light source.
In an embodiment of the present application, the processor 420 may be configured to:
acquiring an input light source configuration instruction;
configuring working parameters of the light source according to the light source configuration instruction;
storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and sending the parameter configuration result to a light source control mechanism.
Further, the detection device comprises a plurality of light sources, and the processor 420 may be further configured to:
acquiring an input light source selection instruction;
and displaying a configuration interface of the target light source selected by the light source selection instruction according to the input light source selection instruction.
Further, the processor 420 may be further configured to:
acquiring a parameter configuration intermediate result of the light source in real time;
and sending the parameter configuration intermediate result to the light source control mechanism in real time so that the light source control mechanism can control the light source to illuminate in real time.
Further, the processor 420 may be further configured to:
acquiring input light source configuration instructions comprises:
component values of color channels of a light source input in character are acquired.
Further, the processor 420 may be further configured to:
acquiring input light source configuration instructions comprises:
acquiring component values of a color channel of the light source input in a cursor dragging mode.
Further, the processor 420 may be further configured to:
configuring the operating parameters of the light source according to the light source configuration instructions comprises:
simultaneously adjusting component values of a plurality of color channels of a light source; or
The component values of each color channel of the light source are adjusted separately.
Further, the processor 420 may be further configured to:
acquiring input light source configuration instructions comprises:
and acquiring the illumination duration of the input light source, wherein the illumination duration is the duration for providing illumination for the image light source to take a single picture for the image acquisition device.
Further, the processor 420 may be further configured to:
saving the current parameter configuration result;
and when the light source control mechanism is initialized, sending the stored parameter configuration result to the light source control mechanism, and obtaining a sending log of the parameter configuration result.
According to the technical scheme, the input light source configuration instruction is obtained, the working parameters of the light source are configured according to the light source configuration instruction, the parameter configuration result obtained by configuring the working parameters of the light source is stored, and the parameter configuration result is sent to the light source control mechanism. According to the method and the device, the light source is subjected to parameter configuration, so that the light source can be polished according to the configured parameters, defects of different surfaces of the device can be highlighted, and the result of subsequent image processing is more accurate.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A method for configuring a light source, applied to a detection device, wherein the detection device comprises a light source, a light source control mechanism and an image acquisition device, the light source is used for providing illumination for the corresponding image acquisition device, the light source control mechanism controls the light source to illuminate, and the method comprises the following steps:
acquiring an input light source configuration instruction;
configuring working parameters of the light source according to the light source configuration instruction;
storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and sending the parameter configuration result to a light source control mechanism.
2. The method of claim 1, wherein the detection device comprises a plurality of light sources, the method further comprising:
acquiring an input light source selection instruction;
and displaying a configuration interface of the target light source selected by the light source selection instruction according to the input light source selection instruction.
3. The method of claim 1, further comprising:
acquiring a parameter configuration intermediate result of the light source in real time;
and sending the parameter configuration intermediate result to the light source control mechanism in real time so that the light source control mechanism can control the light source to illuminate in real time.
4. The method of claim 1, wherein the obtaining input light source configuration instructions comprises:
component values of color channels of a light source input in character are acquired.
5. The method of claim 1, wherein the obtaining input light source configuration instructions comprises:
acquiring component values of a color channel of the light source input in a cursor dragging mode.
6. The method of claim 1, wherein the configuring the operating parameters of the light source according to the light source configuration instructions comprises:
simultaneously adjusting component values of a plurality of color channels of the light source; or
The component values of each color channel of the light source are adjusted separately.
7. The method of claim 1, wherein the obtaining input light source configuration instructions comprises:
and acquiring the input illumination duration of the light source, wherein the illumination duration is the duration for providing illumination for the image light source to take a picture for the image acquisition device once.
8. The method of claim 1, further comprising:
saving the current parameter configuration result;
and when the light source control mechanism is initialized, sending the stored parameter configuration result to the light source control mechanism, and obtaining a sending log of the parameter configuration result.
9. The device for configuring the light source is applied to the detection equipment, and is characterized in that the detection equipment comprises the light source, a light source control mechanism and an image acquisition device, the light source is used for providing illumination for the corresponding image acquisition device, the light source control mechanism controls the light source to illuminate, and the device comprises:
the acquisition module is used for acquiring an input light source configuration instruction;
the configuration module is used for configuring the working parameters of the light source according to the light source configuration instruction;
the storage module is used for storing a parameter configuration result obtained by configuring the working parameters of the light source; and
and the sending module is used for sending the parameter configuration result of the light source to the light source control mechanism.
10. A storage medium, characterized in that the storage medium stores a computer program which is run for performing the method for configuring a light source according to any one of claims 1 to 8.
11. A detection device comprising a memory and a processor, said memory and processor being connected by a bus, characterized in that a computer program is stored in said memory, which computer program, when called by said processor, performs the method for configuring a light source according to any one of claims 1 to 8.
CN202111565359.XA 2021-12-20 2021-12-20 Method and device for configuring light source, storage medium and detection equipment Pending CN114397301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565359.XA CN114397301A (en) 2021-12-20 2021-12-20 Method and device for configuring light source, storage medium and detection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565359.XA CN114397301A (en) 2021-12-20 2021-12-20 Method and device for configuring light source, storage medium and detection equipment

Publications (1)

Publication Number Publication Date
CN114397301A true CN114397301A (en) 2022-04-26

Family

ID=81226260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111565359.XA Pending CN114397301A (en) 2021-12-20 2021-12-20 Method and device for configuring light source, storage medium and detection equipment

Country Status (1)

Country Link
CN (1) CN114397301A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170202075A1 (en) * 2014-07-10 2017-07-13 Beijing Zhigu Rui Tuo Tech Co., Ltd Illumination control methods and apparatuses and devices having photographing function
CN110460782A (en) * 2019-08-28 2019-11-15 北京海益同展信息科技有限公司 Information collecting device, method, crusing robot and storage medium
CN112345452A (en) * 2020-11-06 2021-02-09 罗建华 Lamplight adjusting method, storage medium and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170202075A1 (en) * 2014-07-10 2017-07-13 Beijing Zhigu Rui Tuo Tech Co., Ltd Illumination control methods and apparatuses and devices having photographing function
CN110460782A (en) * 2019-08-28 2019-11-15 北京海益同展信息科技有限公司 Information collecting device, method, crusing robot and storage medium
CN112345452A (en) * 2020-11-06 2021-02-09 罗建华 Lamplight adjusting method, storage medium and system

Similar Documents

Publication Publication Date Title
JP2020526973A (en) Adjustment methods for automatic exposure control of areas of interest, terminal devices, and non-temporary computer-readable storage media
US20190026010A1 (en) System and method for computing operations based on a first and second user input
JP6071452B2 (en) System and method for using editing initialization block in part program editing environment of machine vision system
US20110113361A1 (en) Adjustment presets for digital images
EP3155593A1 (en) Methods and systems for color processing of digital images
CN114494120A (en) Algorithm editing method and device for detection equipment and detection equipment
CN102104709A (en) Method for processing image shot by camera and camera
CN111787354B (en) Video generation method and device
CN111553973B (en) Plug-in type point cloud color rendering method and device and computer storage medium
JP6567810B2 (en) microscope
JP2009260570A (en) Color processing apparatus, image processing apparatus, and method therefor
US10205940B1 (en) Determining calibration settings for displaying content on a monitor
CN108563473A (en) scanning module configuration method and device
CN114397301A (en) Method and device for configuring light source, storage medium and detection equipment
US11899916B2 (en) User interface for modifying pictures
WO2023116339A1 (en) Test image editing method and device, and pattern generator
US9167215B2 (en) Machine vision system editing environment for a part program in which a continuous stream of image acquisition operations are performed during a run mode
CN111225196A (en) Focusing test method and device
CN115150585A (en) Automatic image selecting and cutting method, system and storage medium
JP2022533117A (en) Controllers and Methods for Providing Operational Settings for Imaging Devices
JP6958641B2 (en) Image processing system, image processing method and program
JP2019016833A (en) Imaging apparatus, control method of the same, program, and storage medium
CN114244988A (en) Method and device for configuring image acquisition device and detection equipment
JP2018010498A (en) Image processing device and method and control program
CN115437860A (en) Debugging method and system of immersive experience equipment

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