WO2020119504A1 - Image processing method and system - Google Patents

Image processing method and system Download PDF

Info

Publication number
WO2020119504A1
WO2020119504A1 PCT/CN2019/122437 CN2019122437W WO2020119504A1 WO 2020119504 A1 WO2020119504 A1 WO 2020119504A1 CN 2019122437 W CN2019122437 W CN 2019122437W WO 2020119504 A1 WO2020119504 A1 WO 2020119504A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
exposure
fill light
analyzed
target
Prior art date
Application number
PCT/CN2019/122437
Other languages
French (fr)
Chinese (zh)
Inventor
范蒙
俞海
浦世亮
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020119504A1 publication Critical patent/WO2020119504A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present application relates to the field of image processing technology, in particular to an image processing method and system.
  • the information in the environment can usually be recognized based on the image taken by the camera.
  • the camera due to the variability of light, it is difficult for the camera to output high-quality images according to different ambient lights. There will always be cases where the image quality is good when the light is good and the image quality is poor when the light is poor. Therefore, In the above related technologies, the obtained image captured by the camera cannot be applied to all environments, resulting in poor information perception effect of the environment.
  • the purpose of the embodiments of the present application is to provide an image processing method and system to improve the quality of an image to be analyzed for output or intelligent analysis.
  • the specific technical solutions are as follows:
  • an image processing system including:
  • An image sensor for generating and outputting a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is based on An image signal generated by a second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures;
  • the fill light device is used to perform near-infrared fill light in a strobe manner, specifically: the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the second preset light No near-infrared fill light is applied during the exposure period of exposure;
  • An image processor for receiving the first image signal and the second image signal output by the image sensor, generating a first target image based on the first image signal, and generating a second target image based on the second image signal Target image
  • An intelligent analysis device is configured to obtain an image to be analyzed from the first target image and the second target image, and perform an intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • an embodiment of the present application provides an image processing method, including:
  • the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, wherein the first image signal is based on the first An image signal generated by a preset exposure, the second image signal is an image signal generated according to a second preset exposure, and the first preset exposure and the second preset exposure are among the multiple exposures Double exposure; during the exposure period of the first preset exposure, the fill light device performs near infrared fill light, and during the exposure period of the second preset exposure, the fill light device does not perform near infrared fill light ;
  • an image processing apparatus including:
  • An image signal obtaining module for obtaining the first image signal and the second image signal output by the image sensor, wherein the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, wherein the first An image signal is an image signal generated according to a first preset exposure, the second image signal is an image signal generated according to a second preset exposure, the first preset exposure and the second preset exposure are Two of the multiple exposures; the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the fill light during the exposure period of the second preset exposure The device does not perform near infrared fill light;
  • An image generating module configured to generate a first target image based on the first image signal, and generate a second target image based on the second image signal;
  • An image selection module configured to obtain an image to be analyzed from the first target image and the second target image
  • the image analysis module is configured to perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • an embodiment of the present application provides a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • Memory used to store computer programs
  • the processor when used to execute the program stored in the memory, implements the steps of an image processing method provided by the embodiments of the present application.
  • this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis.
  • the image quality of the image Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
  • FIG. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present application.
  • FIG 2 is another schematic structural diagram of an image processing system provided by an embodiment of the present application.
  • FIG. 3(a) is a schematic diagram of the principle when the image processing system provided by the embodiment of the present application completes image processing through multiple units;
  • FIG. 3(b) is another schematic diagram of the image processing system provided by the embodiment of the present application when image processing is completed by multiple units;
  • FIG. 3(c) is another schematic diagram of the image processing system provided by the embodiment of the present application when image processing is completed by multiple units together;
  • Figure 4 is a schematic diagram of the array corresponding to the RGBIR image sensor
  • 5(a) is a schematic diagram illustrating the relationship between exposure and near-infrared fill light according to an embodiment of the present application
  • FIG. 5(b) is another schematic diagram embodying the relationship between exposure and near-infrared fill light according to an embodiment of the present application
  • Figure 6 is a schematic diagram of the principle of spectral blocking
  • FIG. 7 is a spectral diagram of a near-infrared light source
  • FIG. 8 is a flowchart of an image processing method provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an image processing device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Visible light is an electromagnetic wave that human eyes can perceive.
  • the visible spectrum has no precise range.
  • the wavelength of electromagnetic waves that the human eye can perceive is between 400 and 760 nm (nanometer), but some people can perceive that the wavelength is about 380 to 780 nm Between electromagnetic waves.
  • Near-infrared light refers to electromagnetic waves with a wavelength in the range of 780-2526nm.
  • the visible light image refers to a color image that only perceives visible light signals, and the color image is only sensitive to the visible light band.
  • Infrared-sensitive image refers to a brightness image that perceives near-infrared light signals. It should be noted that the infrared-sensing image is not limited to a brightness image that only perceives near-infrared light signals, but it may also be a brightness image that perceives near-infrared light signals and other band light signals.
  • embodiments of the present application provide an image processing system.
  • an image processing system provided by an embodiment of the present application may include:
  • the image sensor 110 is configured to generate and output a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is According to the image signal generated by the second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures;
  • the fill light device 120 is used to perform near-infrared fill light in a strobe manner, specifically: the fill light device 120 performs near-infrared fill light during the exposure period of the first preset exposure, in the second The near-infrared fill light is not performed during the exposure period of the preset exposure;
  • the image processor 130 is configured to receive the first image signal and the second image signal output by the image sensor 110, generate a first target image according to the first image signal, and generate according to the second image signal Second target image;
  • the intelligent analysis device 140 is configured to obtain an image to be analyzed from the first target image and the second target image, and perform an intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • the image sensor 110 described in the embodiments of the present application may be exposed periodically, and may be exposed multiple times in each cycle.
  • the first image signal and the second image signal are generated and output through multiple exposures described above, and may be the first image signal and the second image signal generated and output through multiple exposures in one cycle, but are not limited to multiple passes in one cycle
  • the exposure generates and outputs the first image signal and the second image signal.
  • the fill light device 120 performs near-infrared fill light during the exposure period of the first preset exposure, but does not perform near-infrared fill light during the exposure period of the second preset exposure, the first The preset exposure and the second preset exposure are different exposures.
  • the first image signal when generating the first target image according to the first image signal generated by the first preset exposure, the first image signal can be interpolated, and the interpolated infrared-sensing image can be used as the first target
  • the second image signal when generating the second target image based on the second image signal generated by the second preset exposure, the second image signal can be subjected to infrared removal processing to obtain a visible light image, and the visible light image is used as the second target
  • the image, or the visible light image after image enhancement is used as the second target image; or, under this exposure and fill light control, when generating the second target image according to the second image signal generated by the second preset exposure, you can
  • the second image signal of the frame is subjected to wide dynamic processing, and then the infrared processed image is processed to obtain a visible light image, and the visible light image is used as a second target image.
  • the structural schematic diagram of an image processing system shown in FIG. 1 is merely an example, and should not constitute a limitation on the embodiments of the present application.
  • the light supplementing device 120 may be combined with the image sensor 110 and image processing
  • the device 130 or the intelligent analysis device 140 is electrically connected.
  • the fill light device 120 can be controlled by the connected image sensor 110, image processor 130, or intelligent analysis device 140.
  • the image sensor 110, the fill light device 120, the image processor 130, and the intelligent analysis device 140 included in the image processing system can be integrated into an electronic device.
  • the electronic device has fill light, image signal acquisition, and Image processing function.
  • the electronic device may be a camera, or other devices capable of acquiring images.
  • each component included in the image processing system may be deployed in at least two electronic devices.
  • any one of the at least two electronic devices has functions of fill light, image signal acquisition, image processing, and intelligent analysis One or more of the functions.
  • the fill light device 120 is a separate device, and the image sensor 110, the image processor 130, and the intelligent analysis device 140 are all deployed in the camera; or, the fill light device 120 is a separate device, The image sensor 110 is deployed in the camera, and the image processor 130 and the intelligent analysis device 140 are deployed in a terminal or server associated with the camera.
  • the device where the image sensor 110 is located may further include an optical lens, so that light rays enter the image sensor 110 through the optical lens.
  • the fill light device 120 adopts a stroboscopic manner to perform near-infrared fill light on the target scene, that is, to perform non-continuous near-infrared light illumination on the target scene.
  • the fill light device 120 is a device that can emit near-infrared light, such as a fill light; and the fill light of the fill light device 120 can be controlled manually, or can be controlled by a software program or a specific device The fill light of the light device 120 is reasonable.
  • the specific wavelength range of the near-infrared light used by the near-infrared fill light is not specifically limited in this application.
  • the near-infrared light source has a strong light intensity at about 850 nm. Therefore, in specific applications, in order to obtain the maximum response from the image sensor 110, this application
  • the embodiment may use near-infrared light with a wavelength of 850 nm, but it is not limited thereto.
  • the fill light device 120 provides near-infrared light in a stroboscopic manner. Specifically, it refers to performing near-infrared fill light on an external scene by controlling the change of the light and dark of the near-infrared light.
  • the bright process is considered to be near infrared fill light to the scene, and the process of the near infrared light in the fill light device 120 from the end to the start light is considered to be that the scene is not provided with near infrared light.
  • the image processing system provided by the embodiments of the present application is a single sensor perception system, that is, the image sensor 110 is a single.
  • the image sensor 110 includes a plurality of photosensitive channels, the plurality of photosensitive channels includes an IR photosensitive channel, and further includes at least two of an R photosensitive channel, a G photosensitive channel, a B photosensitive channel, and a W photosensitive channel.
  • the multiple photosensitive channels generate and output the first image signal and the second image signal through the multiple exposures;
  • R photosensitive channel is used for sensing light in the red and near infrared bands
  • G photosensitive channel is used for sensing light in the green and near infrared bands
  • B photosensitive channel is used for sensing the blue and near infrared bands.
  • Light IR means infrared sensitive channel, used to sense light in near infrared band
  • W means all-pass sensitive channel, used to sense light in full band.
  • the image sensor 110 may be an RGBIR sensor, an RGBWIR sensor, an RWBIR sensor, an RWGIR sensor, or a BWGIR sensor; where R represents an R photosensitive channel, G represents a G photosensitive channel, B represents a B photosensitive channel, and IR represents an IR photosensitive channel, W means all-pass photosensitive channel.
  • the image sensor 110 in the embodiment of the present application may be an RGBIR sensor, and the RGBIR sensor has a red-green-blue RGB photosensitive channel and an infrared IR photosensitive channel.
  • the RGB light-sensing channel can be sensitive to both the visible light band and the near-infrared band, but it is mainly used to light-sensitive the visible light band; and the IR light-sensing channel is a channel that is sensitive to the near-infrared band.
  • the arrangement of the R photosensitive channel, G photosensitive channel, B photosensitive channel, and IR photosensitive channel can be seen in FIG. 4.
  • the RGBIR image sensor senses the R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel to obtain corresponding image signals.
  • the sensitivity value corresponding to the R photosensitive channel includes the R channel value and the IR channel value
  • the sensitivity value corresponding to the G photosensitive channel includes the G channel value and the IR channel value
  • the sensitivity value corresponding to the B photosensitive channel includes the B channel value and the IR channel value
  • the sensitivity value corresponding to the IR sensitivity channel includes the IR channel value.
  • the R channel value and the IR light channel value sensed by the R photosensitive channel are different, and the G channel value and the IR channel perceived by the G light channel are different
  • the value is different, the B channel value and the IR channel value perceived by the B photosensitive channel are different, and the IR channel value perceived by the IR photosensitive channel is different.
  • the image signal captured by the RGBIR image sensor is the first image signal
  • the image captured by the RGBIR image sensor The signal is the second image signal.
  • the value of each channel of R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel in the first image signal, and each of the R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel in the second image signal is different.
  • the channel values of each photosensitive channel in the first image signal are different from the channel values of the photosensitive channel in the second image signal.
  • the optical lens of the device where the image sensor 110 is located may be provided with a filter.
  • the spectral region filtered by the filter may include [T1, T2]; wherein, 600nm ⁇ T1 ⁇ 800nm, 750nm ⁇ T2 ⁇ 1100nm, and T1 ⁇ T2.
  • the R, G, B, and IR photosensitive channels have large differences in response in the near-infrared band (650 nm to 1100 nm).
  • the near-infrared light component is removed.
  • a filter is provided on the optical lens to filter out the spectral region with a large difference in response.
  • the filter can be integrated on the above-mentioned optical lens by coating technology; in addition, the filter can be a band-stop filter or a bimodal filter with lower cost.
  • the spectral region filtered by the filter may further include a spectral region of [T3, + ⁇ ), 850nm ⁇ T3 ⁇ 1100nm, and T2 ⁇ T3.
  • the light supplementing device 120 may adopt a strobe method to perform near-infrared light supplement on the target scene. Furthermore, the fill light device performs near infrared fill light during the exposure period of the first preset exposure, which may be: during the exposure period of the first preset exposure, the start of near infrared fill light The time is not earlier than the exposure start time of the first preset exposure, and the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
  • FIG. 5(a) and FIG. 5(b) exemplarily show a schematic diagram of the relationship between the exposure time and the fill time of the near infrared fill light.
  • FIG. 5(a) two exposures are used for the image sensor 110, that is, two exposures occur within one exposure period, and the two exposures are defined as an odd exposure and an even exposure, respectively.
  • Perform near-infrared fill light on the target scene, that is, the even exposure is the first preset exposure.
  • the rising edge of near-infrared fill light is later than the start time of even exposure, and the falling edge of near-infrared fill light can be compared
  • multiple exposures are used for the image sensor 110, that is, three exposures occur within one exposure period, and the three exposures are defined as A exposure, B exposure, and C exposure, respectively.
  • the target scene performs near-infrared fill light, that is, the C exposure is the first preset exposure.
  • the rising edge of the near-infrared fill light is later than the start of the C exposure, and the falling edge of the near-infrared fill light can be shorter than the time when the C exposure ends early.
  • the exposure parameter corresponding to any exposure process of light may not be greater than the target maximum value, where the exposure parameter is the exposure duration and/or gain, and the target maximum value is the maximum value among the exposure parameters corresponding to the exposure without supplementary light .
  • a second target image without near-infrared fill light and a first target image with near-infrared fill light can be captured.
  • the fill light device 120 provides near-infrared fill light at least during the exposure process in which the image sensor 110 captures the first image signal.
  • the fill light device 120 needs to not provide near infrared fill light during the exposure process in which the image sensor 110 captures the second image signal.
  • the number of near-infrared fill lights of the fill light device 120 per unit length of time is lower than the number of exposures of the image sensor 110 within a unit time length, and the interval between each two adjacent near-infrared fill lights is one or more times exposure. In this way, the fill light device 120 has near infrared fill light only during the partial exposure of the image sensor 110.
  • the specific timing of the fill light of the fill light device 120 in multiple exposures may be set according to actual scene requirements, that is, the first preset exposure may be set according to actual scene requirements.
  • multiple exposures may include odd-numbered exposures and even-numbered exposures.
  • the configuration method of the first preset exposure may be as follows:
  • the first preset exposure is one of odd exposures
  • the second preset exposure is one of even exposures.
  • the first image signal is a signal generated according to one of the odd exposures
  • the second image signal is a signal generated according to one of the even exposures.
  • the first preset exposure is one of even-numbered exposures
  • the second preset exposure is one of odd-numbered exposures.
  • the first image signal is a signal generated according to one of the even exposures
  • the second image signal is a signal generated according to one of the odd exposures.
  • the first preset exposure is one of the specified odd exposures
  • the second preset exposure is other than the specified odd exposures One of them.
  • the first image signal is a signal generated according to one of the specified odd exposures
  • the second image signal is generated according to one of the other exposures other than the specified odd exposures signal.
  • the first preset exposure is one of the specified even-numbered exposures
  • the second preset exposure is other than the specified even-numbered exposures One of them.
  • the first image signal is a signal generated according to one of the even-numbered exposures specified
  • the second image signal is generated based on one of the other exposures other than the specified even-numbered exposure signal.
  • the timing of the fill light of the fill light device 120 in multiple exposures given above is merely an example, and should not constitute a limitation on the embodiments of the present application.
  • the intelligent analysis device 140 may select the first target image and the second target image Obtain the image to be analyzed, and perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • the intelligent analysis device 140 may acquire corresponding images to be analyzed according to scene requirements, and perform intelligent analysis on the acquired images to be analyzed.
  • the intelligent analysis device 140 may obtain the first target image from the first target image and the second target image, and determine the first target image as a Describe the image to be analyzed. In this way, the intelligent analysis device can perform intelligent analysis based on the first target image by default.
  • the intelligent analysis device 140 may obtain the second target image from the first target image and the second target image, and determine the second target image as The image to be analyzed. In this way, the intelligent analysis device can perform intelligent analysis based on the second target image by default.
  • the intelligent analysis device 140 when the received selection signal is switched to the first selection signal, acquires the first target image and determines the first target image as the pending Analyzing the image; when the received selection signal is switched to the second selection signal, acquiring the second target image and determining the second target image as the image to be analyzed. In this way, the intelligent analysis device can switch from the first target image and the second target image to perform intelligent analysis.
  • selecting the corresponding image according to the selection signal can improve the controllability of the image processing system, that is, switch the type of the acquired image according to different needs.
  • the above specific implementation manner of selecting the corresponding image according to the selection signal is only an optional implementation manner.
  • all the methods that can realize the selection signal are within the protection scope of the present application, and the present application does not limit this. Methods such as the mode selection or the default selection are reasonable.
  • the image processing system is embodied in the form of multiple units, and the multiple units jointly complete the image processing process.
  • the division of the image processing system in FIG. 3(a) does not constitute a limitation on the present application, but is merely an exemplary description.
  • the image processing system includes: a scene collection unit, a scene processing unit, a scene perception unit, and a scene fill light unit.
  • the scene collection unit may include the above-mentioned optical lens, filter and image sensor 110.
  • the scene fill light unit is the fill light device 120 described above.
  • the function implemented by the scene processing unit is the function of the image processor 130 described above.
  • the function is specifically: the scene processing unit obtains the first image signal and the second image signal output by the scene collection unit, and according to the first image signal A first target image is generated, and a second target image is generated based on the second image signal.
  • the scene perception unit is the above-mentioned intelligent analysis device 140, which is used to obtain the image to be analyzed from the first target image and the second target image, and intelligently analyze the image to be analyzed to obtain the to-be-analyzed The intelligent analysis result corresponding to the image.
  • the image processing system includes: a scene collection unit, a scene processing unit, a selection unit, a scene perception unit, and a scene fill light unit.
  • the scene collection unit may include the above-mentioned optical lens, filter and image sensor 110.
  • the scene fill light unit is the fill light device 120 described above.
  • the function implemented by the scene processing unit is the function of the image processor 130 described above. The function is specifically: the scene processing unit obtains the first image signal and the second image signal output by the scene collection unit, and according to the first image signal A first target image is generated, and a second target image is generated based on the second image signal.
  • the functions implemented by the selection unit and the scene perception unit are the functions implemented by the intelligent analysis device 140, specifically: when the received selection signal is switched to the first selection signal, the first target image is acquired and the The first target image is determined to be the image to be analyzed, and the image to be analyzed is intelligently analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed; when the received selection signal is switched to the second selection signal, the The second target image, determining the second target image as the image to be analyzed, and performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the image signal quality of the image sensor can be guaranteed, which can be used for output or intelligent analysis Image quality of the image. Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
  • the multiple exposure of the image sensor 110 specifically includes: the image sensor 110 performs the multiple exposure according to a first exposure parameter, and the parameter type of the first exposure parameter includes exposure At least one of time and exposure gain;
  • the fill light device performs near-infrared fill light during the exposure time period of the first preset exposure, specifically: the fill light device performs the exposure time of the first preset exposure according to the first fill light parameter In the segment, near infrared fill light is performed, and the parameter type of the first fill light parameter includes at least one of fill light intensity and fill light concentration.
  • the exposure parameters and/or fill light parameters may be adjusted based on image information corresponding to the image to be analyzed.
  • the image processing system provided by the embodiment of the present application may further include: a control unit 150;
  • the control unit 150 is configured to obtain brightness information corresponding to the image to be analyzed, adjust the first fill light parameter to a second fill light parameter according to the brightness information corresponding to the image to be analyzed, and expose the first exposure
  • the parameter is adjusted to the second exposure parameter; and the second fill light parameter is sent to the fill light device 120, and the second exposure parameter is sent to the image sensor 110 synchronously;
  • the fill light device 120 performs near infrared fill light during the exposure time period of the first preset exposure, specifically: the fill light device 120 receives the second fill light parameter from the control unit according to The second fill light parameter, performing near infrared fill light during the exposure time period of the first preset exposure;
  • the multiple exposure of the image sensor 110 is specifically: the image sensor 110 receives the second exposure parameter from the control unit, and performs the multiple exposure according to the second exposure parameter.
  • the image processing system shown in FIG. 2 is only an example, and should not constitute a limitation on the embodiment of the application.
  • the control unit 150 can be connected to the image in addition to the fill light device 120
  • the sensor 110, the image processor 130, or the intelligent analysis device 140 are connected so that the control unit 150 can interact with the image sensor 110, the image processor 130, or the intelligent analysis device 140 to complete image processing.
  • the control unit 150 may be located in the same device as the fill light device 120, or may be located in a different device from the fill light device 120, which is reasonable.
  • the function performed by the control unit 150 may be performed by the image processor 130 or the intelligent analysis device 140.
  • the exposure parameters of the image sensor 110 and/or the fill light device can be adjusted based on the brightness information corresponding to the image to be analyzed 120 fill light parameters.
  • the brightness information corresponding to the image to be analyzed may be obtained according to the intelligent analysis result corresponding to the image to be analyzed, which may specifically include:
  • the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
  • the average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
  • At least one target area can be selected from the areas indicated by the location information, in this case, each target area is the area where the interest target is located.
  • the adjusting the first exposure parameter to the second exposure parameter according to the brightness information corresponding to the image to be analyzed includes:
  • the adjusting the first fill light parameter to the second fill light parameter according to the brightness information corresponding to the image to be analyzed may include:
  • first predetermined threshold and the third predetermined threshold may be the same value or different values.
  • second predetermined threshold and the fourth predetermined threshold may be the same value or different values.
  • specific values of the first predetermined threshold, the second predetermined threshold, the third predetermined threshold, and the fourth predetermined threshold may be set according to empirical values.
  • first fill light parameter and the second fill light parameter are only used to distinguish the fill light parameter before and after adjustment, and do not have any limited meaning.
  • the first exposure parameter and the second exposure parameter are only used to distinguish the before and after adjustment The exposure parameters do not have any limited meaning.
  • the degree of increase or decrease of the fill light parameter and the exposure parameter can also be set based on empirical values.
  • the image processing system in this application further includes a control unit, which is used to adaptively control the fill light of the fill light device 120 and the exposure of the image sensor 110.
  • the image processing system is embodied in the form of multiple units, and the multiple units jointly complete the image processing process.
  • the division of the image processing system in FIG. 3(c) does not constitute a limitation on the present application, but is merely an exemplary description.
  • the electronic device includes: a scene collection unit, a scene processing unit, a scene perception unit, a scene fill light unit, and a control unit.
  • the scene collection unit may include: the above-mentioned optical lens, filter and image sensor 110; the scene fill-in unit is the above-mentioned fill-light device 120; the control unit is the above-mentioned control unit 150; and the scene processing unit implements the above-mentioned image Functions implemented by the processor 130; the scene awareness unit implements the functions implemented by the intelligent analysis device 140 described above.
  • control of the scene fill light unit and the scene collection unit in the system shown in FIG. 3(b) can also refer to FIG. 3(c), and the fill light control of the scene fill light unit can be performed by adding a control unit And the scene collection unit's collection control, the scene fill light unit and the scene collection unit can also adjust the fill light control of the scene fill light unit and the scene collection unit's collection control according to the intelligent analysis results fed back by the scene perception unit.
  • the image processor 130 may further include the following steps: outputting the second target image for display, for example, the output second target image may be Displayed in a display device outside the system.
  • the image processor 130 may output only the second target image, and simultaneously output the second target image and the first target image.
  • the specific image to be output is determined according to actual needs, and is not limited here.
  • the content related to generating a first target image based on the first image signal and generating a second target image based on the second image signal will be described below.
  • the image processor 130 For the above single sensor perception system, there are many specific implementation manners of the image processor 130 generating the first target image according to the first image signal. Those skilled in the art can understand that since the signals of each channel of the sensor including the IR channel and at least two non-IR channels are staggered, when directly magnifying the image signal obtained by imaging the sensor, a mosaic phenomenon is found in the image, which is clear The degree is not good, so demosaicing is needed to generate a true-detail image. In order to obtain a clear and accurate first target image, the first image signal may be demosaiced, and then the demosaiced image signal is used to generate a first target image. Based on this, in one implementation, the image processor 130 generates a first target image according to the first image signal, including:
  • interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
  • the difference-processed image may be determined as the first target image; or, the difference-processed image may be subjected to image enhancement processing, and the image after the image enhancement processing may be determined as The first target image.
  • image enhancement processing may include but is not limited to: histogram equalization, gamma correction, contrast lifting, etc., where histogram equalization converts the histogram of the original image to a probability density of 1 (ideal case) ) Image, Gamma correction uses a non-linear function (exponential function) to transform the gray value of the image, and contrast enhancement uses a linear function to transform the gray value of the image.
  • the interpolation processing according to the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
  • Each channel value of each photosensitive channel of the first image signal is interpolated to obtain each channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal; for each pixel The channel values after the interpolation processing of the corresponding photosensitive channels are averaged to obtain the image after the difference processing.
  • the interpolation algorithm used for interpolation may be a bilinear interpolation algorithm or a bicubic interpolation algorithm.
  • the embodiments of the present application do not limit the interpolation algorithm.
  • the first target image is obtained by averaging the channel values of the respective photosensitive channels corresponding to each pixel.
  • the first target image is the demosaiced image.
  • the first target image is an image including only a luminance signal.
  • the luminance value of each pixel is: the average value of the corresponding channel values in the first image signal.
  • a sensor including an IR channel and at least two non-IR channels is an RGBIR sensor, where the channel values of multiple pixels included in the neighborhood of each pixel according to the first image signal , Interpolating in an averaging manner, including:
  • Each IR photosensitive channel, R photosensitive channel, G photosensitive channel and B photosensitive channel of the first image signal are respectively interpolated to obtain the channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal
  • the average value of the channel values after interpolation processing of each photosensitive channel corresponding to each pixel is averaged to obtain the image after the difference processing.
  • the image processor 130 generating the second target image according to the second image signal may include:
  • the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter value corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel, and the IR parameter value is the corresponding pixel A product of an IR value of a position and a preset correction value, and the IR value is an IR value sensed by the IR photosensitive channel at the position of the corresponding pixel.
  • the difference-processed image may be determined as the second target image; or, the difference-processed image may be subjected to image enhancement processing, and the image after the image enhancement processing may be determined as The second target image.
  • the specific method for determining the second target image is not limited in this application.
  • the preset correction value can be set according to the actual situation.
  • the preset correction value can usually be set to 1, of course, according to the actual situation, the preset correction value can be set to 0 to Any integer or decimal in 1024, and those skilled in the art can understand that the value of the preset correction value is not limited to this.
  • the image processor 130 generates the second target image according to the second image signal, specifically:
  • the image processor 130 generating the second target image according to the second image signal may include:
  • M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
  • the number of M frames is not limited, and M is less than the total number of exposures in one exposure period.
  • High Dynamic (HDR) images have also become wide dynamic range images. Compared with low dynamic range images, there is no local overexposure, which can reflect more image details, so in this embodiment of the application A visible light image capable of obtaining more image details can be obtained, and at least two frames of second image signals can be subjected to wide dynamic synthesis processing to obtain a wide dynamic image signal.
  • the process of performing infrared removal processing on the wide dynamic image signal to obtain a visible light image can refer to the aforementioned processing process for a frame of second image signal.
  • a frame of second image signal may also be selected, and a visible light image may be generated based on the selected frame of second image signal.
  • the specific generation process is the same as the generation process when the second image signal is one frame, which will not be repeated here.
  • the intelligent analysis in this application includes but is not limited to the types of objects included in the target scene, the area where the objects are located, etc.
  • the results of the intelligent analysis may include but not limited to: types of objects included in the target scene, Coordinate information of the area, location information of interest targets, etc.
  • the intelligent analysis device 140 can detect the target object and identify the target object based on the image to be analyzed. For example, according to the image to be analyzed, detect whether there is a target object in the target scene, and the location of the existing target object; for another example, identify the specific target object in the target scene according to the image to be analyzed, and identify the category of the target object Attribute information, etc.
  • the target object may be a human face, a vehicle, a license plate, or other objects or objects.
  • the intelligent analysis device 140 may analyze the image to be analyzed based on a specific algorithm to perform image processing on the target scene, or, by using a neural network model, analyze the image to be analyzed to analyze the target scene It is reasonable to do image processing.
  • the intelligent analysis device 140 may perform feature enhancement processing on the feature image before analyzing the feature image corresponding to the image to be analyzed.
  • the intelligent analysis device 140 performs intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed, including:
  • an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
  • one or more frames of feature images can be generated, and then each frame of feature images is analyzed to obtain the results of the intelligent analysis.
  • the feature image can be subjected to feature enhancement processing.
  • the feature enhancement processing includes extreme value enhancement processing, where the extreme value enhancement processing is specifically: processing of localized extreme value filtering on the feature image.
  • the so-called extreme value may be a maximum value or a minimum value.
  • the processing of the extreme value enhancement processing includes: dividing the feature image into blocks to obtain multiple image blocks; for each image block, maximizing the pixels included in the image block, It is determined to be the processing result corresponding to the image block; each processing result is combined to obtain the image after the extreme value enhancement processing.
  • the number of image blocks is the resolution of the image after extreme value enhancement processing. It should be noted that the number of image blocks can be set according to the actual situation, which is not limited in this application. For ease of understanding, taking the number of image blocks as 100 as an example, the process of extreme value enhancement processing is introduced:
  • the maximum value in the pixels included in the image block is determined as the processing result corresponding to the image block, and 100 processing results are obtained;
  • the 100 processing results are merged according to the positional relationship of the image blocks to obtain an image containing 100 pixels.
  • the specific implementation method of the extreme value enhancement processing is not limited to the above-mentioned method. For example: you can traverse each pixel position, for each pixel position, determine a maximum value for the pixel position, and use the maximum value to update the pixel value of the pixel position, where, for any pixel position
  • the way of the large value may be: determining each pixel position adjacent to the pixel position, determining each adjacent pixel position and the maximum value of the pixels in the pixel position, and using the determined maximum value as the maximum value of the pixel position Great value.
  • an embodiment of the present application further provides an image processing method.
  • the image processing method provided in the embodiments of the present application can be applied to an electronic device having the functions of an image processor, an intelligent analysis device, and a control unit.
  • the functions performed by the electronic device are the same as the images in the above embodiments
  • the functions performed by the processor and the intelligent analysis device are the same, and the specific implementation of the image processing method may refer to the foregoing embodiments.
  • an image processing method provided by an embodiment of the present application may include:
  • S801 Obtain a first image signal and a second image signal output by the image sensor
  • the image sensor generates and outputs a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is According to the image signal generated by the second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures; at the exposure time of the first preset exposure
  • the fill light device in the section performs near infrared fill light, and the fill light device does not perform near infrared fill light in the exposure time period of the second preset exposure.
  • S804 Perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • the image sensor includes a plurality of photosensitive channels, the plurality of photosensitive channels includes an IR photosensitive channel, and further includes at least two of an R photosensitive channel, a G photosensitive channel, a B photosensitive channel, and a W photosensitive channel.
  • the photosensitive channel generates and outputs the first image signal and the second image signal through the multiple exposures;
  • R photosensitive channel is used for sensing light in the red and near infrared bands
  • G photosensitive channel is used for sensing light in the green and near infrared bands
  • B photosensitive channel is used for sensing the blue and near infrared bands.
  • Light IR means infrared sensitive channel, used to sense light in near infrared band
  • W means all-pass sensitive channel, used to sense light in full band.
  • the image sensor is an RGBIR sensor, an RGBWIR sensor, an RWBIR sensor, an RWGIR sensor, or a BWGIR sensor;
  • R represents R photosensitive channel
  • G represents G photosensitive channel
  • B represents B photosensitive channel
  • IR represents IR photosensitive channel
  • W represents all-pass photosensitive channel.
  • the acquiring the image to be analyzed from the first target image and the second target image includes:
  • the acquiring the image to be analyzed from the first target image and the second target image includes:
  • the received selection signal is switched to the second selection signal
  • the second target image is acquired, and the second target image is determined as the image to be analyzed.
  • an image processing method provided by an embodiment of the present application further includes:
  • the first control signal is used to instruct the fill light device to perform the fill time of near infrared fill light, specifically, during the exposure period of the first preset exposure, perform near infrared fill light
  • the start time of is not earlier than the exposure start time of the first preset exposure
  • the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
  • the first control signal is also used to indicate the number of fill lights of the fill light device, specifically, the number of near infrared fill lights of the fill light device per unit time length is lower than that of the image sensor The number of exposures per unit length of time, in which one or more exposures are spaced every two adjacent periods of near infrared fill light.
  • the multiple exposures of the image sensor include odd exposures and even exposures; wherein,
  • the first preset exposure is one of odd exposures
  • the second preset exposure is one of even exposures
  • the first preset exposure is one of the even exposures
  • the second preset exposure is one of the odd exposures
  • the first preset exposure is one of the specified odd exposures
  • the second preset exposure is one of the other exposures other than the specified odd exposures
  • the first preset exposure is one of the specified even-numbered exposures
  • the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
  • an image processing method provided by an embodiment of the present application further includes:
  • the acquiring brightness information corresponding to the image to be analyzed includes:
  • the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
  • the average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
  • the adjusting the first exposure parameter used for exposure of the image sensor to the second exposure parameter according to the brightness information corresponding to the image to be analyzed includes:
  • the first exposure parameter used by the image sensor for exposure is adjusted down to obtain the second exposure parameter
  • the first predetermined threshold is higher than the second predetermined threshold.
  • the adjusting the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed includes:
  • the first fill light parameter used by the fill light of the fill light device is adjusted down to obtain the second fill light parameter
  • the third predetermined threshold is higher than the fourth predetermined threshold.
  • generating the first target image according to the first image signal includes:
  • interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
  • the obtaining the first target image according to the difference processed image includes:
  • the image after the difference processing is subjected to image enhancement processing, and the image after the image enhancement processing is determined as the first target image.
  • the interpolating the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
  • An average value is obtained for each channel value after interpolation processing of each photosensitive channel corresponding to each pixel to obtain the image after the difference processing.
  • the generating the second target image according to the second image signal includes:
  • the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel Value, the IR parameter value is the product of the IR value of the corresponding pixel position and a preset correction value, and the IR value is the IR value sensed by the IR light-sensing channel at the corresponding pixel position.
  • the generating the second target image according to the second image signal includes:
  • M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
  • performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed includes:
  • an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
  • steps of fill light control and exposure control can be performed by the image processor or the intelligent analysis device, or by the controller in the device integrating the image processor, the intelligent analysis device and the controller , This is reasonable.
  • this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis.
  • the image quality of the image Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
  • an embodiment of the present application further provides an image processing device.
  • an image processing device provided by an embodiment of the present application may include:
  • the image signal obtaining module 910 is configured to obtain the first image signal and the second image signal output by the image sensor, wherein the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, the first The image signal is an image signal generated according to a first preset exposure, the second image signal is an image signal generated according to a second preset exposure, and the first preset exposure and the second preset exposure are the Two of the multiple exposures; the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the fill light device during the exposure period of the second preset exposure No near infrared fill light;
  • An image generation module 920 configured to generate a first target image based on the first image signal, and generate a second target image based on the second image signal;
  • An image selection module 930 configured to obtain an image to be analyzed from the first target image and the second target image
  • the image analysis module 940 is configured to perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  • this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis.
  • the image quality of the image Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
  • the image selection module 930 is configured to: obtain the first target image from the first target image and the second target image, and determine the first target image as the image to be analyzed Or, obtain the second target image from the first target image and the second target image, and determine the second target image as the image to be analyzed.
  • the image selection module 930 is configured to: when the received selection signal is switched to the first selection signal, acquire the first target image and determine the first target image as the image to be analyzed; When the received selection signal is switched to the second selection signal, the second target image is acquired, and the second target image is determined as the image to be analyzed.
  • an image processing device provided by an embodiment of the present application further includes:
  • the signal sending module is used to send a first control signal to the fill light device, and the first control signal is used to control the fill light device to perform near infrared fill light during the exposure period of the first preset exposure , During the exposure period of the second preset exposure, near infrared fill light is not performed.
  • the first control signal is used to instruct the fill light device to perform the fill time of near infrared fill light, specifically, during the exposure period of the first preset exposure, perform near infrared fill light
  • the start time of is not earlier than the exposure start time of the first preset exposure
  • the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
  • the first control signal is also used to indicate the number of fill lights of the fill light device, specifically, the number of near infrared fill lights of the fill light device per unit time length is lower than that of the image sensor The number of exposures per unit length of time, in which one or more exposures are spaced every two adjacent periods of near infrared fill light.
  • the multiple exposures of the image sensor include odd exposures and even exposures; the first control signal is used to instruct the fill light device to perform near infrared fill light in the first preset exposure; among them,
  • the first preset exposure is one of odd exposures
  • the second preset exposure is one of even exposures
  • the first preset exposure is one of the even exposures
  • the second preset exposure is one of the odd exposures
  • the first preset exposure is one of the specified odd exposures
  • the second preset exposure is one of the other exposures other than the specified odd exposures
  • the first preset exposure is one of the specified even-numbered exposures
  • the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
  • an image processing device provided by an embodiment of the present application further includes:
  • the parameter adjustment module is used to obtain the brightness information corresponding to the image to be analyzed; according to the brightness information corresponding to the image to be analyzed, the first fill light parameter used by the fill light of the fill light device is adjusted to the second fill light Parameter, adjusting the first exposure parameter used by the image sensor exposure to the second exposure parameter; and sending the second fill light parameter to the fill light device, and synchronously sending the second exposure to the image sensor Parameters such that the fill light device receives the second fill light parameter, performs near-infrared fill light during the exposure period of the first preset exposure according to the second fill light parameter, and the The image sensor receives the second exposure parameter, and performs the multiple exposure according to the second exposure parameter.
  • the parameter adjustment module acquiring brightness information corresponding to the image to be analyzed includes:
  • the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
  • the average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
  • the parameter adjustment module adjusts the first exposure parameter used by the image sensor to the second exposure parameter according to the brightness information corresponding to the image to be analyzed, including:
  • the first exposure parameter used by the image sensor for exposure is adjusted down to obtain the second exposure parameter
  • the first predetermined threshold is higher than the second predetermined threshold.
  • the parameter adjustment module adjusts the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed, including:
  • the first fill-light parameter used by fill-light of the fill-light device is adjusted down to obtain the second fill-light parameter
  • the first fill-in light parameter is adjusted up to obtain the second fill-in light parameter
  • the third predetermined threshold is higher than the fourth predetermined threshold.
  • the image generation module 920 generates the first target image according to the first image signal, including:
  • interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
  • the obtaining the first target image according to the difference processed image includes:
  • the image after the difference processing is subjected to image enhancement processing, and the image after the image enhancement processing is determined as the first target image.
  • the interpolating the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
  • An average value is obtained for each channel value after interpolation processing of each photosensitive channel corresponding to each pixel to obtain the image after the difference processing.
  • the image generation module 920 generating the second target image according to the second image signal includes:
  • the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel Value, the IR parameter value is the product of the IR value of the corresponding pixel position and a preset correction value, and the IR value is the IR value sensed by the IR light-sensing channel at the corresponding pixel position.
  • the image generation module 920 generates the second target image according to the second image signal, including:
  • M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
  • the image analysis module 940 performs intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed, including:
  • an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
  • an embodiment of the present application further provides an electronic device.
  • the electronic device includes a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004, where the processor 1001 communicates The interface 1002 and the memory 1003 communicate with each other through the communication bus 1004,
  • Memory 1003 used to store computer programs
  • the processor 1001 is used to implement an image processing method provided in the embodiments of the present application when executing the program stored in the memory 1003.
  • the communication bus mentioned in the above electronic device may be a peripheral component interconnection standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure (Extended Industry Standard Architecture, EISA) bus, etc.
  • PCI peripheral component interconnection standard
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located away from the foregoing processor.
  • the aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • a central processor Central Processing Unit, CPU
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • an embodiment of the present application also provides a computer-readable storage medium in which a computer program is stored, and the computer program is processed
  • the image processing method provided by the embodiments of the present application is implemented when the processor is executed.

