CN113014826B - Image photosensitive intensity parameter adjustment method, device, equipment and medium - Google Patents
Image photosensitive intensity parameter adjustment method, device, equipment and medium Download PDFInfo
- Publication number
- CN113014826B CN113014826B CN202110187911.XA CN202110187911A CN113014826B CN 113014826 B CN113014826 B CN 113014826B CN 202110187911 A CN202110187911 A CN 202110187911A CN 113014826 B CN113014826 B CN 113014826B
- Authority
- CN
- China
- Prior art keywords
- image
- current
- preset
- value
- parameters
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a method, a device, equipment and a medium for adjusting image sensitization intensity parameters, belonging to the field of image sensitization, wherein the method comprises the following steps: acquiring a current image obtained by an image sensitization system under current parameters; carrying out gray processing on the current image and obtaining a gray value of each pixel point in the current image; judging the gray value of the current image according to preset judging conditions; when the preset judging conditions are met, the current parameters are adjusted according to preset adjusting rules, so that adjusted adjusting parameters are obtained, and the image photosensitive system can obtain a new image under the adjusting parameters. The invention has the advantages of high parameter adjustment speed, high efficiency, low cost and good stability.
Description
Technical Field
The present invention relates to the field of image sensitization, and in particular, to a method, an apparatus, a device, and a medium for adjusting image sensitization intensity parameters.
Background
The image sensing system senses the light sensing element to obtain an image by controlling the exposure amount, and thus the exposure amount is critical to the quality of the finally obtained image.
In the current photosensitive control method, an image photosensitive system controls exposure by controlling parameters such as brightness and exposure time of a light source, so that an ideal image is obtained under different environments.
However, the adjustment process of parameters such as brightness and exposure time of the light source is complex, and the control flow is complex, so that it is difficult to conveniently and rapidly obtain the ideal and usable photosensitive intensity parameter, resulting in too slow and inaccurate reaction time.
Disclosure of Invention
Aiming at the problem that the adjusting process of the photosensitive intensity parameter in the image photosensitive system is slow and complex in the prior art, the invention aims to provide an image photosensitive intensity parameter adjusting method, an image photosensitive intensity parameter adjusting device, image photosensitive intensity parameter adjusting equipment and an image photosensitive intensity parameter adjusting medium.
In order to achieve the above purpose, the technical scheme of the invention is as follows:
a method of adjusting an image sensitization intensity parameter for sensitization intensity control of an image sensitization system, the method comprising:
acquiring a current image obtained by the image sensitization system under current parameters;
carrying out gray processing on the current image and obtaining a gray value of each pixel point in the current image;
judging whether the gray value of the current image meets a preset judging condition or not;
and when the preset judging conditions are met, adjusting the current parameters according to preset adjusting rules, so as to obtain adjusted adjusting parameters.
Preferably, the preset judging condition is to judge whether an upper margin or a lower margin is smaller than or equal to zero, wherein the upper margin is a difference obtained by subtracting an actual maximum value of a pixel gray value in the current image from an ideal maximum value of a pixel gray value in the ideal image, and the lower margin is a difference obtained by subtracting an ideal minimum value of a pixel gray value in the ideal image from an actual minimum value of a pixel gray value in the current image.
Further, the preset judging condition further includes judging whether an absolute value of a difference between the upper margin and the lower margin is lower than a preset threshold.
Preferably, the preset adjustment rule is according to formula LM 2 =NG 1 ×(NG 2 ÷LM 1 ) Current parameters are adjusted, wherein LM 2 To adjust the parameters, LM 1 NG as current parameter 1 NG is the ideal average value of gray values of pixel points in ideal image 2 Is the actual average value of the gray values of the pixel points in the current image.
Preferably, the current parameter is selected and obtained within a preset numerical range.
Preferably, the current parameter is a median value of the preset numerical range.
Further, the adjustment parameter is used for the image photosensitive system to acquire a new image, and continuing the gray level processing and gray level value judging process on the new image, when the preset judging condition is not met any more, one adjustment parameter which is obtained recently is the photosensitive intensity parameter of the image photosensitive system.
In another aspect, the present invention further provides an image photosensitive intensity parameter adjustment apparatus, including:
the acquisition module is used for acquiring an image obtained by the image photosensitive system;
the gray scale module is used for carrying out gray scale processing on the image;
the judging module is used for judging the gray value of the pixel point in the image; and
and the calculation module is used for calculating the adjustment parameters.
In yet another aspect, the present invention further provides an electronic device, including a memory storing executable program code and a processor coupled to the memory, wherein the processor invokes the executable program code stored in the memory to perform the image intensity parameter adjustment method as described above; alternatively, the electronic device includes logic for performing the image sensitization intensity parameter adjustment method as described above.
In still another aspect, the present invention also provides a computer storage medium having stored therein a computer program which, when executed by a processor, performs the image sensitization intensity parameter adjustment method as described above.
By adopting the technical scheme, the input image obtained by the image photosensitive system under the current parameters is subjected to gray processing, and the actual maximum value, the actual minimum value and the actual average value of the gray values of the pixel points in the image are compared with the ideal maximum value, the ideal minimum value and the ideal average value of the gray values of the pixel points in the ideal image to be obtained, so that an adjustment parameter is calculated, the image photosensitive system can obtain the next frame of image through the adjustment parameter, and the next frame of image is closer to the ideal image, so that the adjustment process of the photosensitive intensity parameter is simpler and more reasonable, and the adjustment speed and the adjustment efficiency are high.
Drawings
FIG. 1 is a flow chart of a method for adjusting image sensitization intensity parameters according to the present invention;
FIG. 2 is a flowchart of a continuous adjustment method for adjusting the photosensitive intensity parameter of an image according to the present invention;
FIG. 3 is a schematic diagram of an image sensitization intensity parameter adjusting device according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The following describes the embodiments of the present invention further with reference to the drawings. The description of these embodiments is provided to assist understanding of the present invention, but is not intended to limit the present invention. In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
It should be noted that, in the description of the present invention, the positional or positional relation indicated by the terms such as "upper", "lower", "left", "right", "front", "rear", etc. are merely for convenience of describing the present invention based on the description of the structure of the present invention shown in the drawings, and are not intended to indicate or imply that the apparatus or element to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
The terms "first" and "second" in this technical solution are merely references to the same or similar structures, or corresponding structures that perform similar functions, and are not an arrangement of the importance of these structures, nor are they ordered, or are they of a comparative size, or other meaning.
In addition, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., the connection may be a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two structures. It will be apparent to those skilled in the art that the specific meaning of the terms described above in this application may be understood in the light of the general inventive concept in connection with the present application.
Example 1
A method for adjusting the parameters of photosensitive intensity of image features that the parameters are used to control the photosensitive intensity of photosensitive system, which is generally the exposure quantity determined by the brightness (illuminance) and exposure time of light source, and when the photosensitive system is used to sense light and obtain image, the brightness (illuminance) and exposure time of light source are controlled to obtain needed photosensitive condition, and an image is generated under said condition. The method is usually executed by a processor built in the image sensing system, or may be executed by a remote or cloud server.
As shown in fig. 1, the method includes step S1, step S2, step S3 and step S4.
S1, acquiring a current image obtained by an image photosensitive system under current parameters;
the current parameter is selected and obtained in a preset numerical range, and in this embodiment, the current parameter is preferably the median value of the preset numerical range.
Step S2, gray processing is carried out on the current image, and gray values of each pixel point in the current image are obtained;
step S3, judging whether the gray value of the current image meets a preset judging condition;
in this embodiment, the preset determination condition is to determine whether the upper margin or the lower margin is equal to or less than zero, where the upper margin is a difference obtained by subtracting the actual maximum value of the pixel gray value in the current image from the ideal maximum value of the pixel gray value in the ideal image, and the lower margin is a difference obtained by subtracting the ideal minimum value of the pixel gray value in the ideal image from the actual minimum value of the pixel gray value in the current image.
Wherein, the ideal maximum value of the pixel gray value in the ideal image refers to the maximum value of the pixel gray value in the ideal image which is expected to be obtained, and is usually set manually; the same reason is that the ideal minimum value of the pixel gray value in the ideal image refers to the minimum value of the pixel gray value in the ideal image expected to be obtained, and is also set manually; and the actual maximum value and the actual minimum value of the gray values of the pixel points in the current image are directly selected from the gray values of all the pixel points in the current image.
And (3) any one of the upper allowance and the lower allowance is smaller than or equal to zero, namely, the judgment condition is considered to be satisfied, and the next step is executed.
And S4, when the preset judging conditions are met, adjusting the current parameters according to preset adjusting rules, so as to obtain adjusted adjusting parameters.
In this embodiment, the preset adjustment rule is according to formula LM 2 =NG 1 ×(NG 2 ÷LM 1 ) Current parameters are adjusted, wherein LM 2 To adjust the parameters, LM 1 NG as current parameter 1 NG is the ideal average value of gray values of pixel points in ideal image 2 Is the actual average value of the gray values of the pixel points in the current image.
The ideal average value of the pixel gray values in the ideal image refers to the average value of the pixel gray values in the ideal image which is expected to be obtained, and the ideal average value of the pixel gray values in the ideal image is set manually; and the actual average value of the gray values of the pixel points in the current image is taken as the average value of the gray values of all the pixel points in the current image.
The obtained adjustment parameters are used for the image photosensitive system to obtain a new image, namely, step S5; and continuing the gray level processing and gray level value judging process of the new image, when the preset judging condition is not met any more, the latest obtained one adjusting parameter is the photosensitive intensity parameter of the image photosensitive system, as shown in fig. 2, i.e. the method continuously receives the image and carries out gray level processing and gray level value judging on the image, and carries out the executing result of the adjusting parameter or the non-adjusting parameter according to the judging result. Or in another embodiment, the method may end when the determination condition is no longer satisfied.
In another embodiment, the above judgment conditions are set as follows: after the upper margin or the lower margin is judged to be smaller than or equal to zero, judging whether the absolute value of the difference between the upper margin and the lower margin is lower than a preset threshold value or not, namely calculating the correlation between the upper margin and the lower margin, and only when the absolute value of the difference between the upper margin and the lower margin is also lower than the preset threshold value, judging that the condition is met, and calling a preset adjustment rule to adjust the current parameter so as to obtain the adjusted adjustment parameter.
Example two
An image sensitization intensity parameter adjusting device, as shown in fig. 3, comprises:
the acquisition module is used for acquiring an image obtained by the image sensitization system;
the gray scale module is used for carrying out gray scale processing on the image;
the judging module is used for judging the gray value of the pixel point in the image; and
the calculation module is used for calculating the adjustment parameters.
Example III
An electronic device, as shown in fig. 4, includes
A memory storing executable program code; and
a processor coupled to the memory;
the processor calls executable program codes stored in the memory to execute the image sensitization intensity parameter adjusting method.
Or in another embodiment, the electronic device is configured as a logic circuit, and the logic circuit executes the image sensitization intensity parameter adjusting method when running, so as to realize specific functions.
Example IV
A computer storage medium having a computer program stored therein, the computer program, when executed by a processor, performing the above-described image intensity parameter adjustment method.
The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, and yet fall within the scope of the invention.
Claims (8)
1. An image sensitization intensity parameter adjustment method, the parameter is used for sensitization intensity control of an image sensitization system, and the method is characterized in that: the method comprises the following steps:
acquiring a current image obtained by the image sensitization system under current parameters;
carrying out gray processing on the current image and obtaining a gray value of each pixel point in the current image;
judging whether the gray value of the current image meets a preset judging condition or not;
when the preset judging conditions are met, adjusting the current parameters according to preset adjusting rules, so as to obtain adjusted adjusting parameters;
the preset judging condition is to judge whether an upper allowance or a lower allowance is smaller than or equal to zero, wherein the upper allowance is a difference obtained by subtracting an actual maximum value of a pixel gray value in the current image from an ideal maximum value of a pixel gray value in an ideal image, and the lower allowance is a difference obtained by subtracting an ideal minimum value of a pixel gray value in the ideal image from an actual minimum value of a pixel gray value in the current image;
wherein the preset adjustment rule is according to a formula LM 2 =NG 1 ×(NG 2 ÷LM 1 ) Current parameters are adjusted, wherein LM 2 To adjust the parameters, LM 1 NG as current parameter 1 NG is the ideal average value of gray values of pixel points in ideal image 2 Is the actual average value of the gray values of the pixel points in the current image.
2. The image sensitization intensity parameter adjustment method according to claim 1, wherein: the preset judging condition further comprises judging whether the absolute value of the difference between the upper margin and the lower margin is lower than a preset threshold.
3. The image sensitization intensity parameter adjustment method according to claim 1, wherein: and the current parameters are obtained by selecting in a preset numerical range.
4. A method for adjusting an image sensitization intensity parameter according to claim 3, wherein: the current parameter is the median value of the preset numerical range.
5. The image sensitization intensity parameter adjustment method according to claim 1, wherein: the adjusting parameter is used for the image photosensitive system to acquire a new image, and the gray processing and gray value judging process of the new image are continued, when the preset judging condition is not met any more, one adjusting parameter which is obtained recently is the photosensitive intensity parameter of the image photosensitive system.
6. The image sensitization intensity parameter tuning apparatus of claim 1, wherein: comprising the following steps:
the acquisition module is used for acquiring an image obtained by the image photosensitive system;
the gray scale module is used for carrying out gray scale processing on the image;
the judging module is used for judging the gray value of the pixel point in the image; and
and the calculation module is used for calculating the adjustment parameters.
7. An electronic device, characterized in that: comprising a memory storing executable program code and a processor coupled to the memory, wherein the processor invokes the executable program code stored in the memory to perform the image intensity parameter adjustment method of any of claims 1-5; alternatively, the electronic device comprises logic circuitry for performing the image intensity parameter adjustment method of any one of claims 1-5.
8. A computer storage medium, characterized by: the computer storage medium has stored therein a computer program which, when executed by a processor, performs the image sensitization intensity parameter adjustment method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110187911.XA CN113014826B (en) | 2021-02-18 | 2021-02-18 | Image photosensitive intensity parameter adjustment method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110187911.XA CN113014826B (en) | 2021-02-18 | 2021-02-18 | Image photosensitive intensity parameter adjustment method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113014826A CN113014826A (en) | 2021-06-22 |
CN113014826B true CN113014826B (en) | 2023-05-05 |
Family
ID=76402732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110187911.XA Active CN113014826B (en) | 2021-02-18 | 2021-02-18 | Image photosensitive intensity parameter adjustment method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113014826B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009010694A (en) * | 2007-06-28 | 2009-01-15 | Sanyo Electric Co Ltd | Exposure control circuit and imaging apparatus loaded with it |
CN103705258A (en) * | 2013-11-19 | 2014-04-09 | 江苏康众数字医疗设备有限公司 | Automatic exposure control method and automatic exposure control device for imaging device |
CN103826066A (en) * | 2014-02-26 | 2014-05-28 | 芯原微电子(上海)有限公司 | Automatic exposure adjusting method and system |
CN104601899A (en) * | 2013-10-30 | 2015-05-06 | 佳能株式会社 | Image processing apparatus and image processing method |
CN111491108A (en) * | 2019-01-28 | 2020-08-04 | 杭州海康威视数字技术股份有限公司 | Exposure parameter adjusting method and device |
WO2021007690A1 (en) * | 2019-07-12 | 2021-01-21 | 深圳市大疆创新科技有限公司 | Exposure control method, apparatus and movable platform |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI349827B (en) * | 2007-07-17 | 2011-10-01 | Asia Optical Co Inc | Exposure adjustment methods and systems |
US8026955B2 (en) * | 2007-08-30 | 2011-09-27 | Honda Motor Co., Ltd. | Camera exposure controller including imaging devices for capturing an image using stereo-imaging |
CN106952244B (en) * | 2017-03-28 | 2020-05-05 | 中航视嘉(北京)技术有限公司 | Automatic image brightness adjusting method and device |
CN111343388B (en) * | 2019-04-11 | 2021-09-24 | 杭州海康慧影科技有限公司 | Method and device for determining exposure time |
JP7249212B2 (en) * | 2019-06-17 | 2023-03-30 | キヤノン株式会社 | Image processing device and image processing method, imaging device and control method thereof, system, and program |
CN111540042B (en) * | 2020-04-28 | 2023-08-11 | 上海盛晃光学技术有限公司 | Method, device and related equipment for three-dimensional reconstruction |
-
2021
- 2021-02-18 CN CN202110187911.XA patent/CN113014826B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009010694A (en) * | 2007-06-28 | 2009-01-15 | Sanyo Electric Co Ltd | Exposure control circuit and imaging apparatus loaded with it |
CN104601899A (en) * | 2013-10-30 | 2015-05-06 | 佳能株式会社 | Image processing apparatus and image processing method |
CN103705258A (en) * | 2013-11-19 | 2014-04-09 | 江苏康众数字医疗设备有限公司 | Automatic exposure control method and automatic exposure control device for imaging device |
CN103826066A (en) * | 2014-02-26 | 2014-05-28 | 芯原微电子(上海)有限公司 | Automatic exposure adjusting method and system |
CN111491108A (en) * | 2019-01-28 | 2020-08-04 | 杭州海康威视数字技术股份有限公司 | Exposure parameter adjusting method and device |
WO2021007690A1 (en) * | 2019-07-12 | 2021-01-21 | 深圳市大疆创新科技有限公司 | Exposure control method, apparatus and movable platform |
Also Published As
Publication number | Publication date |
---|---|
CN113014826A (en) | 2021-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100849846B1 (en) | Apparatus and method for compensating brightness of image | |
KR102513346B1 (en) | Method for coding video and related device | |
JPH0785623B2 (en) | Power system voltage stability determination system | |
CN110161919B (en) | Cooking equipment and cooking method of cooking equipment | |
CN113014826B (en) | Image photosensitive intensity parameter adjustment method, device, equipment and medium | |
CN1069134A (en) | Program control system | |
CN109996005B (en) | Focus correction method and device | |
CN115145761A (en) | Chip frequency control method and device, block chain server and storage medium | |
CN107666107B (en) | Method of correcting laser power, laser, storage medium, and electronic apparatus | |
CN109059181B (en) | Photoelectric sensor calibration method and device, air conditioner and readable storage medium | |
CN105959511A (en) | Lens shadow correction method and system | |
CN113641214A (en) | Clock calibration circuit, clock calibration method and related equipment | |
CN109267288A (en) | Control method, control device and the washing machine of washing machine | |
KR100708933B1 (en) | System and method of auto exposure control | |
US8768096B2 (en) | Method and apparatus for stereo misalignment estimation using modified affine or perspective model | |
CN117031885A (en) | Laser direct writing imaging equipment control method, system and related equipment | |
JP2012054659A (en) | Image processing apparatus, image processing method, and program | |
CN111669050B (en) | Compensation method and device for Buck circuit and Buck circuit | |
CN114738385B (en) | Magnetic suspension bearing system, control method and device thereof and storage medium | |
CN112929578B (en) | Image sensitization moment acquisition method, device, equipment and medium | |
CN114241979B (en) | Mura defect compensation method, apparatus, device and storage medium | |
CN115148161B (en) | Automatic backlight adjustment method, device, equipment and storage medium | |
CN116527855A (en) | Projection equipment automatic focusing method and device, projection equipment and computer readable storage medium | |
CN113869167A (en) | Signal processing method, electronic equipment and electric energy processing system | |
JPH05334337A (en) | System and device for parallel processing of ordinary differential equation |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230815 Address after: 201210 3rd floor, building 2, No. 200, zhangheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai Patentee after: Singularity Micro (Shanghai) Optoelectronic Technology Co.,Ltd. Address before: 201313 118, 20, 1-42 Lane 83, Hongxiang North Road, Wanxiang Town, Pudong New Area, Shanghai. Patentee before: Keluoke Electronic Technology (Shanghai) Co.,Ltd. |