Abstract

Provided are an image processing method and system. The system comprises: an image sensor for generating and outputting a first image signal and a second image signal by means of multiple instances of exposure, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is an image signal generated according to a second preset exposure; a light supplementing apparatus for performing near-infrared light supplementation within an exposure time period of the first preset exposure, and not performing near-infrared light supplementation within an exposure time period of the second preset exposure; an image processor for generating a first target image according to the first image signal, and generating a second target image according to the second image signal; and an intelligent analysis apparatus for acquiring images to be analyzed from the first target image and the second target image, and intelligently analyzing said images to obtain intelligent analysis results corresponding to the images to be analyzed. Therefore, the quality of images to be analyzed used for output or intelligent analysis can be improved by means of the present solution.

Description

一种图像处理方法和系统Image processing method and system
本申请要求于2018年12月12日提交中国专利局、申请号为201811517428.8发明名称为“一种图像处理方法和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 12, 2018 in the Chinese Patent Office with the application number 201811517428.8 and the invention titled "An Image Processing Method and System", the entire contents of which are incorporated by reference in this application.
技术领域Technical field
本申请涉及图像处理技术领域,特别是涉及一种图像处理方法和系统。The present application relates to the field of image processing technology, in particular to an image processing method and system.
背景技术Background technique
为了更好的获得环境中的信息,通常可以基于摄像机拍摄的图像来认知环境中的信息。但是,在相关技术中,由于光线具有多变性,摄像机难以根据不同的环境光均输出高质量的图像,总会存在光线好的时候图像质量好,光线差的时候图像质量差的情况,因此,在上述相关技术中,获得的摄像机拍摄的图像不能适用于所有环境,从而导致环境的信息感知效果不佳。In order to better obtain the information in the environment, the information in the environment can usually be recognized based on the image taken by the camera. However, in the related art, due to the variability of light, it is difficult for the camera to output high-quality images according to different ambient lights. There will always be cases where the image quality is good when the light is good and the image quality is poor when the light is poor. Therefore, In the above related technologies, the obtained image captured by the camera cannot be applied to all environments, resulting in poor information perception effect of the environment.
发明内容Summary of the invention
本申请实施例的目的在于提供一种图像处理方法和系统,以提升用于输出或者智能分析的待分析图像的质量。具体技术方案如下:The purpose of the embodiments of the present application is to provide an image processing method and system to improve the quality of an image to be analyzed for output or intelligent analysis. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种图像处理系统,包括:In a first aspect, an embodiment of the present application provides an image processing system, including:
图像传感器,用于通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;An image sensor for generating and outputting a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is based on An image signal generated by a second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures;
补光装置,用于以频闪方式进行近红外补光,具体为:所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光;The fill light device is used to perform near-infrared fill light in a strobe manner, specifically: the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the second preset light No near-infrared fill light is applied during the exposure period of exposure;
图像处理器,用于接收所述图像传感器输出的所述第一图像信号和所述第二图像信号,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;An image processor for receiving the first image signal and the second image signal output by the image sensor, generating a first target image based on the first image signal, and generating a second target image based on the second image signal Target image
智能分析装置,用于从所述第一目标图像和所述第二目标图像中获取待 分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。An intelligent analysis device is configured to obtain an image to be analyzed from the first target image and the second target image, and perform an intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
第二方面,本申请实施例提供了一种图像处理方法,包括:In a second aspect, an embodiment of the present application provides an image processing method, including:
获得图像传感器输出的第一图像信号和第二图像信号,其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光;Obtaining the first image signal and the second image signal output by the image sensor, wherein the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, wherein the first image signal is based on the first An image signal generated by a preset exposure, the second image signal is an image signal generated according to a second preset exposure, and the first preset exposure and the second preset exposure are among the multiple exposures Double exposure; during the exposure period of the first preset exposure, the fill light device performs near infrared fill light, and during the exposure period of the second preset exposure, the fill light device does not perform near infrared fill light ;
根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;Generating a first target image based on the first image signal, and generating a second target image based on the second image signal;
从所述第一目标图像和所述第二目标图像中获取待分析图像;Obtaining an image to be analyzed from the first target image and the second target image;
对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。Perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
第三方面,本申请实施例提供了一种图像处理装置,包括:In a third aspect, an embodiment of the present application provides an image processing apparatus, including:
图像信号获得模块,用于获得图像传感器输出的第一图像信号和第二图像信号,其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光;An image signal obtaining module for obtaining the first image signal and the second image signal output by the image sensor, wherein the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, wherein the first An image signal is an image signal generated according to a first preset exposure, the second image signal is an image signal generated according to a second preset exposure, the first preset exposure and the second preset exposure are Two of the multiple exposures; the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the fill light during the exposure period of the second preset exposure The device does not perform near infrared fill light;
图像生成模块,用于根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;An image generating module, configured to generate a first target image based on the first image signal, and generate a second target image based on the second image signal;
图像选择模块,用于从所述第一目标图像和所述第二目标图像中获取待分析图像;An image selection module, configured to obtain an image to be analyzed from the first target image and the second target image;
图像分析模块,用于对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。The image analysis module is configured to perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
第四方面,本申请实施例提供了包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;According to a fourth aspect, an embodiment of the present application provides a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
存储器,用于存放计算机程序;Memory, used to store computer programs;
处理器,用于执行存储器上所存放的程序时,实现本申请实施例所提供的一种图像处理方法步骤。The processor, when used to execute the program stored in the memory, implements the steps of an image processing method provided by the embodiments of the present application.
可见,本方案采用对目标场景进行近红外补光的方式,来对目标场景的光线环境进行调控,这样,图像传感器所感光的图像信号质量能够得到保证,进而可以保证用于输出或智能分析的图像的图像质量。因此,通过本方案可以提升用于输出或者智能分析的待分析图像的质量。It can be seen that this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis. The image quality of the image. Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
当然,实施本申请的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, implementing any of the products or methods of this application does not necessarily need to achieve all the advantages described above at the same time.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application and the technical solutions of the prior art, the following briefly introduces the drawings required in the embodiments and the prior art. Obviously, the drawings in the following description are only For some embodiments of the application, for those of ordinary skill in the art, without paying any creative labor, other drawings may be obtained based on these drawings.
图1为本申请实施例所提供的一种图像处理系统的结构示意图;FIG. 1 is a schematic structural diagram of an image processing system provided by an embodiment of the present application;
图2为本申请实施例所提供的一种图像处理系统的另一结构示意图;2 is another schematic structural diagram of an image processing system provided by an embodiment of the present application;
图3(a)为本申请实施例所提供的图像处理系统通过多个单元共同完成图像处理时的原理示意图;FIG. 3(a) is a schematic diagram of the principle when the image processing system provided by the embodiment of the present application completes image processing through multiple units;
图3(b)为本申请实施例所提供的图像处理系统通过多个单元共同完成图像处理时的另一原理示意图;FIG. 3(b) is another schematic diagram of the image processing system provided by the embodiment of the present application when image processing is completed by multiple units;
图3(c)为本申请实施例所提供的图像处理系统通过多个单元共同完成图像处理时的另一原理示意图;FIG. 3(c) is another schematic diagram of the image processing system provided by the embodiment of the present application when image processing is completed by multiple units together;
图4为RGBIR图像传感器所对应的阵列示意图;Figure 4 is a schematic diagram of the array corresponding to the RGBIR image sensor;
图5(a)为本申请实施例涉及的一种体现曝光与近红外补光关系的示意图;5(a) is a schematic diagram illustrating the relationship between exposure and near-infrared fill light according to an embodiment of the present application;
图5(b)为本申请实施例涉及的另一种体现曝光与近红外补光关系的示意图;FIG. 5(b) is another schematic diagram embodying the relationship between exposure and near-infrared fill light according to an embodiment of the present application;
图6为光谱阻挡的原理示意图;Figure 6 is a schematic diagram of the principle of spectral blocking;
图7为一种近红外光源的光谱图;7 is a spectral diagram of a near-infrared light source;
图8为本申请实施例所提供的一种图像处理方法的流程图;8 is a flowchart of an image processing method provided by an embodiment of the present application;
图9为本申请实施例所提供的一种图像处理装置的结构示意图;9 is a schematic structural diagram of an image processing device provided by an embodiment of the present application;
图10为本申请实施例所提供的一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clear, the following describes the present application in further detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
下面首先对本申请文件涉及的技术术语进行简单介绍。The following first briefly introduces the technical terms involved in this application document.
可见光,是人眼可以感知的电磁波,可见光谱没有精确的范围,一般人的眼睛可以感知的电磁波的波长在400~760nm(纳米)之间,但还有一些人能够感知到波长大约在380~780nm之间的电磁波。Visible light is an electromagnetic wave that human eyes can perceive. The visible spectrum has no precise range. The wavelength of electromagnetic waves that the human eye can perceive is between 400 and 760 nm (nanometer), but some people can perceive that the wavelength is about 380 to 780 nm Between electromagnetic waves.
近红外光,是指波长在780~2526nm范围内的电磁波。Near-infrared light refers to electromagnetic waves with a wavelength in the range of 780-2526nm.
可见光图像,是指仅感知可见光信号的色彩图像,该色彩图像仅对可见光波段感光。The visible light image refers to a color image that only perceives visible light signals, and the color image is only sensitive to the visible light band.
感红外图像,是指感知近红外光信号的亮度图像。需要注意的是,感红外图像并不限于仅感知近红外光信号的亮度图像,其还可以是感知近红外光信号以及其他波段光信号的亮度图像。Infrared-sensitive image refers to a brightness image that perceives near-infrared light signals. It should be noted that the infrared-sensing image is not limited to a brightness image that only perceives near-infrared light signals, but it may also be a brightness image that perceives near-infrared light signals and other band light signals.
第一方面,为了提升用于输出或者智能分析的待分析图像的质量,本申请实施例提供了一种图像处理系统。In the first aspect, in order to improve the quality of the image to be analyzed for output or intelligent analysis, embodiments of the present application provide an image processing system.
如图1所述,本申请实施例所提供的一种图像处理系统,可以包括:As shown in FIG. 1, an image processing system provided by an embodiment of the present application may include:
图像传感器110,用于通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;The image sensor 110 is configured to generate and output a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is According to the image signal generated by the second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures;
补光装置120,用于以频闪方式进行近红外补光,具体为:所述补光装置120在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光;The fill light device 120 is used to perform near-infrared fill light in a strobe manner, specifically: the fill light device 120 performs near-infrared fill light during the exposure period of the first preset exposure, in the second The near-infrared fill light is not performed during the exposure period of the preset exposure;
图像处理器130,用于接收所述图像传感器110输出的所述第一图像信号和所述第二图像信号,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;The image processor 130 is configured to receive the first image signal and the second image signal output by the image sensor 110, generate a first target image according to the first image signal, and generate according to the second image signal Second target image;
智能分析装置140,用于从所述第一目标图像和所述第二目标图像中获取待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。The intelligent analysis device 140 is configured to obtain an image to be analyzed from the first target image and the second target image, and perform an intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
需要说明的是,本申请实施例所述的图像传感器110可以周期性曝光,而每个周期内可以多次曝光。上述通过多次曝光产生并输出第一图像信号和第二图像信号,可以是一个周期内通过多次曝光产生并输出第一图像信号和第二图像信号,但并不限于一个周期内通过多次曝光产生并输出第一图像信号和第二图像信号。It should be noted that the image sensor 110 described in the embodiments of the present application may be exposed periodically, and may be exposed multiple times in each cycle. The first image signal and the second image signal are generated and output through multiple exposures described above, and may be the first image signal and the second image signal generated and output through multiple exposures in one cycle, but are not limited to multiple passes in one cycle The exposure generates and outputs the first image signal and the second image signal.
其中,所述补光装置120在所述第一预设曝光的曝光时间段中进行近红外补光,而在所述第二预设曝光的曝光时间段中不进行近红外补光,第一预设曝光和第二预设曝光是不同的曝光。Wherein, the fill light device 120 performs near-infrared fill light during the exposure period of the first preset exposure, but does not perform near-infrared fill light during the exposure period of the second preset exposure, the first The preset exposure and the second preset exposure are different exposures.
在此曝光与补光控制下,根据第一预设曝光产生的第一图像信号生成第一目标图像时,可以对第一图像信号进行插值处理,将插值处理后的感红外 图像作为第一目标图像,或者将感红外图像进行图像增强之后作为第一目标图像。Under this exposure and fill light control, when generating the first target image according to the first image signal generated by the first preset exposure, the first image signal can be interpolated, and the interpolated infrared-sensing image can be used as the first target The image, or the infrared-sensing image after image enhancement, is used as the first target image.
在此曝光与补光控制下,根据第二预设曝光产生的第二图像信号生成第二目标图像时,可以对第二图像信号进行去红外处理,得到可见光图像,将可见光图像作为第二目标图像,或者将可见光图像进行图像增强之后作为第二目标图像;或者,在此曝光与补光控制下,根据第二预设曝光产生的第二图像信号生成第二目标图像时,可以先对多帧第二图像信号进行宽动态处理,然后对宽动态处理后的图像进行去红外处理,得到可见光图像,将该可见光图像作为第二目标图像。Under this exposure and fill light control, when generating the second target image based on the second image signal generated by the second preset exposure, the second image signal can be subjected to infrared removal processing to obtain a visible light image, and the visible light image is used as the second target The image, or the visible light image after image enhancement is used as the second target image; or, under this exposure and fill light control, when generating the second target image according to the second image signal generated by the second preset exposure, you can The second image signal of the frame is subjected to wide dynamic processing, and then the infrared processed image is processed to obtain a visible light image, and the visible light image is used as a second target image.
其中,图1所示的一种图像处理系统的结构示意图仅仅作为示例,并不应该构成对本申请实施例的限定,例如:在具体应用中,该补光装置120可以与图像传感器110、图像处理器130或智能分析装置140电连接,进而,该补光装置120可以被所连接的图像传感器110、图像处理器130或智能分析装置140进行控制。Among them, the structural schematic diagram of an image processing system shown in FIG. 1 is merely an example, and should not constitute a limitation on the embodiments of the present application. For example, in specific applications, the light supplementing device 120 may be combined with the image sensor 110 and image processing The device 130 or the intelligent analysis device 140 is electrically connected. Furthermore, the fill light device 120 can be controlled by the connected image sensor 110, image processor 130, or intelligent analysis device 140.
并且,该图像处理系统所包括的图像传感器110、补光装置120、图像处理器130和智能分析装置140可以集成在一个电子设备中,此时,该电子设备同时具有补光、图像信号采集以及图像处理功能。举例而言:该电子设备可以为摄像头,或者,其他能够采集图像的设备。In addition, the image sensor 110, the fill light device 120, the image processor 130, and the intelligent analysis device 140 included in the image processing system can be integrated into an electronic device. At this time, the electronic device has fill light, image signal acquisition, and Image processing function. For example, the electronic device may be a camera, or other devices capable of acquiring images.
当然,该图像处理系统所包括的各个组件可以部署在至少两个电子设备中,此时,该至少两个电子设备中的任一电子设备具有补光、图像信号采集、图像处理和智能分析功能中的一种或多种功能。举例而言:该补光装置120为一个单独的设备,而该图像传感器110、该图像处理器130和智能分析装置140均部署在摄像头中;或者,该补光装置120为一个单独的设备,该图像传感器110部署在摄像头中,而该图像处理器130和智能分析装置140部署在与摄像头相关联的终端或服务器。Of course, each component included in the image processing system may be deployed in at least two electronic devices. At this time, any one of the at least two electronic devices has functions of fill light, image signal acquisition, image processing, and intelligent analysis One or more of the functions. For example: the fill light device 120 is a separate device, and the image sensor 110, the image processor 130, and the intelligent analysis device 140 are all deployed in the camera; or, the fill light device 120 is a separate device, The image sensor 110 is deployed in the camera, and the image processor 130 and the intelligent analysis device 140 are deployed in a terminal or server associated with the camera.
另外,可以理解的是,该图像传感器110所在的设备还可以包括光学镜头,以使得光线通过光学镜头入射至该图像传感器110。In addition, it can be understood that the device where the image sensor 110 is located may further include an optical lens, so that light rays enter the image sensor 110 through the optical lens.
需要说明的是,补光装置120采用频闪方式对目标场景进行近红外补光, 即对目标场景进行非连续性的近红外光照明。其中,该补光装置120为可以发出近红外光的装置,例如补光灯;并且,可以通过手动方式来控制该补光装置120的补光,也可以通过软件程序或特定设备来控制该补光装置120的补光,这都是合理的。It should be noted that the fill light device 120 adopts a stroboscopic manner to perform near-infrared fill light on the target scene, that is, to perform non-continuous near-infrared light illumination on the target scene. The fill light device 120 is a device that can emit near-infrared light, such as a fill light; and the fill light of the fill light device 120 can be controlled manually, or can be controlled by a software program or a specific device The fill light of the light device 120 is reasonable.
另外,对于近红外补光所使用近红外光的具体波段范围,本申请不做具体限定。而如图7所示的一种近红外光源的光谱图可知,近红外光源在850nm左右具有较强的光强,因此,在具体应用中,为了该图像传感器110可以得到最大的响应,本申请实施例可以使用波长为850nm的近红外光,当然并不局限于此。In addition, the specific wavelength range of the near-infrared light used by the near-infrared fill light is not specifically limited in this application. As shown in the spectrum diagram of a near-infrared light source shown in FIG. 7, the near-infrared light source has a strong light intensity at about 850 nm. Therefore, in specific applications, in order to obtain the maximum response from the image sensor 110, this application The embodiment may use near-infrared light with a wavelength of 850 nm, but it is not limited thereto.
并且,补光装置120以频闪方式提供近红外光,具体指:通过控制近红外光的明暗变化来对外部场景进行近红外补光,在补光装置120的近红外光从开始亮到结束亮的过程认为是对场景进行近红外补光,而在补光装置120的近红外光从结束亮到开始亮的过程认为是对场景未提供近红外光。In addition, the fill light device 120 provides near-infrared light in a stroboscopic manner. Specifically, it refers to performing near-infrared fill light on an external scene by controlling the change of the light and dark of the near-infrared light. The bright process is considered to be near infrared fill light to the scene, and the process of the near infrared light in the fill light device 120 from the end to the start light is considered to be that the scene is not provided with near infrared light.
其中,本申请实施例所提供的一种图像处理系统为单传感器感知系统,即图像传感器110为单个。The image processing system provided by the embodiments of the present application is a single sensor perception system, that is, the image sensor 110 is a single.
可选地,所述图像传感器110包括多个感光通道,所述多个感光通道包括IR感光通道,还包括R感光通道、G感光通道、B感光通道和W感光通道中的至少两种,所述多个感光通道通过所述多次曝光产生并输出所述第一图像信号和所述第二图像信号;Optionally, the image sensor 110 includes a plurality of photosensitive channels, the plurality of photosensitive channels includes an IR photosensitive channel, and further includes at least two of an R photosensitive channel, a G photosensitive channel, a B photosensitive channel, and a W photosensitive channel. The multiple photosensitive channels generate and output the first image signal and the second image signal through the multiple exposures;
其中,R感光通道,用于感应红光波段和近红外波段的光,G感光通道,用于感应绿光波段和近红外波段的光,B感光通道,用于感应蓝光波段和近红外波段的光,IR表示红外感光通道,用于感应近红外波段的光,W表示全通感光通道,用于感应全波段的光。Among them, R photosensitive channel is used for sensing light in the red and near infrared bands, G photosensitive channel is used for sensing light in the green and near infrared bands, and B photosensitive channel is used for sensing the blue and near infrared bands. Light, IR means infrared sensitive channel, used to sense light in near infrared band, W means all-pass sensitive channel, used to sense light in full band.
其中,所述图像传感器110可以为RGBIR传感器、RGBWIR传感器、RWBIR传感器、RWGIR传感器或BWGIR传感器;其中,R表示R感光通道,G表示G感光通道,B表示B感光通道,IR表示IR感光通道,W表示全通感光通道。The image sensor 110 may be an RGBIR sensor, an RGBWIR sensor, an RWBIR sensor, an RWGIR sensor, or a BWGIR sensor; where R represents an R photosensitive channel, G represents a G photosensitive channel, B represents a B photosensitive channel, and IR represents an IR photosensitive channel, W means all-pass photosensitive channel.
示例性的,本申请实施例中的该图像传感器110可以为一个RGBIR传感器,该RGBIR传感器具有红绿蓝RGB感光通道和红外IR感光通道。具体的, 该RGB感光通道既可以对可见光波段感光又可以对近红外波段感光,但是主要用于对可见光波段感光;而IR感光通道为对近红外波段感光的通道。Exemplarily, the image sensor 110 in the embodiment of the present application may be an RGBIR sensor, and the RGBIR sensor has a red-green-blue RGB photosensitive channel and an infrared IR photosensitive channel. Specifically, the RGB light-sensing channel can be sensitive to both the visible light band and the near-infrared band, but it is mainly used to light-sensitive the visible light band; and the IR light-sensing channel is a channel that is sensitive to the near-infrared band.
其中,当图像传感器110为RGBIR传感器时,R感光通道、G感光通道、B感光通道和IR感光通道排列可以参见图4。RGBIR图像传感器对R感光通道、G感光通道、B感光通道和IR感光通道进行感光,得到对应的图像信号。其中,R感光通道对应的感光值包括R通道值和IR通道值;G感光通道对应的感光值包括G通道值和IR通道值,B感光通道对应的感光值包括B通道值和IR通道值,IR感光通道对应的感光值包括IR通道值。对于补光装置120提供近红外补光和未提供近红外补光而言,R感光通道感知到的R通道值和IR感光通道值有所不同,G感光通道感知到的G通道值和IR通道值有所不同,B感光通道感知到的B通道值和IR通道值有所不同,IR感光通道感知到的IR通道值有所不同。Wherein, when the image sensor 110 is an RGBIR sensor, the arrangement of the R photosensitive channel, G photosensitive channel, B photosensitive channel, and IR photosensitive channel can be seen in FIG. 4. The RGBIR image sensor senses the R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel to obtain corresponding image signals. Among them, the sensitivity value corresponding to the R photosensitive channel includes the R channel value and the IR channel value; the sensitivity value corresponding to the G photosensitive channel includes the G channel value and the IR channel value, and the sensitivity value corresponding to the B photosensitive channel includes the B channel value and the IR channel value, The sensitivity value corresponding to the IR sensitivity channel includes the IR channel value. For the fill light device 120 providing near infrared fill light and not providing near infrared fill light, the R channel value and the IR light channel value sensed by the R photosensitive channel are different, and the G channel value and the IR channel perceived by the G light channel are different The value is different, the B channel value and the IR channel value perceived by the B photosensitive channel are different, and the IR channel value perceived by the IR photosensitive channel is different.
所以,当补光装置120提供近红外光补光时,RGBIR图像传感器捕捉到的图像信号为第一图像信号,当补光装置120没有提供近红外光补光时,RGBIR图像传感器捕捉到的图像信号为第二图像信号。其中,第一图像信号中R感光通道、G感光通道、B感光通道和IR感光通道的各通道值,与第二图像信号中R感光通道、G感光通道、B感光通道和IR感光通道的各通道值不同。相应的,对于RGBWIR传感器、RWBIR传感器、RWGIR传感器或BWGIR传感器来说,第一图像信号中每个感光通道的各通道值,与第二图像信号中该感光通道的各通道值不同。Therefore, when the fill light device 120 provides near infrared light fill light, the image signal captured by the RGBIR image sensor is the first image signal, and when the fill light device 120 does not provide near infrared light fill light, the image captured by the RGBIR image sensor The signal is the second image signal. Among them, the value of each channel of R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel in the first image signal, and each of the R photosensitive channel, G photosensitive channel, B photosensitive channel and IR photosensitive channel in the second image signal The channel value is different. Correspondingly, for the RGBWIR sensor, RWBIR sensor, RWGIR sensor or BWGIR sensor, the channel values of each photosensitive channel in the first image signal are different from the channel values of the photosensitive channel in the second image signal.
另外,对于图像传感器110为RGBIR传感器的情况而言,为了保证去除近红外光成分后颜色的准确还原,提高场景图像的质量,图像传感器110所在设备的光学镜头上可以设置有滤光片,该滤光片滤除的光谱区域可以包括[T1,T2];其中,600nm≤T1≤800nm,750nm≤T2≤1100nm,T1<T2。In addition, for the case where the image sensor 110 is an RGBIR sensor, in order to ensure accurate color restoration after removing near-infrared light components and improve the quality of the scene image, the optical lens of the device where the image sensor 110 is located may be provided with a filter. The spectral region filtered by the filter may include [T1, T2]; wherein, 600nm≤T1≤800nm, 750nm≤T2≤1100nm, and T1<T2.
参照图6,可以理解,R、G、B以及IR感光通道在近红外波段(650nm~1100nm)上响应差别较大,为了避免上述各通道在某些光谱区域响应差别大导致近红外光成分去除效果差的问题,光学镜头上设置有滤光片,以滤除上述响应差别大的光谱区域。具体的,该滤光片可以通过镀膜技术集成在上述光学镜头上;另外,该滤光片可以是带阻滤光片,也可以是成本更低的双峰滤光片,需要说明的是,该滤光片是双峰滤光片时,滤光片滤除的光谱区域还可 以包括[T3,+∞)的光谱区域,850nm≤T3≤1100nm,T2<T3。Referring to FIG. 6, it can be understood that the R, G, B, and IR photosensitive channels have large differences in response in the near-infrared band (650 nm to 1100 nm). In order to avoid the large difference in response of the above channels in certain spectral regions, the near-infrared light component is removed. For the problem of poor effect, a filter is provided on the optical lens to filter out the spectral region with a large difference in response. Specifically, the filter can be integrated on the above-mentioned optical lens by coating technology; in addition, the filter can be a band-stop filter or a bimodal filter with lower cost. It should be noted that When the filter is a bimodal filter, the spectral region filtered by the filter may further include a spectral region of [T3, +∞), 850nm≤T3≤1100nm, and T2<T3.
该补光装置120可以采用频闪方式,对该目标场景进行近红外补光。并且,所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,可以为:在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻。The light supplementing device 120 may adopt a strobe method to perform near-infrared light supplement on the target scene. Furthermore, the fill light device performs near infrared fill light during the exposure period of the first preset exposure, which may be: during the exposure period of the first preset exposure, the start of near infrared fill light The time is not earlier than the exposure start time of the first preset exposure, and the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
为了便于理解在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻,图5(a)和图5(b)示例性的给出了关于曝光时间和近红外补光的补光时刻的关系示意图。该图5(a)中,对于图像传感器110采用两次曝光,即在一个曝光周期内发生两次曝光,将该两次曝光分别定义为奇次曝光和偶次曝光,指定在偶次曝光过程中对目标场景进行近红外补光,即该偶次曝光为第一预设曝光,具体的,近红外补光的上升沿比偶次曝光开始时刻晚,近红外补光的下降沿可以比偶次曝光结束的时间早。在图5(b)中,对于图像传感器110采用多次曝光,即在一个曝光周期内发生三次曝光,将该三次曝光分别定义为A曝光、B曝光和C曝光,指定在C曝光过程中对目标场景进行近红外补光,即该C曝光为第一预设曝光,具体的,近红外补光的上升沿比C曝光开始时刻晚,近红外补光的下降沿可以比C曝光结束的时间早。In order to facilitate understanding in the exposure time period of the first preset exposure, the start time of performing near infrared fill light is not earlier than the start time of exposure of the first preset exposure, and the end time of performing near infrared fill light is not late At the exposure end time of the first preset exposure, FIG. 5(a) and FIG. 5(b) exemplarily show a schematic diagram of the relationship between the exposure time and the fill time of the near infrared fill light. In FIG. 5(a), two exposures are used for the image sensor 110, that is, two exposures occur within one exposure period, and the two exposures are defined as an odd exposure and an even exposure, respectively. Perform near-infrared fill light on the target scene, that is, the even exposure is the first preset exposure. Specifically, the rising edge of near-infrared fill light is later than the start time of even exposure, and the falling edge of near-infrared fill light can be compared The exposure ends early. In FIG. 5(b), multiple exposures are used for the image sensor 110, that is, three exposures occur within one exposure period, and the three exposures are defined as A exposure, B exposure, and C exposure, respectively. The target scene performs near-infrared fill light, that is, the C exposure is the first preset exposure. Specifically, the rising edge of the near-infrared fill light is later than the start of the C exposure, and the falling edge of the near-infrared fill light can be shorter than the time when the C exposure ends early.
另外,可以理解的是,由于近红外补光会增强图像的亮度,所以为了保证第一目标图像和第二目标图像的亮度保持在合适的亮度的范围内,在本申请实施例中,存在补光的任一次曝光过程所对应的曝光参数可以不大于目标最大值,其中,该曝光参数为曝光时长和/或增益,目标最大值为不存在补光的曝光所对应的曝光参数中的最大值。In addition, it can be understood that, since the near infrared fill light will enhance the brightness of the image, in order to ensure that the brightness of the first target image and the second target image remain within a suitable brightness range, in the embodiment of the present application, there is a supplement The exposure parameter corresponding to any exposure process of light may not be greater than the target maximum value, where the exposure parameter is the exposure duration and/or gain, and the target maximum value is the maximum value among the exposure parameters corresponding to the exposure without supplementary light .
另外,采用单个传感器多次曝光,并配合补光装置的近红外补光,可以捕捉到没有近红外补光的第二目标图像和具有近红外补光的第一目标图像。更加具体的,为了使图像传感器110捕捉到第一图像信号,补光装置120至少在图像传感器110捕捉该第一图像信号的曝光过程中提供近红外补光。为了捕捉到没有近红外补光的第二图像信号,需要补光装置120在图像传感器110捕 捉第二图像信号的曝光过程中不提供近红外补光。所以,补光装置120在单位时间长度内的近红外补光次数低于图像传感器110在单位时间长度内的曝光次数,每相邻两次近红外补光的时间段内,间隔一次或多次曝光。这样,补光装置120只在图像传感器110的部分曝光过程有近红外补光。In addition, by using multiple exposures of a single sensor and the near-infrared fill light of the fill light device, a second target image without near-infrared fill light and a first target image with near-infrared fill light can be captured. More specifically, in order for the image sensor 110 to capture the first image signal, the fill light device 120 provides near-infrared fill light at least during the exposure process in which the image sensor 110 captures the first image signal. In order to capture the second image signal without near infrared fill light, the fill light device 120 needs to not provide near infrared fill light during the exposure process in which the image sensor 110 captures the second image signal. Therefore, the number of near-infrared fill lights of the fill light device 120 per unit length of time is lower than the number of exposures of the image sensor 110 within a unit time length, and the interval between each two adjacent near-infrared fill lights is one or more times exposure. In this way, the fill light device 120 has near infrared fill light only during the partial exposure of the image sensor 110.
并且,补光装置120在多次曝光中的具体补光时机,可以根据实际场景需求进行设定,也就是,第一预设曝光可以根据实际场景需求进行设定。对于图像传感器110的多次曝光而言,多次曝光可以包括奇数次曝光和偶数次曝光,那么,第一预设曝光的配置方式可以如下:In addition, the specific timing of the fill light of the fill light device 120 in multiple exposures may be set according to actual scene requirements, that is, the first preset exposure may be set according to actual scene requirements. For multiple exposures of the image sensor 110, multiple exposures may include odd-numbered exposures and even-numbered exposures. Then, the configuration method of the first preset exposure may be as follows:
示例性的,在一种实现方式中,所述第一预设曝光为奇数次曝光中的其中一次,所述第二预设曝光为偶数次曝光中的一次。此时,第一图像信号为根据奇数次曝光中的其中一次曝光所产生的信号,而第二图像信号为根据偶数次曝光中的其中一次曝光所产生的信号。Exemplarily, in an implementation manner, the first preset exposure is one of odd exposures, and the second preset exposure is one of even exposures. At this time, the first image signal is a signal generated according to one of the odd exposures, and the second image signal is a signal generated according to one of the even exposures.
示例性的,在一种实现方式中,所述第一预设曝光为偶数次曝光中的其中一次,所述第二预设曝光为奇数次曝光中的其中一次。此时,第一图像信号为根据偶数次曝光中的其中一次曝光所产生的信号,而第二图像信号为根据奇数次曝光中的其中一次曝光所产生的信号。Exemplarily, in an implementation manner, the first preset exposure is one of even-numbered exposures, and the second preset exposure is one of odd-numbered exposures. At this time, the first image signal is a signal generated according to one of the even exposures, and the second image signal is a signal generated according to one of the odd exposures.
示例性的,在一种实现方式中,所述第一预设曝光为指定的奇数次曝光中的其中一次,所述第二预设曝光为除指定的奇数次曝光之外的其他曝光中的其中一次。此时,第一图像信号为根据指定的奇数次曝光中的其中一次曝光所产生的信号,而第二图像信号为根据除指定的奇数次曝光之外的其他曝光中的其中一次曝光所产生的信号。Exemplarily, in an implementation manner, the first preset exposure is one of the specified odd exposures, and the second preset exposure is other than the specified odd exposures One of them. At this time, the first image signal is a signal generated according to one of the specified odd exposures, and the second image signal is generated according to one of the other exposures other than the specified odd exposures signal.
示例性的,在一种实现方式中,所述第一预设曝光为指定的偶数次曝光中的其中一次,所述第二预设曝光为除指定的偶数次曝光之外的其他曝光中的其中一次。此时,第一图像信号为根据指定的偶数次曝光中的其中一次曝光所产生的信号,而第二图像信号为根据除指定的偶数次曝光之外的其他曝光中的其中一次曝光所产生的信号。Exemplarily, in an implementation manner, the first preset exposure is one of the specified even-numbered exposures, and the second preset exposure is other than the specified even-numbered exposures One of them. At this time, the first image signal is a signal generated according to one of the even-numbered exposures specified, and the second image signal is generated based on one of the other exposures other than the specified even-numbered exposure signal.
上述所给出的该补光装置120在多次曝光中的补光时机仅仅作为示例,并不应该构成对本申请实施例的限定。The timing of the fill light of the fill light device 120 in multiple exposures given above is merely an example, and should not constitute a limitation on the embodiments of the present application.
需要说明的是,在图像处理器130解析得到第二目标图像和第一目标图像后,为了解决现有技术问题,该智能分析装置140可以从所述第一目标图像和所述第二目标图像中获取待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。在具体应用中,智能分析装置140可以根据场景需求来获取相应的待分析图像,并对获取的待分析图像进行智能分析。It should be noted that, after the image processor 130 parses and obtains the second target image and the first target image, in order to solve the prior art problem, the intelligent analysis device 140 may select the first target image and the second target image Obtain the image to be analyzed, and perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed. In a specific application, the intelligent analysis device 140 may acquire corresponding images to be analyzed according to scene requirements, and perform intelligent analysis on the acquired images to be analyzed.
示例性的,在一种实现方式中,该智能分析装置140可以从所述第一目标图像和所述第二目标图像中获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像。这样智能分析装置可以默认基于第一目标图像进行智能分析。Exemplarily, in an implementation manner, the intelligent analysis device 140 may obtain the first target image from the first target image and the second target image, and determine the first target image as a Describe the image to be analyzed. In this way, the intelligent analysis device can perform intelligent analysis based on the first target image by default.
示例性的,在另一种实现方式中,该智能分析装置140可以从所述第一目标图像和所述第二目标图像中获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。这样智能分析装置可以默认基于第二目标图像进行智能分析。Exemplarily, in another implementation manner, the intelligent analysis device 140 may obtain the second target image from the first target image and the second target image, and determine the second target image as The image to be analyzed. In this way, the intelligent analysis device can perform intelligent analysis based on the second target image by default.
示例性的,在又一种实现方式中,智能分析装置140当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像;当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。这样智能分析装置可以从第一目标图像和第二目标图像中切换进行智能分析。Exemplarily, in yet another implementation manner, when the received selection signal is switched to the first selection signal, the intelligent analysis device 140 acquires the first target image and determines the first target image as the pending Analyzing the image; when the received selection signal is switched to the second selection signal, acquiring the second target image and determining the second target image as the image to be analyzed. In this way, the intelligent analysis device can switch from the first target image and the second target image to perform intelligent analysis.
可以理解的是,在该种实现方式中,根据选择信号来选择相应的图像,可以提高对图像处理系统的可控性,即根据不同的需求来切换所获取的图像的类型。并且,上述根据选择信号来选择相应的图像的具体实现方式,仅仅作为可选地的实施方式。此外,所有可以实现选择信号的方式均在本申请的保护范围内,本申请对此不做限制,类似模式选择或者默认选择等方式均是合理的。It can be understood that, in this implementation, selecting the corresponding image according to the selection signal can improve the controllability of the image processing system, that is, switch the type of the acquired image according to different needs. In addition, the above specific implementation manner of selecting the corresponding image according to the selection signal is only an optional implementation manner. In addition, all the methods that can realize the selection signal are within the protection scope of the present application, and the present application does not limit this. Methods such as the mode selection or the default selection are reasonable.
为了便于理解图像处理系统的感知过程,下面结合图3(a)和图3(b)来对图像处理系统的具体感知过程进行介绍。In order to facilitate understanding of the perception process of the image processing system, the specific perception process of the image processing system will be described below in conjunction with FIGS. 3(a) and 3(b).
如图3(a)所示,将图像处理系统以多个单元形式体现,由该多个单元 共同完成图像处理过程。当然,图3(a)对于图像处理系统的划分方式并不构成对本申请的限定,仅是示例性的说明。具体的,如图3(a)所示,该图像处理系统包括:场景采集单元、场景处理单元、场景感知单元和场景补光单元。其中,场景采集单元可以包括:上述的光学镜头、滤光片和图像传感器110。其中,场景补光单元为上述的补光装置120。其中,场景处理单元所实现的功能为上述的图像处理器130的功能,该功能具体为:场景处理单元获得场景采集单元输出的第一图像信号和第二图像信号,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像。其中,场景感知单元为上述的智能分析装置140,用于从所述第一目标图像和所述第二目标图像中获取待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。As shown in FIG. 3(a), the image processing system is embodied in the form of multiple units, and the multiple units jointly complete the image processing process. Of course, the division of the image processing system in FIG. 3(a) does not constitute a limitation on the present application, but is merely an exemplary description. Specifically, as shown in FIG. 3(a), the image processing system includes: a scene collection unit, a scene processing unit, a scene perception unit, and a scene fill light unit. The scene collection unit may include the above-mentioned optical lens, filter and image sensor 110. The scene fill light unit is the fill light device 120 described above. The function implemented by the scene processing unit is the function of the image processor 130 described above. The function is specifically: the scene processing unit obtains the first image signal and the second image signal output by the scene collection unit, and according to the first image signal A first target image is generated, and a second target image is generated based on the second image signal. Wherein, the scene perception unit is the above-mentioned intelligent analysis device 140, which is used to obtain the image to be analyzed from the first target image and the second target image, and intelligently analyze the image to be analyzed to obtain the to-be-analyzed The intelligent analysis result corresponding to the image.
在另一种方式中,如图3(b)所示,该图像处理系统包括:场景采集单元、场景处理单元、选择单元、场景感知单元和场景补光单元。其中,场景采集单元可以包括:上述的光学镜头、滤光片和图像传感器110。其中,场景补光单元为上述的补光装置120。其中,场景处理单元所实现的功能为上述的图像处理器130的功能,该功能具体为:场景处理单元获得场景采集单元输出的第一图像信号和第二图像信号,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像。其中,选择单元和场景感知单元所实现的功能为智能分析装置140所实现的功能,具体为:当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果;当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。In another way, as shown in FIG. 3(b), the image processing system includes: a scene collection unit, a scene processing unit, a selection unit, a scene perception unit, and a scene fill light unit. The scene collection unit may include the above-mentioned optical lens, filter and image sensor 110. The scene fill light unit is the fill light device 120 described above. The function implemented by the scene processing unit is the function of the image processor 130 described above. The function is specifically: the scene processing unit obtains the first image signal and the second image signal output by the scene collection unit, and according to the first image signal A first target image is generated, and a second target image is generated based on the second image signal. Wherein, the functions implemented by the selection unit and the scene perception unit are the functions implemented by the intelligent analysis device 140, specifically: when the received selection signal is switched to the first selection signal, the first target image is acquired and the The first target image is determined to be the image to be analyzed, and the image to be analyzed is intelligently analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed; when the received selection signal is switched to the second selection signal, the The second target image, determining the second target image as the image to be analyzed, and performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
可见,本方案采用对目标场景进行近红外补光的方式,来对目标场景的光线环境进行调控,这样,图像传感器所感光的图像信号质量便能够得到保证,进而可以保证用于输出或智能分析的图像的图像质量。因此,通过本方案可以提升用于输出或者智能分析的待分析图像的质量。It can be seen that this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the image signal quality of the image sensor can be guaranteed, which can be used for output or intelligent analysis Image quality of the image. Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
可选地,在一种实现方式中,所述图像传感器110多次曝光具体为:所述图像传感器110根据第一曝光参数进行所述多次曝光,所述第一曝光参数的参数类型包括曝光时间和曝光增益中的至少一种;Optionally, in an implementation manner, the multiple exposure of the image sensor 110 specifically includes: the image sensor 110 performs the multiple exposure according to a first exposure parameter, and the parameter type of the first exposure parameter includes exposure At least one of time and exposure gain;
所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,具体为:所述补光装置根据第一补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光,所述第一补光参数的参数类型包括补光强度和补光集中度中的至少一种。The fill light device performs near-infrared fill light during the exposure time period of the first preset exposure, specifically: the fill light device performs the exposure time of the first preset exposure according to the first fill light parameter In the segment, near infrared fill light is performed, and the parameter type of the first fill light parameter includes at least one of fill light intensity and fill light concentration.
可选地,为了提高图像处理的智能化程度以及图像质量,可以基于待分析图像对应的图像信息对曝光参数和/或补光参数进行调整。基于该种处理思想,如图2所示,本申请实施例所提供的图像处理系统还可以包括:控制单元150;Optionally, in order to improve the degree of intelligence of image processing and image quality, the exposure parameters and/or fill light parameters may be adjusted based on image information corresponding to the image to be analyzed. Based on this processing idea, as shown in FIG. 2, the image processing system provided by the embodiment of the present application may further include: a control unit 150;
控制单元150,用于获取所述待分析图像对应的亮度信息,根据所述待分析图像对应的亮度信息,将所述第一补光参数调整为第二补光参数,将所述第一曝光参数调整为第二曝光参数;并向所述补光装置120发送所述第二补光参数,同步向所述图像传感器110发送所述第二曝光参数;The control unit 150 is configured to obtain brightness information corresponding to the image to be analyzed, adjust the first fill light parameter to a second fill light parameter according to the brightness information corresponding to the image to be analyzed, and expose the first exposure The parameter is adjusted to the second exposure parameter; and the second fill light parameter is sent to the fill light device 120, and the second exposure parameter is sent to the image sensor 110 synchronously;
所述补光装置120在所述第一预设曝光的曝光时间段中进行近红外补光,具体为:所述补光装置120接收来自所述控制单元的所述第二补光参数,根据所述第二补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光;The fill light device 120 performs near infrared fill light during the exposure time period of the first preset exposure, specifically: the fill light device 120 receives the second fill light parameter from the control unit according to The second fill light parameter, performing near infrared fill light during the exposure time period of the first preset exposure;
所述图像传感器110多次曝光具体为:所述图像传感器110接收来自所述控制单元的所述第二曝光参数,根据所述第二曝光参数进行所述多次曝光。The multiple exposure of the image sensor 110 is specifically: the image sensor 110 receives the second exposure parameter from the control unit, and performs the multiple exposure according to the second exposure parameter.
其中,该图2所示的一种图像处理系统仅仅作为示例,并不应该构成对申请实施例的限定,例如:在具体应用中,控制单元150除了与补光装置120连接,还可以与图像传感器110、图像处理器130或智能分析装置140连接,以使得控制单元150可以与图像传感器110、图像处理器130或智能分析装置140进行交互,完成图像处理。另外,需要说明的是,控制单元150可以与补光装置120位于同一设备,也可以与补光装置120位于不同设备,这都是合理的。并且,在具体应用中,控制单元150所执行的功能可以由该图像处理器130或智能分析装置140来执行。Among them, the image processing system shown in FIG. 2 is only an example, and should not constitute a limitation on the embodiment of the application. For example, in a specific application, the control unit 150 can be connected to the image in addition to the fill light device 120 The sensor 110, the image processor 130, or the intelligent analysis device 140 are connected so that the control unit 150 can interact with the image sensor 110, the image processor 130, or the intelligent analysis device 140 to complete image processing. In addition, it should be noted that the control unit 150 may be located in the same device as the fill light device 120, or may be located in a different device from the fill light device 120, which is reasonable. Moreover, in a specific application, the function performed by the control unit 150 may be performed by the image processor 130 or the intelligent analysis device 140.
由于图像亮度可以反映图像传感器110的曝光性能以及补光装置120的补光性能,因此,可以基于待分析图像对应的的亮度信息,来调整该图像传感器110的曝光参数和/或该补光装置120的补光参数。Since the image brightness can reflect the exposure performance of the image sensor 110 and the fill light performance of the fill light device 120, the exposure parameters of the image sensor 110 and/or the fill light device can be adjusted based on the brightness information corresponding to the image to be analyzed 120 fill light parameters.
示例性的,在一种实现方式中,可以根据待分析图像对应的智能分析结果,获取待分析图像对应的亮度信息,具体可以包括:Exemplarily, in an implementation manner, the brightness information corresponding to the image to be analyzed may be obtained according to the intelligent analysis result corresponding to the image to be analyzed, which may specifically include:
当所述待分析图像对应的智能分析结果包括所述待分析图像中包括的兴趣目标的位置信息时,根据所述位置信息确定所述待分析图像中的至少一个目标区域;When the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
将所述至少一个目标区域的平均亮度,确定为所述待分析图像对应的亮度信息。The average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
其中,可以从该位置信息所指示的区域中选择至少一个目标区域,此时,每一目标区域为兴趣目标所位于的区域。Wherein, at least one target area can be selected from the areas indicated by the location information, in this case, each target area is the area where the interest target is located.
示例性的,在一种实现方式中,所述根据所述待分析图像对应的亮度信息,将所述第一曝光参数调整为第二曝光参数,包括:Exemplarily, in one implementation, the adjusting the first exposure parameter to the second exposure parameter according to the brightness information corresponding to the image to be analyzed includes:
当所述亮度信息高于第一预定阈值时,调低所述第一曝光参数,得到所述第二曝光参数;当所述亮度信息低于第二预定阈值时,调高所述第一曝光参数,得到所述第二曝光参数;其中,所述第一预定阈值高于所述第二预定阈值。When the brightness information is higher than the first predetermined threshold, lower the first exposure parameter to obtain the second exposure parameter; when the brightness information is lower than the second predetermined threshold, increase the first exposure Parameters to obtain the second exposure parameter; wherein the first predetermined threshold is higher than the second predetermined threshold.
示例性的,在一种实现方式中,所述根据所述待分析图像对应的亮度信息,将所述第一补光参数调整为第二补光参数,可以包括:Exemplarily, in an implementation manner, the adjusting the first fill light parameter to the second fill light parameter according to the brightness information corresponding to the image to be analyzed may include:
当所述亮度信息高于第三预定阈值时,调低所述第一补光参数,得到所述第二补光参数;当所述亮度信息低于第四预定阈值时,调高所述第一补光参数,得到所述第二补光参数;其中,所述第三预定阈值高于所述第四预定阈值。When the brightness information is higher than a third predetermined threshold, lower the first fill light parameter to obtain the second fill light parameter; when the brightness information is lower than a fourth predetermined threshold, raise the first light fill parameter A fill light parameter to obtain the second fill light parameter; wherein the third predetermined threshold is higher than the fourth predetermined threshold.
需要说明的是,所述第一预定阈值和第三预定阈值可以是相同的值或不同的值,类似的,所述第二预定阈值和第四预定阈值可以是相同的值或不同的值。并且,所述第一预定阈值、第二预定阈值、第三预定阈值和第四预定 阈值的具体值可以根据经验值进行设定。另外,第一补光参数和第二补光参数仅仅用于区分调整前后的补光参数,并不具有任何限定意义,类似的,第一曝光参数和第二曝光参数仅仅用于区分调整前后的曝光参数,并不具有任何限定意义。并且,补光参数和曝光参数的调高程度或调低程度也可以根据经验值进行设定。It should be noted that the first predetermined threshold and the third predetermined threshold may be the same value or different values. Similarly, the second predetermined threshold and the fourth predetermined threshold may be the same value or different values. And, the specific values of the first predetermined threshold, the second predetermined threshold, the third predetermined threshold, and the fourth predetermined threshold may be set according to empirical values. In addition, the first fill light parameter and the second fill light parameter are only used to distinguish the fill light parameter before and after adjustment, and do not have any limited meaning. Similarly, the first exposure parameter and the second exposure parameter are only used to distinguish the before and after adjustment The exposure parameters do not have any limited meaning. In addition, the degree of increase or decrease of the fill light parameter and the exposure parameter can also be set based on empirical values.
在该种实现方式中,本申请中的图像处理系统还包括一个控制单元,用于对补光装置120的补光和图像传感器110的曝光进行自适应控制。如图3(c)所示,将图像处理系统以多个单元形式体现,由该多个单元共同完成图像处理过程。当然,图3(c)对于图像处理系统的划分方式并不构成对本申请的限定,仅是示例性的说明。具体的,如图3(c)所示,该电子设备包括:场景采集单元、场景处理单元、场景感知单元、场景补光单元和控制单元。其中,场景采集单元可以包括:上述的光学镜头、滤光片和图像传感器110;场景补光单元为上述的补光装置120;控制单元为上述的控制单元150;而场景处理单元实现上述的图像处理器130所实现的功能;场景感知单元实现上述的智能分析装置140所实现的功能。In this implementation, the image processing system in this application further includes a control unit, which is used to adaptively control the fill light of the fill light device 120 and the exposure of the image sensor 110. As shown in FIG. 3(c), the image processing system is embodied in the form of multiple units, and the multiple units jointly complete the image processing process. Of course, the division of the image processing system in FIG. 3(c) does not constitute a limitation on the present application, but is merely an exemplary description. Specifically, as shown in FIG. 3(c), the electronic device includes: a scene collection unit, a scene processing unit, a scene perception unit, a scene fill light unit, and a control unit. The scene collection unit may include: the above-mentioned optical lens, filter and image sensor 110; the scene fill-in unit is the above-mentioned fill-light device 120; the control unit is the above-mentioned control unit 150; and the scene processing unit implements the above-mentioned image Functions implemented by the processor 130; the scene awareness unit implements the functions implemented by the intelligent analysis device 140 described above.
需要说明的是,图3(b)所示的系统中的场景补光单元和场景采集单元的控制也可以参照图3(c),通过增加一个控制单元来进行场景补光单元的补光控制和场景采集单元的采集控制,场景补光单元和场景采集单元还可以根据场景感知单元反馈的智能分析结果调整对场景补光单元的补光控制和场景采集单元的采集控制。It should be noted that the control of the scene fill light unit and the scene collection unit in the system shown in FIG. 3(b) can also refer to FIG. 3(c), and the fill light control of the scene fill light unit can be performed by adding a control unit And the scene collection unit's collection control, the scene fill light unit and the scene collection unit can also adjust the fill light control of the scene fill light unit and the scene collection unit's collection control according to the intelligent analysis results fed back by the scene perception unit.
一些场景中,图像处理器130在获得第二目标图像和第一目标图像之后,还可以包括以下步骤:输出所述第二目标图像,以用于显示,例如,输出的第二目标图像可以在系统之外的显示装置中显示。In some scenes, after obtaining the second target image and the first target image, the image processor 130 may further include the following steps: outputting the second target image for display, for example, the output second target image may be Displayed in a display device outside the system.
该图像处理器130可以只输出第二目标图像,以及同时输出该第二目标图像第二目标图像和第一目标图像。具体输出何种图像,根据实际需求来确定,在此不做限定。The image processor 130 may output only the second target image, and simultaneously output the second target image and the first target image. The specific image to be output is determined according to actual needs, and is not limited here.
下面对根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像相关内容进行介绍。The content related to generating a first target image based on the first image signal and generating a second target image based on the second image signal will be described below.
对于上述的单传感器感知系统而言,该图像处理器130根据该第一图像信号生成第一目标图像的具体实现方式存在多种。本领域技术人员可以理解的是,由于包含IR通道和至少两个非IR通道的传感器的各通道信号交错分布,直接放大观看该传感器成像得到的图像信号时,会发现图像中具有马赛克现象,清晰度不佳,因此需要进行去马赛克处理,生成真实细节的图像。为了得到清晰且具有真实图像细节的第一目标图像,可以第一图像信号进行去马赛克处理,然后用去马赛克处理后的图像信号生成第一目标图像。基于此,在一种实现方式中,该图像处理器130根据该第一图像信号生成第一目标图像,包括:For the above single sensor perception system, there are many specific implementation manners of the image processor 130 generating the first target image according to the first image signal. Those skilled in the art can understand that since the signals of each channel of the sensor including the IR channel and at least two non-IR channels are staggered, when directly magnifying the image signal obtained by imaging the sensor, a mosaic phenomenon is found in the image, which is clear The degree is not good, so demosaicing is needed to generate a true-detail image. In order to obtain a clear and accurate first target image, the first image signal may be demosaiced, and then the demosaiced image signal is used to generate a first target image. Based on this, in one implementation, the image processor 130 generates a first target image according to the first image signal, including:
根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,根据差值处理后的图像,得到所述第一目标图像。According to the channel values of a plurality of pixels included in the neighborhood of each pixel of the first image signal, interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
其中,可以根据实际需求,将所述差值处理后的图像确定为所述第一目标图像;或者,将所述差值处理后的图像进行图像增强处理,将图像增强处理之后的图像确定为所述第一目标图像。具体采用何种方式来确定第一目标图像,本申请不做限定。另外图像增强处理可以包括但不局限于:直方图均衡化、Gamma校正、对比度拉升等,其中,直方图均衡化将原始图像的直方图通过积分概率密度函数转化为概率密度为1(理想情况)的图像,Gamma校正采用了非线性函数(指数函数)对图像的灰度值进行变换,对比度拉升采用了线性函数对图像的灰度值进行变换。Wherein, according to actual needs, the difference-processed image may be determined as the first target image; or, the difference-processed image may be subjected to image enhancement processing, and the image after the image enhancement processing may be determined as The first target image. The specific method for determining the first target image is not limited in this application. In addition, image enhancement processing may include but is not limited to: histogram equalization, gamma correction, contrast lifting, etc., where histogram equalization converts the histogram of the original image to a probability density of 1 (ideal case) ) Image, Gamma correction uses a non-linear function (exponential function) to transform the gray value of the image, and contrast enhancement uses a linear function to transform the gray value of the image.
其中,所述根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,包括:Wherein, the interpolation processing according to the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
对所述第一图像信号的每个感光通道的各个通道值分别进行插值,得到所述第一图像信号中每个像素分别对应的每个感光通道插值处理后的各个通道值;对每个像素对应的各个感光通道插值处理后的各个通道值求取平均值,得到所述差值处理后的图像。Each channel value of each photosensitive channel of the first image signal is interpolated to obtain each channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal; for each pixel The channel values after the interpolation processing of the corresponding photosensitive channels are averaged to obtain the image after the difference processing.
其中,插值所采用的插值算法可以为双线性插值算法或双三次插值算法, 本申请实施例并不对插值算法进行限定。而通过对每个像素对应的各个感光通道的通道值求取平均值,从而得到第一目标图像,此时,该第一目标图像为去马赛克处理后的图像。该第一目标图像为仅仅包括亮度信号的图像,该第一目标图像中,每个像素的亮度值为:第一图像信号中对应的各个通道值的平均值。The interpolation algorithm used for interpolation may be a bilinear interpolation algorithm or a bicubic interpolation algorithm. The embodiments of the present application do not limit the interpolation algorithm. The first target image is obtained by averaging the channel values of the respective photosensitive channels corresponding to each pixel. In this case, the first target image is the demosaiced image. The first target image is an image including only a luminance signal. In the first target image, the luminance value of each pixel is: the average value of the corresponding channel values in the first image signal.
为了方案清楚,以包括IR通道和至少两个非IR通道的传感器为RGBIR传感器为例,其中,所述根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,包括:For the sake of clarity, a sensor including an IR channel and at least two non-IR channels is an RGBIR sensor, where the channel values of multiple pixels included in the neighborhood of each pixel according to the first image signal , Interpolating in an averaging manner, including:
对该第一图像信号的每个IR感光通道、R感光通道、G感光通道和B感光通道分别进行插值,得到该第一图像信号中每个像素分别对应的各个感光通道插值处理后的通道值;对每个像素对应的各个感光通道插值处理后的通道值求取平均值,得到所述差值处理后的图像。Each IR photosensitive channel, R photosensitive channel, G photosensitive channel and B photosensitive channel of the first image signal are respectively interpolated to obtain the channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal The average value of the channel values after interpolation processing of each photosensitive channel corresponding to each pixel is averaged to obtain the image after the difference processing.
相应的,对于上述的单传感器感知系统而言,图像处理器130根据所述第二图像信号生成所述第二目标图像的具体实现方式存在多种。示例性的,在一种实现方式中,图像处理器130根据所述第二图像信号生成所述第二目标图像,可以包括:Correspondingly, for the single sensor perception system described above, there are multiple specific implementations of the image processor 130 generating the second target image according to the second image signal. Exemplarily, in an implementation manner, the image processor 130 generating the second target image according to the second image signal may include:
遍历所述第二图像信号,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像;Traverse the second image signal, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate each channel value of each non-IR photosensitive channel after the channel value adjustment, and process according to the difference Image to obtain the second target image;
其中,针对每一非IR感光通道进行通道值调整具体为:将所述非IR感光通道的调整前的各个通道值减去与对应像素位置相应的IR参数值,所述IR参数值为对应像素位置的IR值与预设修正值的乘积,所述IR值为所述IR感光通道在所述对应像素位置感应的IR值。Wherein, the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter value corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel, and the IR parameter value is the corresponding pixel A product of an IR value of a position and a preset correction value, and the IR value is an IR value sensed by the IR photosensitive channel at the position of the corresponding pixel.
其中,可以根据实际需求,将所述差值处理后的图像确定为所述第二目标图像;或者,将所述差值处理后的图像进行图像增强处理,将图像增强处理之后的图像确定为所述第二目标图像。具体采用何种方式来确定第二目标图像,本申请不做限定。Wherein, according to actual needs, the difference-processed image may be determined as the second target image; or, the difference-processed image may be subjected to image enhancement processing, and the image after the image enhancement processing may be determined as The second target image. The specific method for determining the second target image is not limited in this application.
可以理解的是,通过将所遍历的每一非IR通道的通道值分别减去与对应 像素位置相应的IR参数值,即去除色彩信号中的近红外光成分,可以避免可见光信号中近红外光成分与RGB三类信号成分进行串扰,提升低照度下的图像效果。需要强调的是,该预设修正值可以根据实际情况进行设定,举例而言,该预设修正值通常可以设为1,当然,可以根据实际情况,将该预设修正值设为0至1024中的任一整数或小数,而本领域技术人员可以理解的是,预设修正值的取值并不局限于此。It can be understood that by subtracting the IR parameter value corresponding to the corresponding pixel position of each traversed channel value of each non-IR channel, that is, removing the near infrared light component in the color signal, the near infrared light in the visible light signal can be avoided The components cross-talk with the three types of RGB signal components to improve the image effect under low illumination. It should be emphasized that the preset correction value can be set according to the actual situation. For example, the preset correction value can usually be set to 1, of course, according to the actual situation, the preset correction value can be set to 0 to Any integer or decimal in 1024, and those skilled in the art can understand that the value of the preset correction value is not limited to this.
为了方案清楚,以包含IR通道和至少两个非IR通道的传感器为RGBIR传感器为例,该图像处理器130根据所述第二图像信号生成所述第二目标图像,具体为:For the sake of clarity, taking the sensor including the IR channel and at least two non-IR channels as RGBIR sensors as an example, the image processor 130 generates the second target image according to the second image signal, specifically:
遍历所述第二图像信号,将所遍历到的每一R感光通道、G感光通道和B感光通道的通道值减去与对应像素位置相应的IR参数值,对通道值调整后的每一R感光通道、G感光通道和B感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像。Traverse the second image signal, subtract the IR parameter value corresponding to the corresponding pixel position of the traversed channel value of each R photosensitive channel, G photosensitive channel and B photosensitive channel, and adjust each R of the channel value The channel values of the photosensitive channel, the G photosensitive channel, and the B photosensitive channel are respectively interpolated, and the second target image is obtained according to the difference-processed image.
示例性的,在一种实现方式中,图像处理器130根据所述第二图像信号生成所述第二目标图像,可以包括:Exemplarily, in an implementation manner, the image processor 130 generating the second target image according to the second image signal may include:
获取包括当前第二图像信号的M帧第二图像信号,将所述M帧第二图像信号进行宽动态合成处理,得到宽动态图像,并对所述宽动态图像进行去红外处理,得到所述第二目标图像;其中,所述去红外处理包括:Obtaining M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
遍历所述宽动态图像,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像。Traverse the wide dynamic image, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate the channel value of each non-IR photosensitive channel after the channel value adjustment, and process the image according to the difference To obtain the second target image.
其中,M帧的数量不做限定,M小于一个曝光周期内的曝光总次数。宽动态(High Dynamic Range,HDR)图像,亦成为宽动态范围图像,其相比与低动态范围图像,不存在局部过曝的现象,可以体现更多的图像细节,所以本申请实施例中为了能够获得体现有更多图像细节的可见光图像,可以对至少两帧第二图像信号进行宽动态合成处理,得到宽动态图像信号。The number of M frames is not limited, and M is less than the total number of exposures in one exposure period. High Dynamic (HDR) images have also become wide dynamic range images. Compared with low dynamic range images, there is no local overexposure, which can reflect more image details, so in this embodiment of the application A visible light image capable of obtaining more image details can be obtained, and at least two frames of second image signals can be subjected to wide dynamic synthesis processing to obtain a wide dynamic image signal.
当然,对各帧第二图像信号进行宽动态合成处理的具体实现方式属于现有技术,本申请实施例在此不做详细介绍。另外,对该宽动态图像信号进行 去红外处理,得到可见光图像的过程可以参见前述的对于一帧第二图像信号的处理过程。当然,当该补光装置120未进行近红外补光的第二图像信号为至少两帧时,也可以选择一帧第二图像信号,基于所选择的该一帧第二图像信号来生成可见光图像,具体的生成过程与上述的第二图像信号为一帧时的生成过程相同,在此不做赘述。Of course, a specific implementation manner of performing wide dynamic synthesis processing on the second image signal of each frame belongs to the prior art, and the embodiments of the present application will not be described in detail here. In addition, the process of performing infrared removal processing on the wide dynamic image signal to obtain a visible light image can refer to the aforementioned processing process for a frame of second image signal. Of course, when the second image signal of the fill light device 120 that does not perform near-infrared fill light is at least two frames, a frame of second image signal may also be selected, and a visible light image may be generated based on the selected frame of second image signal The specific generation process is the same as the generation process when the second image signal is one frame, which will not be repeated here.
本申请中的智能分析包括但不局限于目标场景中所包括对象的种类、对象所在区域进行识别等等,相应的,智能分析结果可以包括但不局限于:目标场景中所包括对象的种类、所在区域的坐标信息、兴趣目标的位置信息等。The intelligent analysis in this application includes but is not limited to the types of objects included in the target scene, the area where the objects are located, etc. Correspondingly, the results of the intelligent analysis may include but not limited to: types of objects included in the target scene, Coordinate information of the area, location information of interest targets, etc.
可以理解的是,不同的场景,图像处理需求不同。该智能分析装置140对待分析图像进行智能分析的过程中,可以基于待分析图像进行目标对象的检测,目标对象的识别。比如,根据待分析图像检测目标场景中是否存在目标对象,以及存在的目标对象的位置;再比如,根据待分析图像对目标场景中的特定目标对象进行识别,识别出目标对象的类别,目标对象的属性信息等。其中目标对象可以是人脸,车辆,车牌,或其他物体或对象。It is understandable that different scenes have different image processing requirements. During the intelligent analysis of the image to be analyzed, the intelligent analysis device 140 can detect the target object and identify the target object based on the image to be analyzed. For example, according to the image to be analyzed, detect whether there is a target object in the target scene, and the location of the existing target object; for another example, identify the specific target object in the target scene according to the image to be analyzed, and identify the category of the target object Attribute information, etc. The target object may be a human face, a vehicle, a license plate, or other objects or objects.
具体的,在基于待分析图像进行智能分析时,该智能分析装置140可以基于特定的算法分析待分析图像以对目标场景进行图像处理,或者,借助神经网络模型来分析待分析图像以对目标场景进行图像处理,这都是合理的。Specifically, when performing intelligent analysis based on the image to be analyzed, the intelligent analysis device 140 may analyze the image to be analyzed based on a specific algorithm to perform image processing on the target scene, or, by using a neural network model, analyze the image to be analyzed to analyze the target scene It is reasonable to do image processing.
可选地,为了提高信息感知的准确性,该智能分析装置140对待分析图像进行智能分析的过程中,可以在分析该待分析图像对应的特征图像之前,将特征图像进行特征增强处理。Optionally, in order to improve the accuracy of information perception, during the intelligent analysis of the image to be analyzed, the intelligent analysis device 140 may perform feature enhancement processing on the feature image before analyzing the feature image corresponding to the image to be analyzed.
相应的,该智能分析装置140对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果,包括:Correspondingly, the intelligent analysis device 140 performs intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed, including:
从所述待分析图像获取对应的特征图像进行特征增强处理,得到增强处理后的特征图像;Obtaining corresponding feature images from the image to be analyzed and performing feature enhancement processing to obtain enhanced feature images;
根据所述增强处理后的特征图像,得到所述待分析图像对应的智能分析结果,所述智能分析结果包括所述待分析图像包含的兴趣目标和/或所述兴趣目标的位置信息。Based on the enhanced feature image, an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
需要说明的是,在智能分析过程中,可以生成一帧或多帧特征图像,进 而对各帧特征图像进行分析,得到智能分析结果。而为了提高信息感知的准确性,在对任一帧特征图像进行分析之前,均可以将该特征图像进行特征增强处理。It should be noted that in the process of intelligent analysis, one or more frames of feature images can be generated, and then each frame of feature images is analyzed to obtain the results of the intelligent analysis. In order to improve the accuracy of information perception, before analyzing any frame of the feature image, the feature image can be subjected to feature enhancement processing.
需要说明的是,特征增强处理的处理方式存在多种。示例性的,在一种具体实现方式中,所述特征增强处理包括极值增强处理,其中,所述极值增强处理具体为:对所述特征图像进行局部化的极值滤波的处理。所谓的极值可以为极大值或极小值。It should be noted that there are multiple processing methods for feature enhancement processing. Exemplarily, in a specific implementation manner, the feature enhancement processing includes extreme value enhancement processing, where the extreme value enhancement processing is specifically: processing of localized extreme value filtering on the feature image. The so-called extreme value may be a maximum value or a minimum value.
可选地,所述极值增强处理的处理过程包括:对所述特征图像进行分块,得到多个图像块;针对每一图像块,将该图像块中所包括像素中的极大值,确定为该图像块对应的处理结果;将各个处理结果进行合并,得到极值增强处理后的图像。Optionally, the processing of the extreme value enhancement processing includes: dividing the feature image into blocks to obtain multiple image blocks; for each image block, maximizing the pixels included in the image block, It is determined to be the processing result corresponding to the image block; each processing result is combined to obtain the image after the extreme value enhancement processing.
其中,在对所述特征图像进行分块时,图像块之间可以存在重叠。并且,图像块的数量为极值增强处理后的图像的分辨率。需要说明的是,图像块的数量可以根据实际情况进行设定,本申请不做限定。为了便于理解,以图像块的数量为100块为例,对极值增强处理的过程进行介绍:When the feature image is divided into blocks, there may be overlap between the image blocks. In addition, the number of image blocks is the resolution of the image after extreme value enhancement processing. It should be noted that the number of image blocks can be set according to the actual situation, which is not limited in this application. For ease of understanding, taking the number of image blocks as 100 as an example, the process of extreme value enhancement processing is introduced:
该图像块的数量为100时,针对该100块中的每一图像块,将该图像块中所包括像素中的极大值确定为该图像块对应的处理结果,得到100个处理结果;将该100个处理结果按照图像块的位置关系进行合并,得到包含100个像素点的图像。When the number of the image blocks is 100, for each image block in the 100 blocks, the maximum value in the pixels included in the image block is determined as the processing result corresponding to the image block, and 100 processing results are obtained; The 100 processing results are merged according to the positional relationship of the image blocks to obtain an image containing 100 pixels.
需要强调的是,极值增强处理的具体实现方式并不局限于上述的方式。举例而言:可以遍历每个像素位置,针对每一像素位置,为该像素位置确定一个极大值,并利用该极大值更新该像素位置的像素值,其中,为任一个像素位置确定极大值的方式可以为:确定该像素位置相邻的各个像素位置,确定相邻的各个像素位置和该像素位置中像素的极大值,将所确定出的极大值作为该像素位置的极大值。It should be emphasized that the specific implementation method of the extreme value enhancement processing is not limited to the above-mentioned method. For example: you can traverse each pixel position, for each pixel position, determine a maximum value for the pixel position, and use the maximum value to update the pixel value of the pixel position, where, for any pixel position The way of the large value may be: determining each pixel position adjacent to the pixel position, determining each adjacent pixel position and the maximum value of the pixels in the pixel position, and using the determined maximum value as the maximum value of the pixel position Great value.
第二方面,相应于上述的图像处理系统,本申请实施例还提供了一种图像处理方法。In a second aspect, corresponding to the above image processing system, an embodiment of the present application further provides an image processing method.
需要说明的是,本申请实施例所提供的一种图像处理方法可以应用于具有图像处理器、智能分析装置和控制单元的功能的电子设备,该电子设备执行的功能与上述实施例中的图像处理器和智能分析装置执行的功能相同,该图像处理方法的具体实现可以参见前述实施例。It should be noted that the image processing method provided in the embodiments of the present application can be applied to an electronic device having the functions of an image processor, an intelligent analysis device, and a control unit. The functions performed by the electronic device are the same as the images in the above embodiments The functions performed by the processor and the intelligent analysis device are the same, and the specific implementation of the image processing method may refer to the foregoing embodiments.
如图8所示,本申请实施例所提供的一种图像处理方法,可以包括:As shown in FIG. 8, an image processing method provided by an embodiment of the present application may include:
S801,获得图像传感器输出的第一图像信号和第二图像信号;S801: Obtain a first image signal and a second image signal output by the image sensor;
其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光。Wherein, the image sensor generates and outputs a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is According to the image signal generated by the second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures; at the exposure time of the first preset exposure The fill light device in the section performs near infrared fill light, and the fill light device does not perform near infrared fill light in the exposure time period of the second preset exposure.
S802,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;S802, generate a first target image according to the first image signal, and generate a second target image according to the second image signal;
S803,从所述第一目标图像和所述第二目标图像中获取待分析图像;S803, obtaining an image to be analyzed from the first target image and the second target image;
S804,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。S804: Perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
其中,所述图像传感器包括多个感光通道,所述多个感光通道包括IR感光通道,还包括R感光通道、G感光通道、B感光通道和W感光通道中的至少两种,所述多个感光通道通过所述多次曝光产生并输出所述第一图像信号和所述第二图像信号;Wherein, the image sensor includes a plurality of photosensitive channels, the plurality of photosensitive channels includes an IR photosensitive channel, and further includes at least two of an R photosensitive channel, a G photosensitive channel, a B photosensitive channel, and a W photosensitive channel. The photosensitive channel generates and outputs the first image signal and the second image signal through the multiple exposures;
其中,R感光通道,用于感应红光波段和近红外波段的光,G感光通道,用于感应绿光波段和近红外波段的光,B感光通道,用于感应蓝光波段和近红外波段的光,IR表示红外感光通道,用于感应近红外波段的光,W表示全通感光通道,用于感应全波段的光。Among them, R photosensitive channel is used for sensing light in the red and near infrared bands, G photosensitive channel is used for sensing light in the green and near infrared bands, and B photosensitive channel is used for sensing the blue and near infrared bands. Light, IR means infrared sensitive channel, used to sense light in near infrared band, W means all-pass sensitive channel, used to sense light in full band.
示例性的,所述图像传感器为RGBIR传感器、RGBWIR传感器、RWBIR传感器、RWGIR传感器或BWGIR传感器;Exemplarily, the image sensor is an RGBIR sensor, an RGBWIR sensor, an RWBIR sensor, an RWGIR sensor, or a BWGIR sensor;
其中,R表示R感光通道,G表示G感光通道,B表示B感光通道,IR表示IR感光通道,W表示全通感光通道。Among them, R represents R photosensitive channel, G represents G photosensitive channel, B represents B photosensitive channel, IR represents IR photosensitive channel, and W represents all-pass photosensitive channel.
可选地,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:Optionally, the acquiring the image to be analyzed from the first target image and the second target image includes:
从所述第一目标图像和所述第二目标图像中获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像;或者,Acquiring the first target image from the first target image and the second target image, and determining the first target image as the image to be analyzed; or,
从所述第一目标图像和所述第二目标图像中获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。Obtain the second target image from the first target image and the second target image, and determine the second target image as the image to be analyzed.
可选地,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:Optionally, the acquiring the image to be analyzed from the first target image and the second target image includes:
当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像;When the received selection signal is switched to the first selection signal, acquire the first target image, and determine the first target image as the image to be analyzed;
当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。When the received selection signal is switched to the second selection signal, the second target image is acquired, and the second target image is determined as the image to be analyzed.
可选地,本申请实施例所提供的一种图像处理方法,还包括:Optionally, an image processing method provided by an embodiment of the present application further includes:
向所述补光装置发送第一控制信号,其中,所述第一控制信号用于控制所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光。Sending a first control signal to the fill light device, wherein the first control signal is used to control the fill light device to perform near-infrared fill light during the exposure period of the first preset exposure; In the exposure time period of the second preset exposure, near infrared fill light is not performed.
可选地,所述第一控制信号用于指示所述补光装置进行近红外补光的补光时长,具体为,在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻。Optionally, the first control signal is used to instruct the fill light device to perform the fill time of near infrared fill light, specifically, during the exposure period of the first preset exposure, perform near infrared fill light The start time of is not earlier than the exposure start time of the first preset exposure, and the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
可选地,所述第一控制信号还用于指示所述补光装置的补光次数,具体为,所述补光装置在单位时间长度内的近红外补光次数低于所述图像传感器在单位时间长度内的曝光次数,其中,每相邻两次近红外补光的时间段内,间隔一次或多次曝光。Optionally, the first control signal is also used to indicate the number of fill lights of the fill light device, specifically, the number of near infrared fill lights of the fill light device per unit time length is lower than that of the image sensor The number of exposures per unit length of time, in which one or more exposures are spaced every two adjacent periods of near infrared fill light.
可选地,所述图像传感器的多次曝光包括奇数次曝光和偶数次曝光;其 中,Optionally, the multiple exposures of the image sensor include odd exposures and even exposures; wherein,
所述第一预设曝光为奇数次曝光中的其中一次,所述第二预设曝光为偶数次曝光中的一次;或者,The first preset exposure is one of odd exposures, and the second preset exposure is one of even exposures; or,
所述第一预设曝光为偶数次曝光中的其中一次,所述第二预设曝光为奇数次曝光中的其中一次;或者,The first preset exposure is one of the even exposures, and the second preset exposure is one of the odd exposures; or,
所述第一预设曝光为指定的奇数次曝光中的其中一次,所述第二预设曝光为除指定的奇数次曝光之外的其他曝光中的其中一次;或者,The first preset exposure is one of the specified odd exposures, and the second preset exposure is one of the other exposures other than the specified odd exposures; or,
所述第一预设曝光为指定的偶数次曝光中的其中一次,所述第二预设曝光为除指定的偶数次曝光之外的其他曝光中的其中一次。The first preset exposure is one of the specified even-numbered exposures, and the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
可选地,本申请实施例所提供的一种图像处理方法,还包括:Optionally, an image processing method provided by an embodiment of the present application further includes:
获取所述待分析图像对应的亮度信息,根据所述待分析图像对应的亮度信息,将所述补光装置补光所利用的第一补光参数调整为第二补光参数,将所述图像传感器曝光所利用的第一曝光参数调整为第二曝光参数;Obtain the brightness information corresponding to the image to be analyzed, and adjust the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed, and convert the image The first exposure parameter used by the sensor exposure is adjusted to the second exposure parameter;
向所述补光装置发送所述第二补光参数,同步向所述图像传感器发送所述第二曝光参数,以使得:所述补光装置接收所述第二补光参数,根据所述第二补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光,以及所述图像传感器接收所述第二曝光参数,根据所述第二曝光参数进行所述多次曝光。Sending the second fill light parameter to the fill light device, and synchronously sending the second exposure parameter to the image sensor, so that the fill light device receives the second fill light parameter, based on the first Two fill light parameters, performing near-infrared fill light during the exposure period of the first preset exposure, and the image sensor receives the second exposure parameter, and performs the multiple exposure according to the second exposure parameter .
可选地,所述获取待分析图像对应的亮度信息,包括:Optionally, the acquiring brightness information corresponding to the image to be analyzed includes:
当所述待分析图像对应的智能分析结果包括所述待分析图像中包括的兴趣目标的位置信息时,根据所述位置信息确定所述待分析图像中的至少一个目标区域;When the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
将所述至少一个目标区域的平均亮度,确定为所述待分析图像对应的亮度信息。The average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
可选地,所述根据所述待分析图像对应的亮度信息,将所述图像传感器曝光所利用的第一曝光参数调整为第二曝光参数,包括:Optionally, the adjusting the first exposure parameter used for exposure of the image sensor to the second exposure parameter according to the brightness information corresponding to the image to be analyzed includes:
当所述亮度信息高于第一预定阈值时,调低所述图像传感器曝光所利用的第一曝光参数,得到所述第二曝光参数;When the brightness information is higher than the first predetermined threshold, the first exposure parameter used by the image sensor for exposure is adjusted down to obtain the second exposure parameter;
当所述亮度信息低于第二预定阈值时,调高所述第一曝光参数,得到所述第二曝光参数;When the brightness information is lower than the second predetermined threshold, increase the first exposure parameter to obtain the second exposure parameter;
其中,所述第一预定阈值高于所述第二预定阈值。Wherein the first predetermined threshold is higher than the second predetermined threshold.
可选地,所述根据所述待分析图像对应的亮度信息,将所述补光装置所利用的第一补光参数调整为第二补光参数,包括:Optionally, the adjusting the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed includes:
当所述亮度信息高于第三预定阈值时,调低所述补光装置补光所利用的第一补光参数,得到所述第二补光参数;When the brightness information is higher than a third predetermined threshold, the first fill light parameter used by the fill light of the fill light device is adjusted down to obtain the second fill light parameter;
当所述亮度信息低于第四预定阈值时,调高所述第一补光参数,得到所述第二补光参数;When the brightness information is lower than a fourth predetermined threshold, adjust the first fill light parameter to obtain the second fill light parameter;
其中,所述第三预定阈值高于所述第四预定阈值。Wherein the third predetermined threshold is higher than the fourth predetermined threshold.
可选地,根据所述第一图像信号生成所述第一目标图像,包括:Optionally, generating the first target image according to the first image signal includes:
根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,根据差值处理后的图像,得到所述第一目标图像。According to the channel values of a plurality of pixels included in the neighborhood of each pixel of the first image signal, interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
可选地,所述根据差值处理后的图像,得到所述第一目标图像,包括:Optionally, the obtaining the first target image according to the difference processed image includes:
将所述差值处理后的图像确定为所述第一目标图像;或者,Determining the image after the difference processing as the first target image; or,
将所述差值处理后的图像进行图像增强处理,将图像增强处理之后的图像确定为所述第一目标图像。The image after the difference processing is subjected to image enhancement processing, and the image after the image enhancement processing is determined as the first target image.
可选地,所述根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,包括:Optionally, the interpolating the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
对所述第一图像信号的每个感光通道的各个通道值分别进行插值,得到所述第一图像信号中每个像素分别对应的每个感光通道插值处理后的各个通道值;Respectively interpolating the channel values of each photosensitive channel of the first image signal to obtain each channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal;
对每个像素对应的各个感光通道插值处理后的各个通道值求取平均值,得到所述差值处理后的图像。An average value is obtained for each channel value after interpolation processing of each photosensitive channel corresponding to each pixel to obtain the image after the difference processing.
可选地,所述根据所述第二图像信号生成所述第二目标图像,包括:Optionally, the generating the second target image according to the second image signal includes:
遍历所述第二图像信号,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像;其中,针对每一非IR感光通道进行通道值调整具体为:将所述非IR感光通道的调整前的各个通道值减去与对应像素位置相应的IR参数值,所述IR参数值为对应像素位置的IR值与预设修正值的乘积,所述IR值为所述IR感光通道在所述对应像素位置感应的IR值。Traverse the second image signal, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate each channel value of each non-IR photosensitive channel after the channel value adjustment, and process according to the difference Image to obtain the second target image; wherein the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel Value, the IR parameter value is the product of the IR value of the corresponding pixel position and a preset correction value, and the IR value is the IR value sensed by the IR light-sensing channel at the corresponding pixel position.
可选地,所述根据所述第二图像信号生成所述第二目标图像,包括:Optionally, the generating the second target image according to the second image signal includes:
获取包括当前第二图像信号的M帧第二图像信号,将所述M帧第二图像信号进行宽动态合成处理,得到宽动态图像,并对所述宽动态图像进行去红外处理,得到所述第二目标图像;其中,所述去红外处理包括:Obtaining M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
遍历所述宽动态图像,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像。Traverse the wide dynamic image, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate the channel value of each non-IR photosensitive channel after the channel value adjustment, and process the image according to the difference To obtain the second target image.
可选地,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果,包括:Optionally, performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed includes:
从所述待分析图像获取对应的特征图像进行特征增强处理,得到增强处理后的特征图像;Obtaining corresponding feature images from the image to be analyzed and performing feature enhancement processing to obtain enhanced feature images;
根据所述增强处理后的特征图像,得到所述待分析图像对应的智能分析结果,所述智能分析结果包括所述待分析图像包含的兴趣目标和/或所述兴趣目标的位置信息。Based on the enhanced feature image, an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
需要强调的是,关于补光控制和曝光控制的步骤内容可以由图像处理器、或智能分析装置来执行,也可以由集成图像处理器、智能分析装置和控制器的设备中的控制器来执行,这都是合理的。It should be emphasized that the steps of fill light control and exposure control can be performed by the image processor or the intelligent analysis device, or by the controller in the device integrating the image processor, the intelligent analysis device and the controller , This is reasonable.
另外,关于本申请实施例所提供的图像处理方法的各个步骤的具体实现方式及解释内容,可以参见上述第一方面所提供的图像处理系统中相应的描述内容,在此不做赘述。In addition, for the specific implementation and explanation of each step of the image processing method provided in the embodiments of the present application, reference may be made to the corresponding description content in the image processing system provided in the first aspect above, and details are not described herein again.
可见,本方案采用对目标场景进行近红外补光的方式,来对目标场景的光线环境进行调控,这样,图像传感器所感光的图像信号质量能够得到保证,进而可以保证用于输出或智能分析的图像的图像质量。因此,通过本方案可以提升用于输出或者智能分析的待分析图像的质量。It can be seen that this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis. The image quality of the image. Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
相应于上述的方法实施例,本申请实施例还提供了一种图像处理装置。如图9所示,本申请实施例所提供的一种图像处理装置,可以包括:Corresponding to the above method embodiment, an embodiment of the present application further provides an image processing device. As shown in FIG. 9, an image processing device provided by an embodiment of the present application may include:
图像信号获得模块910,用于获得图像传感器输出的第一图像信号和第二图像信号,其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光;The image signal obtaining module 910 is configured to obtain the first image signal and the second image signal output by the image sensor, wherein the image sensor generates and outputs the first image signal and the second image signal through multiple exposures, the first The image signal is an image signal generated according to a first preset exposure, the second image signal is an image signal generated according to a second preset exposure, and the first preset exposure and the second preset exposure are the Two of the multiple exposures; the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the fill light device during the exposure period of the second preset exposure No near infrared fill light;
图像生成模块920,用于根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;An image generation module 920, configured to generate a first target image based on the first image signal, and generate a second target image based on the second image signal;
图像选择模块930,用于从所述第一目标图像和所述第二目标图像中获取待分析图像;An image selection module 930, configured to obtain an image to be analyzed from the first target image and the second target image;
图像分析模块940,用于对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。The image analysis module 940 is configured to perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
可见,本方案采用对目标场景进行近红外补光的方式,来对目标场景的光线环境进行调控,这样,图像传感器所感光的图像信号质量能够得到保证,进而可以保证用于输出或智能分析的图像的图像质量。因此,通过本方案可以提升用于输出或者智能分析的待分析图像的质量。It can be seen that this solution uses near infrared fill light to the target scene to regulate the light environment of the target scene, so that the quality of the image signal received by the image sensor can be guaranteed, which in turn can be guaranteed for output or intelligent analysis. The image quality of the image. Therefore, this solution can improve the quality of the image to be analyzed for output or intelligent analysis.
可选地,所述图像选择模块930用于:从所述第一目标图像和所述第二目标图像中获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像;或者,从所述第一目标图像和所述第二目标图像中获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。Optionally, the image selection module 930 is configured to: obtain the first target image from the first target image and the second target image, and determine the first target image as the image to be analyzed Or, obtain the second target image from the first target image and the second target image, and determine the second target image as the image to be analyzed.
可选地,所述图像选择模块930用于:当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为所述待分析图像;当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为所述待分析图像。Optionally, the image selection module 930 is configured to: when the received selection signal is switched to the first selection signal, acquire the first target image and determine the first target image as the image to be analyzed; When the received selection signal is switched to the second selection signal, the second target image is acquired, and the second target image is determined as the image to be analyzed.
可选地,本申请实施例所提供的一种图像处理装置,还包括:Optionally, an image processing device provided by an embodiment of the present application further includes:
信号发送模块,用于向所述补光装置发送第一控制信号,所述第一控制信号用于控制所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光。The signal sending module is used to send a first control signal to the fill light device, and the first control signal is used to control the fill light device to perform near infrared fill light during the exposure period of the first preset exposure , During the exposure period of the second preset exposure, near infrared fill light is not performed.
可选地,所述第一控制信号用于指示所述补光装置进行近红外补光的补光时长,具体为,在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻。Optionally, the first control signal is used to instruct the fill light device to perform the fill time of near infrared fill light, specifically, during the exposure period of the first preset exposure, perform near infrared fill light The start time of is not earlier than the exposure start time of the first preset exposure, and the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
可选地,所述第一控制信号还用于指示所述补光装置的补光次数,具体为,所述补光装置在单位时间长度内的近红外补光次数低于所述图像传感器在单位时间长度内的曝光次数,其中,每相邻两次近红外补光的时间段内,间隔一次或多次曝光。Optionally, the first control signal is also used to indicate the number of fill lights of the fill light device, specifically, the number of near infrared fill lights of the fill light device per unit time length is lower than that of the image sensor The number of exposures per unit length of time, in which one or more exposures are spaced every two adjacent periods of near infrared fill light.
可选地,所述图像传感器的多次曝光包括奇数次曝光和偶数次曝光;所述第一控制信号用于指示所述补光装置在所述第一预设曝光中进行近红外补光;其中,Optionally, the multiple exposures of the image sensor include odd exposures and even exposures; the first control signal is used to instruct the fill light device to perform near infrared fill light in the first preset exposure; among them,
所述第一预设曝光为奇数次曝光中的其中一次,所述第二预设曝光为偶数次曝光中的一次;或者,The first preset exposure is one of odd exposures, and the second preset exposure is one of even exposures; or,
所述第一预设曝光为偶数次曝光中的其中一次,所述第二预设曝光为奇数次曝光中的其中一次;或者,The first preset exposure is one of the even exposures, and the second preset exposure is one of the odd exposures; or,
所述第一预设曝光为指定的奇数次曝光中的其中一次,所述第二预设曝光为除指定的奇数次曝光之外的其他曝光中的其中一次;或者,The first preset exposure is one of the specified odd exposures, and the second preset exposure is one of the other exposures other than the specified odd exposures; or,
所述第一预设曝光为指定的偶数次曝光中的其中一次,所述第二预设曝光为除指定的偶数次曝光之外的其他曝光中的其中一次。The first preset exposure is one of the specified even-numbered exposures, and the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
可选地,本申请实施例所提供的一种图像处理装置,还包括:Optionally, an image processing device provided by an embodiment of the present application further includes:
参数调整模块,用于获取所述待分析图像对应的亮度信息;根据所述待分析图像对应的亮度信息,将所述补光装置补光所利用的第一补光参数调整为第二补光参数,将所述图像传感器曝光所利用的第一曝光参数调整为第二曝光参数;并向所述补光装置发送所述第二补光参数,同步向所述图像传感器发送所述第二曝光参数,以使得:所述补光装置接收所述第二补光参数,根据所述第二补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光,以及所述图像传感器接收所述第二曝光参数,根据所述第二曝光参数进行所述多次曝光。The parameter adjustment module is used to obtain the brightness information corresponding to the image to be analyzed; according to the brightness information corresponding to the image to be analyzed, the first fill light parameter used by the fill light of the fill light device is adjusted to the second fill light Parameter, adjusting the first exposure parameter used by the image sensor exposure to the second exposure parameter; and sending the second fill light parameter to the fill light device, and synchronously sending the second exposure to the image sensor Parameters such that the fill light device receives the second fill light parameter, performs near-infrared fill light during the exposure period of the first preset exposure according to the second fill light parameter, and the The image sensor receives the second exposure parameter, and performs the multiple exposure according to the second exposure parameter.
可选地,所述参数调整模块获取待分析图像对应的亮度信息,包括:Optionally, the parameter adjustment module acquiring brightness information corresponding to the image to be analyzed includes:
当所述待分析图像对应的智能分析结果包括所述待分析图像中包括的兴趣目标的位置信息时,根据所述位置信息确定所述待分析图像中的至少一个目标区域;When the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
将所述至少一个目标区域的平均亮度,确定为所述待分析图像对应的亮度信息。The average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
可选地,所述参数调整模块根据所述待分析图像对应的亮度信息,将所述图像传感器曝光所利用的第一曝光参数调整为第二曝光参数,包括:Optionally, the parameter adjustment module adjusts the first exposure parameter used by the image sensor to the second exposure parameter according to the brightness information corresponding to the image to be analyzed, including:
当所述亮度信息高于第一预定阈值时,调低所述图像传感器曝光所利用的第一曝光参数,得到所述第二曝光参数;When the brightness information is higher than the first predetermined threshold, the first exposure parameter used by the image sensor for exposure is adjusted down to obtain the second exposure parameter;
当所述亮度信息低于第二预定阈值时,调高所述第一曝光参数,得到所述第二曝光参数;When the brightness information is lower than the second predetermined threshold, increase the first exposure parameter to obtain the second exposure parameter;
其中,所述第一预定阈值高于所述第二预定阈值。Wherein the first predetermined threshold is higher than the second predetermined threshold.
可选地,所述参数调整模块根据所述待分析图像对应的亮度信息,将所述补光装置所利用的第一补光参数调整为第二补光参数,包括:Optionally, the parameter adjustment module adjusts the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed, including:
当所述亮度信息高于第三预定阈值时,调低所述补光装置补光所利用的第一补光参数,得到所述第二补光参数;When the brightness information is higher than a third predetermined threshold, the first fill-light parameter used by fill-light of the fill-light device is adjusted down to obtain the second fill-light parameter;
当所述亮度信息低于第四预定阈值时,调高所述第一补光参数,得到所 述第二补光参数;When the brightness information is lower than a fourth predetermined threshold, the first fill-in light parameter is adjusted up to obtain the second fill-in light parameter;
其中,所述第三预定阈值高于所述第四预定阈值。Wherein the third predetermined threshold is higher than the fourth predetermined threshold.
可选地,所述图像生成模块920根据所述第一图像信号生成所述第一目标图像,包括:Optionally, the image generation module 920 generates the first target image according to the first image signal, including:
根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,根据差值处理后的图像,得到所述第一目标图像。According to the channel values of a plurality of pixels included in the neighborhood of each pixel of the first image signal, interpolation processing is performed in an averaging manner, and the first target image is obtained according to the image after difference processing.
可选地,所述根据差值处理后的图像,得到所述第一目标图像,包括:Optionally, the obtaining the first target image according to the difference processed image includes:
将所述差值处理后的图像确定为所述第一目标图像;或者,Determining the image after the difference processing as the first target image; or,
将所述差值处理后的图像进行图像增强处理,将图像增强处理之后的图像确定为所述第一目标图像。The image after the difference processing is subjected to image enhancement processing, and the image after the image enhancement processing is determined as the first target image.
可选地,所述根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,包括:Optionally, the interpolating the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal in an average manner includes:
对所述第一图像信号的每个感光通道的各个通道值分别进行插值,得到所述第一图像信号中每个像素分别对应的每个感光通道插值处理后的各个通道值;Respectively interpolating the channel values of each photosensitive channel of the first image signal to obtain each channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal;
对每个像素对应的各个感光通道插值处理后的各个通道值求取平均值,得到所述差值处理后的图像。An average value is obtained for each channel value after interpolation processing of each photosensitive channel corresponding to each pixel to obtain the image after the difference processing.
可选地,所述图像生成模块920根据所述第二图像信号生成所述第二目标图像,包括:Optionally, the image generation module 920 generating the second target image according to the second image signal includes:
遍历所述第二图像信号,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像;其中,针对每一非IR感光通道进行通道值调整具体为:将所述非IR感光通道的调整前的各个通道值减去与对应像素位置相应的IR参数值,所述IR参数值为对应像素位置的IR值与预设修正值的乘积,所述IR值为所述IR感光通道在所述对应像素位置感应的IR值。Traverse the second image signal, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate each channel value of each non-IR photosensitive channel after the channel value adjustment, and process according to the difference Image to obtain the second target image; wherein the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel Value, the IR parameter value is the product of the IR value of the corresponding pixel position and a preset correction value, and the IR value is the IR value sensed by the IR light-sensing channel at the corresponding pixel position.
可选地,所述图像生成模块920根据所述第二图像信号生成所述第二目标 图像,包括:Optionally, the image generation module 920 generates the second target image according to the second image signal, including:
获取包括当前第二图像信号的M帧第二图像信号,将所述M帧第二图像信号进行宽动态合成处理,得到宽动态图像,并对所述宽动态图像进行去红外处理,得到所述第二目标图像;其中,所述去红外处理包括:Obtaining M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the A second target image; wherein the infrared removal processing includes:
遍历所述宽动态图像,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到所述第二目标图像。Traverse the wide dynamic image, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate each channel value of each non-IR photosensitive channel after the channel value adjustment, and process the image according to the difference To obtain the second target image.
可选地,所述图像分析模块940对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果,包括:Optionally, the image analysis module 940 performs intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed, including:
从所述待分析图像获取对应的特征图像进行特征增强处理,得到增强处理后的特征图像;Obtaining corresponding feature images from the image to be analyzed and performing feature enhancement processing to obtain enhanced feature images;
根据所述增强处理后的特征图像,得到所述待分析图像对应的智能分析结果,所述智能分析结果包括所述待分析图像包含的兴趣目标和/或所述兴趣目标的位置信息。Based on the enhanced feature image, an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
相应于上述的方法,本申请实施例还提供了一种电子设备,如图10所示,该电子设备包括处理器1001、通信接口1002、存储器1003和通信总线1004,其中,处理器1001,通信接口1002,存储器1003通过通信总线1004完成相互间的通信,Corresponding to the above method, an embodiment of the present application further provides an electronic device. As shown in FIG. 10, the electronic device includes a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004, where the processor 1001 communicates The interface 1002 and the memory 1003 communicate with each other through the communication bus 1004,
存储器1003,用于存放计算机程序; Memory 1003, used to store computer programs;
处理器1001,用于执行存储器1003上所存放的程序时,实现本申请实施例所提供的一种图像处理方法。The processor 1001 is used to implement an image processing method provided in the embodiments of the present application when executing the program stored in the memory 1003.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnection standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), or non-volatile memory (Non-Volatile Memory, NVM), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the foregoing processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The aforementioned processor may be a general-purpose processor, including a central processor (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), dedicated integration Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
另外,基于本申请实施例所提供的一种图像处理方法,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例所提供的一种图像处理方法。In addition, based on an image processing method provided by an embodiment of the present application, an embodiment of the present application also provides a computer-readable storage medium in which a computer program is stored, and the computer program is processed The image processing method provided by the embodiments of the present application is implemented when the processor is executed.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。以上所述仅为本 申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The embodiments in this specification are described in a related manner. The same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment. The above are only the preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in this application Within the scope of protection.

Claims (35)

  1. 一种图像处理系统,其特征在于,包括:An image processing system, characterized in that it includes:
    图像传感器,用于通过多次曝光产生并输出第一图像信号和第二图像信号,其中,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;An image sensor for generating and outputting a first image signal and a second image signal through multiple exposures, wherein the first image signal is an image signal generated according to a first preset exposure, and the second image signal is based on An image signal generated by a second preset exposure, the first preset exposure and the second preset exposure are two of the multiple exposures;
    补光装置,用于以频闪方式进行近红外补光,具体为:所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光;The fill light device is used to perform near-infrared fill light in a strobe manner, specifically: the fill light device performs near-infrared fill light during the exposure period of the first preset exposure, and the second preset light No near-infrared fill light is applied during the exposure period of exposure;
    图像处理器,用于接收所述图像传感器输出的所述第一图像信号和所述第二图像信号,根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;An image processor for receiving the first image signal and the second image signal output by the image sensor, generating a first target image based on the first image signal, and generating a second target image based on the second image signal Target image
    智能分析装置,用于从所述第一目标图像和所述第二目标图像中获取待分析图像,对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。An intelligent analysis device is configured to obtain an image to be analyzed from the first target image and the second target image, and perform an intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  2. 根据权利要求1所述的系统,其特征在于,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:The system according to claim 1, wherein the acquiring the image to be analyzed from the first target image and the second target image comprises:
    从所述第一目标图像和所述第二目标图像中获取所述第一目标图像,将所述第一目标图像确定为待分析图像;或者,Acquiring the first target image from the first target image and the second target image, and determining the first target image as an image to be analyzed; or,
    从所述第一目标图像和所述第二目标图像中获取所述第二目标图像,将所述第二目标图像确定为待分析图像。Obtain the second target image from the first target image and the second target image, and determine the second target image as an image to be analyzed.
  3. 根据权利要求1所述的系统,其特征在于,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:The system according to claim 1, wherein the acquiring the image to be analyzed from the first target image and the second target image comprises:
    当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为待分析图像;When the received selection signal is switched to the first selection signal, acquire the first target image and determine the first target image as the image to be analyzed;
    当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为待分析图像。When the received selection signal is switched to the second selection signal, the second target image is acquired, and the second target image is determined as the image to be analyzed.
  4. 根据权利要求1所述的系统,其特征在于,所述图像处理器,还用于输出所述第二目标图像。The system according to claim 1, wherein the image processor is further configured to output the second target image.
  5. 根据权利要求1所述的系统,其特征在于,所述图像传感器包括多个感光通道,所述多个感光通道包括IR感光通道,还包括R感光通道、G感光通道、B感光通道和W感光通道中的至少两种,所述多个感光通道通过所述多次曝光产生并输出所述第一图像信号和所述第二图像信号;The system according to claim 1, wherein the image sensor includes a plurality of photosensitive channels, the plurality of photosensitive channels includes an IR photosensitive channel, and further includes an R photosensitive channel, a G photosensitive channel, a B photosensitive channel, and a W photosensitive channel At least two of the channels, the multiple photosensitive channels generate and output the first image signal and the second image signal through the multiple exposures;
    其中,R感光通道,用于感应红光波段和近红外波段的光,G感光通道,用于感应绿光波段和近红外波段的光,B感光通道,用于感应蓝光波段和近红外波段的光,IR表示红外感光通道,用于感应近红外波段的光,W表示全通感光通道,用于感应全波段的光。Among them, R photosensitive channel is used for sensing light in the red and near infrared bands, G photosensitive channel is used for sensing light in the green and near infrared bands, and B photosensitive channel is used for sensing the blue and near infrared bands. Light, IR means infrared sensitive channel, used to sense light in near infrared band, W means all-pass sensitive channel, used to sense light in full band.
  6. 根据权利要求5所述的系统,其特征在于,所述图像传感器为RGBIR传感器、RGBWIR传感器、RWBIR传感器、RWGIR传感器或BWGIR传感器;The system according to claim 5, wherein the image sensor is an RGBIR sensor, an RGBWIR sensor, an RWBIR sensor, an RWGIR sensor, or a BWGIR sensor;
    其中,R表示R感光通道,G表示G感光通道,B表示B感光通道,IR表示IR感光通道,W表示全通感光通道。Among them, R represents R photosensitive channel, G represents G photosensitive channel, B represents B photosensitive channel, IR represents IR photosensitive channel, and W represents all-pass photosensitive channel.
  7. 根据权利要求1至6中任一项所述的系统,其特征在于,所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,具体为:The system according to any one of claims 1 to 6, wherein the fill light device performs near infrared fill light during the exposure time period of the first preset exposure, specifically:
    在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻。In the exposure time period of the first preset exposure, the start time of performing near infrared fill light is not earlier than the start time of exposure of the first preset exposure, and the end time of performing near infrared fill light is not later than the The exposure end time of the first preset exposure.
  8. 根据权利要求7所述的系统,其特征在于,所述补光装置在单位时间长度内的近红外补光次数低于所述图像传感器在单位时间长度内的曝光次数,其中,每相邻两次近红外补光的时间段内,间隔一次或多次曝光。The system according to claim 7, wherein the number of near-infrared fill lights of the fill light device per unit time length is lower than the number of exposures of the image sensor within a unit time length, wherein each adjacent two In the time period of sub-near infrared fill light, one or more exposures are performed at intervals.
  9. 根据权利要求7所述的系统,其特征在于,所述多次曝光包括奇数次曝光和偶数次曝光;The system according to claim 7, wherein the multiple exposures include odd exposures and even exposures;
    所述第一预设曝光为奇数次曝光中的其中一次,所述第二预设曝光为偶数次曝光中的一次;或者,The first preset exposure is one of odd exposures, and the second preset exposure is one of even exposures; or,
    所述第一预设曝光为偶数次曝光中的其中一次,所述第二预设曝光为奇 数次曝光中的其中一次;或者,The first preset exposure is one of even exposures, and the second preset exposure is one of odd exposures; or,
    所述第一预设曝光为指定的奇数次曝光中的其中一次,所述第二预设曝光为除指定的奇数次曝光之外的其他曝光中的其中一次;或者,The first preset exposure is one of the specified odd exposures, and the second preset exposure is one of the other exposures other than the specified odd exposures; or,
    所述第一预设曝光为指定的偶数次曝光中的其中一次,所述第二预设曝光为除指定的偶数次曝光之外的其他曝光中的其中一次。The first preset exposure is one of the specified even-numbered exposures, and the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
  10. 根据权利要求1所述的系统,其特征在于,The system of claim 1, wherein:
    所述图像传感器多次曝光具体为:所述图像传感器根据第一曝光参数进行所述多次曝光,其中,所述第一曝光参数的参数类型包括曝光时间和曝光增益中的至少一种;The multiple exposure of the image sensor is specifically: the image sensor performs the multiple exposure according to a first exposure parameter, wherein the parameter type of the first exposure parameter includes at least one of exposure time and exposure gain;
    所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,具体为:所述补光装置根据第一补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光,其中,所述第一补光参数的参数类型包括补光强度和补光集中度中的至少一种。The fill light device performs near-infrared fill light during the exposure time period of the first preset exposure, specifically: the fill light device performs the exposure time of the first preset exposure according to the first fill light parameter In the segment, near infrared fill light is performed, wherein the parameter type of the first fill light parameter includes at least one of fill light intensity and fill light concentration.
  11. 根据权利要求10所述的系统,其特征在于,还包括:The system according to claim 10, further comprising:
    控制单元,用于获取所述待分析图像对应的亮度信息,根据所述待分析图像对应的亮度信息,将所述第一补光参数调整为第二补光参数,将所述第一曝光参数调整为第二曝光参数;并向所述补光装置发送所述第二补光参数,同步向所述图像传感器发送所述第二曝光参数;The control unit is configured to obtain brightness information corresponding to the image to be analyzed, adjust the first fill light parameter to a second fill light parameter according to the brightness information corresponding to the image to be analyzed, and adjust the first exposure parameter Adjust to the second exposure parameter; and send the second fill light parameter to the fill light device, and synchronously send the second exposure parameter to the image sensor;
    所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,具体为:所述补光装置接收来自所述控制单元的所述第二补光参数,根据所述第二补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光;The fill light device performs near-infrared fill light during the exposure period of the first preset exposure, specifically: the fill light device receives the second fill light parameter from the control unit according to the A second fill light parameter, performing near-infrared fill light during the exposure period of the first preset exposure;
    所述图像传感器多次曝光具体为:所述图像传感器接收来自所述控制单元的所述第二曝光参数,根据所述第二曝光参数进行所述多次曝光。The multiple exposure of the image sensor is specifically: the image sensor receives the second exposure parameter from the control unit, and performs the multiple exposure according to the second exposure parameter.
  12. 根据权利要求11所述的系统,其特征在于,所述获取待分析图像对应的亮度信息,包括:The system according to claim 11, wherein the acquiring brightness information corresponding to the image to be analyzed includes:
    当所述待分析图像对应的智能分析结果包括所述待分析图像中包括的兴趣目标的位置信息时,根据所述位置信息确定所述待分析图像中的至少一个 目标区域;When the intelligent analysis result corresponding to the image to be analyzed includes position information of an interest target included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
    将所述至少一个目标区域的平均亮度,确定为所述待分析图像对应的亮度信息。The average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
  13. 根据权利要求11所述的系统,其特征在于,所述根据所述待分析图像对应的亮度信息,将所述第一曝光参数调整为第二曝光参数,包括:The system according to claim 11, wherein the adjusting the first exposure parameter to the second exposure parameter according to the brightness information corresponding to the image to be analyzed includes:
    当所述亮度信息高于第一预定阈值时,调低所述第一曝光参数,得到第二曝光参数;When the brightness information is higher than the first predetermined threshold, lower the first exposure parameter to obtain a second exposure parameter;
    当所述亮度信息低于第二预定阈值时,调高所述第一曝光参数,得到第二曝光参数;When the brightness information is lower than the second predetermined threshold, increase the first exposure parameter to obtain the second exposure parameter;
    其中,所述第一预定阈值高于所述第二预定阈值。Wherein the first predetermined threshold is higher than the second predetermined threshold.
  14. 根据权利要求11所述的系统,其特征在于,所述根据所述待分析图像对应的亮度信息,将所述第一补光参数调整为第二补光参数,包括:The system according to claim 11, wherein the adjusting the first fill light parameter to the second fill light parameter according to the brightness information corresponding to the image to be analyzed includes:
    当所述亮度信息高于第三预定阈值时,调低所述第一补光参数,得到第二补光参数;When the brightness information is higher than a third predetermined threshold, the first fill light parameter is adjusted down to obtain a second fill light parameter;
    当所述亮度信息低于第四预定阈值时,调高所述第一补光参数,得到第二补光参数;When the brightness information is lower than the fourth predetermined threshold, adjust the first fill light parameter to obtain a second fill light parameter;
    其中,所述第三预定阈值高于所述第四预定阈值。Wherein the third predetermined threshold is higher than the fourth predetermined threshold.
  15. 根据权利要求1所述的系统,其特征在于,根据所述第一图像信号生成第一目标图像,包括:The system according to claim 1, wherein generating the first target image according to the first image signal includes:
    根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,根据差值处理后的图像,得到第一目标图像。According to the channel values of a plurality of pixels included in the neighborhood of each pixel of the first image signal, interpolation processing is performed in an averaging manner, and the first target image is obtained according to the difference-processed image.
  16. 根据权利要求15所述的系统,其特征在于,所述根据差值处理后的图像,得到第一目标图像,包括:The system according to claim 15, wherein the first target image obtained by the image processed according to the difference includes:
    将所述差值处理后的图像确定为第一目标图像;或者,Determining the image after the difference processing as the first target image; or,
    将所述差值处理后的图像进行图像增强处理,将图像增强处理之后的图像确定为第一目标图像。The image after the difference processing is subjected to image enhancement processing, and the image after the image enhancement processing is determined as the first target image.
  17. 根据权利要求15所述的系统,其特征在于,所述根据所述第一图像信号的每个像素的邻域所包含的多个像素的通道值,以求平均的方式插值处理,包括:The system according to claim 15, wherein the channel values of the plurality of pixels included in the neighborhood of each pixel of the first image signal are interpolated in an average manner, including:
    对所述第一图像信号的每个感光通道的各个通道值分别进行插值,得到所述第一图像信号中每个像素分别对应的每个感光通道插值处理后的各个通道值;Respectively interpolating the channel values of each photosensitive channel of the first image signal to obtain each channel value after interpolation processing of each photosensitive channel corresponding to each pixel in the first image signal;
    对每个像素对应的各个感光通道插值处理后的各个通道值求取平均值,得到所述差值处理后的图像。An average value is obtained for each channel value after interpolation processing of each photosensitive channel corresponding to each pixel to obtain the image after the difference processing.
  18. 根据权利要求1所述的系统,其特征在于,所述根据所述第二图像信号生成第二目标图像,包括:The system according to claim 1, wherein the generating the second target image according to the second image signal comprises:
    遍历所述第二图像信号,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到第二目标图像;Traverse the second image signal, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate each channel value of each non-IR photosensitive channel after the channel value adjustment, and process according to the difference Image to get the second target image;
    其中,针对每一非IR感光通道进行通道值调整具体为:将所述非IR感光通道的调整前的各个通道值减去与对应像素位置相应的IR参数值,所述IR参数值为对应像素位置的IR值与预设修正值的乘积,所述IR值为所述IR感光通道在所述对应像素位置感应的IR值。Wherein, the channel value adjustment for each non-IR photosensitive channel specifically includes: subtracting the IR parameter value corresponding to the corresponding pixel position of each channel value before the adjustment of the non-IR photosensitive channel, and the IR parameter value is the corresponding pixel A product of an IR value of a position and a preset correction value, and the IR value is an IR value sensed by the IR photosensitive channel at the position of the corresponding pixel.
  19. 根据权利要求1所述的系统,其特征在于,所述根据所述第二图像信号生成第二目标图像,包括:The system according to claim 1, wherein the generating the second target image according to the second image signal comprises:
    获取包括当前第二图像信号的M帧第二图像信号,将所述M帧第二图像信号进行宽动态合成处理,得到宽动态图像,并对所述宽动态图像进行去红外处理,得到所述第二目标图像;Obtaining M frame second image signals including the current second image signal, performing wide dynamic synthesis processing on the M frame second image signals to obtain a wide dynamic image, and performing infrared removal processing on the wide dynamic image to obtain the Second target image;
    其中,所述去红外处理包括:Wherein, the infrared removal processing includes:
    遍历所述宽动态图像,将所遍历到的每一非IR感光通道进行通道值调整,对通道值调整后的每一非IR感光通道的各个通道值分别进行插值,根据差值处理后的图像,得到第二目标图像。Traverse the wide dynamic image, adjust the channel value of each non-IR photosensitive channel traversed, respectively interpolate the channel value of each non-IR photosensitive channel after the channel value adjustment, and process the image according to the difference To get the second target image.
  20. 根据权利要求1所述的系统,其特征在于,对所述待分析图像进行智 能分析,得到所述待分析图像对应的智能分析结果,包括:The system according to claim 1, wherein performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed includes:
    从所述待分析图像获取对应的特征图像进行特征增强处理,得到增强处理后的特征图像;Obtaining corresponding feature images from the image to be analyzed and performing feature enhancement processing to obtain enhanced feature images;
    根据所述增强处理后的特征图像,得到所述待分析图像对应的智能分析结果,所述智能分析结果包括所述待分析图像包含的兴趣目标和/或所述兴趣目标的位置信息。Based on the enhanced feature image, an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
  21. 根据权利要求20所述的系统,其特征在于,所述特征增强处理包括极值增强处理,The system according to claim 20, wherein the feature enhancement process includes an extreme value enhancement process,
    其中,所述极值增强处理具体为:对所述特征图像进行局部化的极值滤波的处理。Wherein, the extremum enhancement processing is specifically: a process of performing localized extremum filtering on the feature image.
  22. 根据权利要求21所述的系统,其特征在于,所述极值增强处理的处理过程包括:The system according to claim 21, wherein the process of the extreme value enhancement processing includes:
    对所述特征图像进行分块,得到多个图像块;针对每一图像块,将该图像块中所包括像素中的极大值,确定为该图像块对应的处理结果;将各个处理结果进行合并,得到极值增强处理后的图像。Block the feature image to obtain multiple image blocks; for each image block, determine the maximum value of the pixels included in the image block as the processing result corresponding to the image block; perform each processing result Combine to get the image after extreme value enhancement processing.
  23. 一种图像处理方法,其特征在于,包括:An image processing method, characterized in that it includes:
    获得图像传感器输出的第一图像信号和第二图像信号,其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中由补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光;Obtaining a first image signal and a second image signal output by an image sensor, wherein the image sensor generates and outputs a first image signal and a second image signal through multiple exposures, the first image signal is based on a first preset An image signal generated by exposure, the second image signal is an image signal generated according to a second preset exposure, and the first preset exposure and the second preset exposure are two of the multiple exposures Exposure; during the exposure period of the first preset exposure, the fill light device performs near infrared fill light, and during the exposure period of the second preset exposure, the fill light device does not perform near infrared fill light;
    根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;Generating a first target image based on the first image signal, and generating a second target image based on the second image signal;
    从所述第一目标图像和所述第二目标图像中获取待分析图像;Obtaining an image to be analyzed from the first target image and the second target image;
    对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。Perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  24. 根据权利要求23所述的方法,其特征在于,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:The method according to claim 23, wherein the acquiring the image to be analyzed from the first target image and the second target image comprises:
    从所述第一目标图像和所述第二目标图像中获取所述第一目标图像,将所述第一目标图像确定为待分析图像;或者,Acquiring the first target image from the first target image and the second target image, and determining the first target image as an image to be analyzed; or,
    从所述第一目标图像和所述第二目标图像中获取所述第二目标图像,将所述第二目标图像确定为待分析图像。Obtain the second target image from the first target image and the second target image, and determine the second target image as an image to be analyzed.
  25. 根据权利要求23所述的方法,其特征在于,所述从所述第一目标图像和所述第二目标图像中获取待分析图像,包括:The method according to claim 23, wherein the acquiring the image to be analyzed from the first target image and the second target image comprises:
    当接收到的选择信号切换为第一选择信号时,获取所述第一目标图像,将所述第一目标图像确定为待分析图像;When the received selection signal is switched to the first selection signal, acquire the first target image and determine the first target image as the image to be analyzed;
    当接收到的选择信号切换为第二选择信号时,获取所述第二目标图像,将所述第二目标图像确定为待分析图像。When the received selection signal is switched to the second selection signal, the second target image is acquired, and the second target image is determined as the image to be analyzed.
  26. 根据权利要求23至25中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 23 to 25, further comprising:
    向所述补光装置发送第一控制信号,其中,所述第一控制信号用于控制所述补光装置在所述第一预设曝光的曝光时间段中进行近红外补光,在所述第二预设曝光的曝光时间段中不进行近红外补光。Sending a first control signal to the fill light device, wherein the first control signal is used to control the fill light device to perform near-infrared fill light during the exposure period of the first preset exposure; In the exposure time period of the second preset exposure, near infrared fill light is not performed.
  27. 根据权利要求26所述的方法,其特征在于,所述第一控制信号用于指示所述补光装置进行近红外补光的补光时长,具体为,在所述第一预设曝光的曝光时间段中,进行近红外补光的开始时刻不早于所述第一预设曝光的曝光开始时刻,进行近红外补光的结束时刻不晚于所述第一预设曝光的曝光结束时刻。The method according to claim 26, wherein the first control signal is used to instruct the fill light device to perform a fill time of near infrared fill light, specifically, the exposure at the first preset exposure In the time period, the start time of performing near infrared fill light is not earlier than the exposure start time of the first preset exposure, and the end time of performing near infrared fill light is not later than the exposure end time of the first preset exposure.
  28. 根据权利要求27所述的方法,其特征在于,所述第一控制信号还用于指示所述补光装置的补光次数,具体为,所述补光装置在单位时间长度内的近红外补光次数低于所述图像传感器在单位时间长度内的曝光次数,其中,每相邻两次近红外补光的时间段内,间隔一次或多次曝光。The method according to claim 27, wherein the first control signal is further used to indicate the number of fill times of the fill light device, specifically, the near infrared fill of the fill light device within a unit time length The number of times of light is lower than the number of times of exposure of the image sensor within a unit time length, wherein, during each time period of two adjacent near infrared fill lights, one or more exposures are spaced apart.
  29. 根据权利要求26所述的方法,其特征在于,所述图像传感器的多次曝光包括奇数次曝光和偶数次曝光;其中,The method according to claim 26, wherein the multiple exposures of the image sensor include odd exposures and even exposures; wherein,
    所述第一预设曝光为奇数次曝光中的其中一次,所述第二预设曝光为偶数次曝光中的一次;或者,The first preset exposure is one of odd exposures, and the second preset exposure is one of even exposures; or,
    所述第一预设曝光为偶数次曝光中的其中一次,所述第二预设曝光为奇数次曝光中的其中一次;或者,The first preset exposure is one of the even exposures, and the second preset exposure is one of the odd exposures; or,
    所述第一预设曝光为指定的奇数次曝光中的其中一次,所述第二预设曝光为除指定的奇数次曝光之外的其他曝光中的其中一次;或者,The first preset exposure is one of the specified odd exposures, and the second preset exposure is one of the other exposures other than the specified odd exposures; or,
    所述第一预设曝光为指定的偶数次曝光中的其中一次,所述第二预设曝光为除指定的偶数次曝光之外的其他曝光中的其中一次。The first preset exposure is one of the specified even-numbered exposures, and the second preset exposure is one of the other exposures other than the specified even-numbered exposures.
  30. 根据权利要求23至25中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 23 to 25, further comprising:
    获取所述待分析图像对应的亮度信息,根据所述待分析图像对应的亮度信息,将所述补光装置补光所利用的第一补光参数调整为第二补光参数,将所述图像传感器曝光所利用的第一曝光参数调整为第二曝光参数;Obtain the brightness information corresponding to the image to be analyzed, and adjust the first fill light parameter used by the fill light device to the second fill light parameter according to the brightness information corresponding to the image to be analyzed, and convert the image The first exposure parameter used by the sensor exposure is adjusted to the second exposure parameter;
    向所述补光装置发送所述第二补光参数,同步向所述图像传感器发送所述第二曝光参数,以使得:所述补光装置接收所述第二补光参数,根据所述第二补光参数,在所述第一预设曝光的曝光时间段中进行近红外补光,以及所述图像传感器接收所述第二曝光参数,根据所述第二曝光参数进行所述多次曝光。Sending the second fill light parameter to the fill light device, and synchronously sending the second exposure parameter to the image sensor, so that the fill light device receives the second fill light parameter, based on the first Two fill light parameters, performing near-infrared fill light during the exposure period of the first preset exposure, and the image sensor receives the second exposure parameter, and performs the multiple exposure according to the second exposure parameter .
  31. 根据权利要求30所述的方法,其特征在于,所述获取待分析图像对应的亮度信息,包括:The method according to claim 30, wherein the acquiring brightness information corresponding to the image to be analyzed includes:
    当所述待分析图像对应的智能分析结果包括所述待分析图像中包括的兴趣目标的位置信息时,根据所述位置信息确定所述待分析图像中的至少一个目标区域;When the intelligent analysis result corresponding to the image to be analyzed includes the position information of the target of interest included in the image to be analyzed, determining at least one target area in the image to be analyzed according to the position information;
    将所述至少一个目标区域的平均亮度,确定为所述待分析图像对应的亮度信息。The average brightness of the at least one target area is determined as brightness information corresponding to the image to be analyzed.
  32. 根据权利要求23所述的方法,其特征在于,对所述待分析图像进行 智能分析,得到所述待分析图像对应的智能分析结果,包括:The method according to claim 23, wherein performing intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed includes:
    从所述待分析图像获取对应的特征图像进行特征增强处理,得到增强处理后的特征图像;Obtaining corresponding feature images from the image to be analyzed and performing feature enhancement processing to obtain enhanced feature images;
    根据所述增强处理后的特征图像,得到所述待分析图像对应的智能分析结果,所述智能分析结果包括所述待分析图像包含的兴趣目标和/或所述兴趣目标的位置信息。Based on the enhanced feature image, an intelligent analysis result corresponding to the image to be analyzed is obtained, and the intelligent analysis result includes an interest target contained in the image to be analyzed and/or location information of the interest target.
  33. 一种图像处理装置,其特征在于,包括:An image processing device, characterized in that it includes:
    图像信号获得模块,用于获得图像传感器输出的第一图像信号和第二图像信号,其中,所述图像传感器通过多次曝光产生并输出第一图像信号和第二图像信号,所述第一图像信号是根据第一预设曝光产生的图像信号,所述第二图像信号是根据第二预设曝光产生的图像信号,所述第一预设曝光和所述第二预设曝光为所述多次曝光中的其中两次曝光;在所述第一预设曝光的曝光时间段中补光装置进行近红外补光,在所述第二预设曝光的曝光时间段中所述补光装置不进行近红外补光;An image signal obtaining module for obtaining a first image signal and a second image signal output by an image sensor, wherein the image sensor generates and outputs a first image signal and a second image signal through multiple exposures, the first image The signal is an image signal generated according to a first preset exposure, the second image signal is an image signal generated according to a second preset exposure, the first preset exposure and the second preset exposure are the multiple Two of the two exposures; during the exposure period of the first preset exposure, the fill light device performs near-infrared fill light, and during the exposure period of the second preset exposure, the fill light device does not Perform near infrared fill light;
    图像生成模块,用于根据所述第一图像信号生成第一目标图像,根据所述第二图像信号生成第二目标图像;An image generating module, configured to generate a first target image based on the first image signal, and generate a second target image based on the second image signal;
    图像选择模块,用于从所述第一目标图像和所述第二目标图像中获取待分析图像;An image selection module, configured to obtain an image to be analyzed from the first target image and the second target image;
    图像分析模块,用于对所述待分析图像进行智能分析,得到所述待分析图像对应的智能分析结果。The image analysis module is configured to perform intelligent analysis on the image to be analyzed to obtain an intelligent analysis result corresponding to the image to be analyzed.
  34. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device characterized by comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
    存储器,用于存放计算机程序;Memory, used to store computer programs;
    处理器,用于执行存储器上所存放的程序时,实现权利要求23-32任一项所述的方法步骤。The processor, when used to execute the program stored on the memory, implements the method steps of any one of claims 23-32.
  35. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求23-32任一项所述的方法步骤。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 23-32 are realized.
PCT/CN2019/122437 2018-12-12 2019-12-02 Image processing method and system WO2020119504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811517428.8 2018-12-12
CN201811517428.8A CN110493506B (en) 2018-12-12 2018-12-12 Image processing method and system

Publications (1)

Publication Number Publication Date
WO2020119504A1 true WO2020119504A1 (en) 2020-06-18

Family

ID=68545688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122437 WO2020119504A1 (en) 2018-12-12 2019-12-02 Image processing method and system

Country Status (2)

Country Link
CN (1) CN110493506B (en)
WO (1) WO2020119504A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965671A (en) * 2021-02-04 2022-01-21 福建汇川物联网技术科技股份有限公司 Light supplementing method and device for distance measurement, electronic equipment and storage medium
CN114745509A (en) * 2022-04-08 2022-07-12 深圳鹏行智能研究有限公司 Image acquisition method, image acquisition equipment, foot type robot and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493506B (en) * 2018-12-12 2021-03-02 杭州海康威视数字技术股份有限公司 Image processing method and system
CN111064898B (en) * 2019-12-02 2021-07-16 联想(北京)有限公司 Image shooting method and device, equipment and storage medium
CN112926367A (en) * 2019-12-06 2021-06-08 杭州海康威视数字技术股份有限公司 Living body detection equipment and method
CN113129241B (en) * 2019-12-31 2023-02-07 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment
CN115297268B (en) * 2020-01-22 2024-01-05 杭州海康威视数字技术股份有限公司 Imaging system and image processing method
CN111556225B (en) * 2020-05-20 2022-11-22 杭州海康威视数字技术股份有限公司 Image acquisition device and image acquisition control method
CN111935415B (en) * 2020-08-18 2022-02-08 浙江大华技术股份有限公司 Brightness adjusting method and device, storage medium and electronic device
CN113301264B (en) * 2021-07-26 2021-11-23 北京博清科技有限公司 Image brightness adjusting method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103971351A (en) * 2013-02-04 2014-08-06 三星泰科威株式会社 Image fusion method and apparatus using multi-spectral filter array sensor
CN104134352A (en) * 2014-08-15 2014-11-05 青岛比特信息技术有限公司 Video vehicle characteristic detection system and detection method based on combination of long exposure and short exposure
US20160057367A1 (en) * 2014-08-25 2016-02-25 Hyundai Motor Company Method for extracting rgb and nir using rgbw sensor
CN107343132A (en) * 2017-08-28 2017-11-10 中控智慧科技股份有限公司 A kind of hand identification device and method based on near-infrared LED light compensating lamp
CN107920188A (en) * 2016-10-08 2018-04-17 杭州海康威视数字技术股份有限公司 A kind of camera lens and video camera
CN108419061A (en) * 2017-02-10 2018-08-17 杭州海康威视数字技术股份有限公司 Based on multispectral image co-registration equipment, method and imaging sensor
CN110493506A (en) * 2018-12-12 2019-11-22 杭州海康威视数字技术股份有限公司 A kind of image processing method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7978260B2 (en) * 2003-09-15 2011-07-12 Senshin Capital, Llc Electronic camera and method with fill flash function
CN105306832A (en) * 2015-09-15 2016-02-03 北京信路威科技股份有限公司 Device and method for light filling of image acquisition device
CN105657280B (en) * 2016-03-01 2019-03-08 Oppo广东移动通信有限公司 A kind of quick focusing method, device and mobile terminal
CN106572310B (en) * 2016-11-04 2019-12-13 浙江宇视科技有限公司 light supplement intensity control method and camera
CN106778518B (en) * 2016-11-24 2021-01-08 汉王科技股份有限公司 Face living body detection method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103971351A (en) * 2013-02-04 2014-08-06 三星泰科威株式会社 Image fusion method and apparatus using multi-spectral filter array sensor
CN104134352A (en) * 2014-08-15 2014-11-05 青岛比特信息技术有限公司 Video vehicle characteristic detection system and detection method based on combination of long exposure and short exposure
US20160057367A1 (en) * 2014-08-25 2016-02-25 Hyundai Motor Company Method for extracting rgb and nir using rgbw sensor
CN107920188A (en) * 2016-10-08 2018-04-17 杭州海康威视数字技术股份有限公司 A kind of camera lens and video camera
CN108419061A (en) * 2017-02-10 2018-08-17 杭州海康威视数字技术股份有限公司 Based on multispectral image co-registration equipment, method and imaging sensor
CN107343132A (en) * 2017-08-28 2017-11-10 中控智慧科技股份有限公司 A kind of hand identification device and method based on near-infrared LED light compensating lamp
CN110493506A (en) * 2018-12-12 2019-11-22 杭州海康威视数字技术股份有限公司 A kind of image processing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965671A (en) * 2021-02-04 2022-01-21 福建汇川物联网技术科技股份有限公司 Light supplementing method and device for distance measurement, electronic equipment and storage medium
CN114745509A (en) * 2022-04-08 2022-07-12 深圳鹏行智能研究有限公司 Image acquisition method, image acquisition equipment, foot type robot and storage medium

Also Published As

Publication number Publication date
CN110493506B (en) 2021-03-02
CN110493506A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2020119504A1 (en) Image processing method and system
CN109951646B (en) Image fusion method and device, electronic equipment and computer readable storage medium
WO2020119505A1 (en) Image processing method and system
US11849224B2 (en) Global tone mapping
US9661218B2 (en) Using captured high and low resolution images
CN109712102B (en) Image fusion method and device and image acquisition equipment
US8179445B2 (en) Providing improved high resolution image
EP3038356B1 (en) Exposing pixel groups in producing digital images
EP3849170B1 (en) Image processing method, electronic device, and computer-readable storage medium
CN110493531B (en) Image processing method and system
JP2002204389A (en) Method for exposure control
CN112118388B (en) Image processing method, image processing device, computer equipment and storage medium
CN103546730A (en) Method for enhancing light sensitivities of images on basis of multiple cameras
CN111970432A (en) Image processing method and image processing device
WO2019104047A1 (en) Global tone mapping
US20200228770A1 (en) Lens rolloff assisted auto white balance
EP3270586A1 (en) Image processing device, image processing method, and program
US20200228769A1 (en) Lens rolloff assisted auto white balance
US10937230B2 (en) Image processing
JP6492452B2 (en) Control system, imaging apparatus, control method, and program
KR20210107955A (en) Color stain analyzing method and electronic device using the method
JP4575100B2 (en) White balance adjustment device, color adjustment device, white balance adjustment method, and color adjustment method
Leznik et al. Optimization of demanding scenarios in CMS and image quality criteria
JP2004200888A (en) Imaging device
US8818094B2 (en) Image processing apparatus, image processing method and recording device recording image processing program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19896120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19896120

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.08.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19896120

Country of ref document: EP

Kind code of ref document: A1