CN112333359B - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN112333359B
CN112333359B CN202011171936.2A CN202011171936A CN112333359B CN 112333359 B CN112333359 B CN 112333359B CN 202011171936 A CN202011171936 A CN 202011171936A CN 112333359 B CN112333359 B CN 112333359B
Authority
CN
China
Prior art keywords
target
infrared filter
light
preset
ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011171936.2A
Other languages
Chinese (zh)
Other versions
CN112333359A (en
Inventor
陈战雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011171936.2A priority Critical patent/CN112333359B/en
Publication of CN112333359A publication Critical patent/CN112333359A/en
Application granted granted Critical
Publication of CN112333359B publication Critical patent/CN112333359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/33Transforming infrared radiation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses an image processing method, an image processing device and electronic equipment, and belongs to the technical field of communication. The problem of poor imaging effect of the electronic equipment can be solved. The method comprises the following steps: acquiring spectral information of target light, wherein the target light is light detected by electronic equipment in the current environment; determining a target infrared filter from the at least one infrared filter according to the spectral information; and acquiring a first image through the camera and the target infrared filter. The embodiment of the application is applied to the shooting process of the electronic equipment.

Description

Image processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an image processing method and device and an electronic device.
Background
Generally, when an electronic device performs shooting, environmental data information (such as ambient light intensity, visible light color, infrared light, near-infrared light, and the like) may be acquired by an Image sensor to obtain an original Image Format (RAW), and the RAW Image file is processed by an Auto White Balance (AWB) algorithm to obtain a processed Image.
However, in the above method, when the environment data information is acquired by the image sensor, since the filtering range of the Infrared Filter (IR Filter) is fixed, in different environments, the Infrared light or near-Infrared light absorbed by the image sensor may be too strong, and the AWB algorithm has a large error, so that the color shift of the processed image occurs, and the imaging effect of the electronic device is poor.
Disclosure of Invention
An embodiment of the present application provides an image processing method and apparatus, and an electronic device, which can solve the problem of poor imaging effect of the electronic device.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image processing method, where the method includes: acquiring spectral information of target light, wherein the target light is light detected by electronic equipment in the current environment; determining a target infrared filter from the at least one infrared filter according to the spectral information; and acquiring a first image through the camera and the target infrared filter.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including: the device comprises an acquisition module and a determination module. The acquisition module is used for acquiring spectral information of target light, wherein the target light is light detected by the image processing device in the current environment. And the determining module is used for determining the target infrared filter from the at least one infrared filter according to the spectral information acquired by the acquiring module. The acquisition module is further used for acquiring a first image through the camera and the target infrared filter.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the electronic device may acquire spectral information of target light detected in a current environment, determine a target infrared filter from at least one infrared filter according to the spectral information, and acquire a first image through the camera and the target infrared filter. The electronic equipment can detect and acquire the spectral information of the target light in the current environment, so that a proper target infrared filter can be determined from at least one infrared filter through the target spectral band indicated by the spectral information, the target light is processed through the target infrared filter, interference light contained in the target light is accurately filtered, a first image is obtained through imaging of the processed target light, and the imaging effect of the electronic equipment can be improved.
Drawings
Fig. 1 is a schematic diagram of an image processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an image processing method according to an embodiment of the present application;
fig. 4 is a third schematic diagram of an image processing method according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram of an image processing method according to an embodiment of the present application;
fig. 6 is a fifth schematic diagram of an image processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 8 is a second schematic structural diagram of an image processing apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 10 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the embodiment of the application, when a user shoots through a camera application program, the electronic device can detect light in the current environment through the multispectral sensor and analyze the detected light to obtain spectral information used for indicating the spectral band of the light, so that the electronic device can determine a proper infrared filter from at least one infrared filter included in the electronic device according to the obtained spectral information, filter the light in the environment in front of the electronic device, and image through the processed light, and therefore the imaging effect of the electronic device can be improved.
An embodiment of the present application provides an image processing method, and fig. 1 shows a flowchart of the image processing method provided in the embodiment of the present application, which may be applied to an electronic device. As shown in fig. 1, the image processing method provided in the embodiment of the present application may include steps 201 to 203 described below.
Step 201, the electronic device obtains spectral information of the target light.
In an embodiment of the application, the target light is light detected by the electronic device in a current environment, and the spectral information is used to indicate a target spectral band of the target light.
In the embodiment of the application, the electronic device can acquire spectral information of target light in the current environment, and determine the target infrared filter from the at least one infrared filter according to the spectral information, so that the target light can be processed through the determined target infrared filter, and a first image is obtained through imaging of the processed target light.
Optionally, in this embodiment of the application, the electronic device may obtain spectral information of the target light after running the camera application according to an input of a user to determine the target infrared filter, so as to directly display the preview image processed by the target infrared filter in the shooting preview interface.
It can be understood that in the embodiment of the present application, after the target infrared filter is determined, the preview image is displayed in the shooting preview interface.
Optionally, in this embodiment of the application, the electronic device may obtain, in advance, spectrum information of target light in a current environment when the screen is in a bright screen state or an unlocked state, and store the spectrum information in the electronic device, so that the spectrum information of the target light is used when the electronic device displays a shooting preview interface (i.e., performs shooting).
Optionally, in this embodiment of the application, the electronic device may obtain spectral information of the target light obtained by pre-detection from the storage device.
The electronic device is taken as a mobile phone for illustration. As shown in fig. 2, a shooting mode corresponding to a displayed shooting preview interface is a shooting mode for assisting shooting through a multispectral sensor when a mobile phone shoots through the method provided by the embodiment of the present application.
Optionally, in an embodiment of the present application, the electronic device includes a multispectral sensor. With reference to fig. 1, as shown in fig. 3, before step 201 described above, the image processing method provided in the embodiment of the present application may further include step 301 described below.
Step 301, the electronic device detects target light through the multispectral sensor, and analyzes the target light to obtain spectral information.
Optionally, in this embodiment of the application, the electronic device may operate the multispectral sensor in a bright-screen state or an unlocked state, so as to detect the target light in the current environment through the multispectral sensor.
Optionally, in this embodiment of the application, the electronic device may analyze the target light to determine various lights included in the target light, for example: visible light, Near Infrared (NIR), Infrared (IR), and the like.
Optionally, in this embodiment of the application, the electronic device may analyze the target light to determine a spectral band of the target light.
Optionally, in this embodiment, the electronic device may determine, in advance, an infrared filter corresponding to a spectral band of the target light according to the spectral band of the target light, and mark the infrared filter, so as to directly perform shooting through the infrared filter when the electronic device runs a camera application program.
In the embodiment of the application, the electronic equipment can detect the target light in the current environment through the multispectral sensor and analyze the detected target light to obtain the spectral information, so that the target infrared filter can be accurately selected from at least one infrared filter through the spectral information obtained through analysis, and the accuracy of selecting the infrared filter by the electronic equipment can be improved.
Step 202, the electronic device determines a target infrared filter from the at least one infrared filter according to the spectral information.
Optionally, in this embodiment of the application, when the electronic device runs the camera application, the target infrared filter corresponding to the spectral band of the target light is determined according to the spectral band of the target light, so as to process the target light through the target infrared filter.
It should be noted that at least one infrared filter is installed in the electronic device, and the electronic device can select different infrared filters to process light according to different light in the environment where the electronic device is located when the camera application is operated each time, so that shooting can be performed through a proper infrared filter during each shooting, and a shot image with the best imaging effect can be obtained.
Optionally, in this embodiment of the application, when one infrared filter is installed in the electronic device, the filtering range of the infrared filter may be changed, and the electronic device may flexibly determine the filtering range of the infrared filter according to the spectral information, so as to process light rays corresponding to different spectral bands.
Optionally, in this embodiment of the application, as shown in fig. 4 in combination with fig. 1, the step 202 may be specifically implemented by a step 202a described below.
Step 202a, the electronic device determines a target preset spectral band corresponding to the target spectral band from at least one preset spectral band according to the target spectral band of the target light, and determines a target infrared filter according to the target preset spectral band.
In this embodiment, the target predetermined spectral band is a predetermined spectral band corresponding to the target infrared filter.
Optionally, in this embodiment of the application, when the electronic device includes a plurality of infrared filters, different infrared filters are used to process light rays corresponding to different preset spectral bands.
Optionally, in this embodiment of the application, the electronic device may determine, according to a target spectral band of the target light, a target preset spectral band corresponding to the target spectral band from the plurality of preset spectral bands, and then determine, according to the target preset spectral band, the target infrared filter from the at least one infrared filter.
It should be noted that, the target preset spectral band corresponding to the target spectral band may be understood as: the target preset spectral band completely comprises a target spectral band; or the target preset spectral band comprises a spectral band with a preset proportion in the target spectral band; or, the target preset spectral band is a spectral band close to the target spectral band.
For example, assuming that the target spectral band ranges from a to b, the ranges of the plurality of preset spectral bands are: the range of the first preset spectral band is c-d, the range of the second preset spectral band is e-f, the range of the third preset spectral band is g-h, and c < a < b < d < e < f < g < h, then the range of the target spectral band can be determined to be included in the range of the first preset spectral band, that is, the first preset spectral band is determined to be the target preset spectral band, and the infrared filter corresponding to the first preset spectral band is determined to be the target infrared filter.
In this application embodiment, electronic equipment can predetermine the spectrum wave band from at least one according to the target spectrum wave band of target light, confirms the target that corresponds with the target spectrum wave band and predetermines the spectrum wave band to can predetermine the spectrum wave band according to the target of confirming and determine corresponding target infrared filter, consequently can handle the target light through the target infrared filter that corresponds with the target light, thereby can improve electronic equipment and handle the effect of light.
And step 203, the electronic equipment acquires a first image through the camera and the target infrared filter.
Optionally, in this embodiment of the application, the electronic device may filter stray light (for example, infrared light and near-infrared light) in the target light through the target infrared filter, so as to obtain light with better imaging performance.
Optionally, in this embodiment of the application, after the electronic device determines the target infrared filter, the target light may first pass through the target infrared filter and then enter the multispectral sensor, that is, the light after being processed by the target infrared filter may obtain an image with a better display effect through the multispectral sensor.
Optionally, in this embodiment of the application, the electronic device may obtain an image or a video with a better display effect through the processed target light imaging.
The embodiment of the application provides an image processing method, and electronic equipment can acquire spectral information of target light detected in a current environment, determine a target infrared filter from at least one infrared filter according to the spectral information, and acquire a first image through a camera and the target infrared filter. The electronic equipment can detect and acquire the spectral information of the target light in the current environment, so that a proper target infrared filter can be determined from at least one infrared filter through the target spectral band indicated by the spectral information, the target light is processed through the target infrared filter, interference light contained in the target light is accurately filtered, a first image is obtained through imaging of the processed target light, and the imaging effect of the electronic equipment can be improved.
Optionally, in this embodiment of the application, with reference to fig. 4, as shown in fig. 5, the step 202 may be specifically implemented by the following steps 202b to 202 d.
Step 202b, the electronic device determines a first ratio of the power spectrum intensity corresponding to the first waveband to the total power spectrum intensity in the target light.
Optionally, in this embodiment of the application, the electronic device may determine the first ratio when the target spectral band satisfies a preset condition.
Optionally, in this embodiment of the application, the first ratio is a ratio of a power spectrum intensity corresponding to the first light to a total power spectrum intensity corresponding to the target light, the preset condition is that the ratio of the power spectrum intensity corresponding to the first light to the total power spectrum intensity corresponding to the target light is greater than or equal to a first preset ratio, and the first light may be visible light.
Optionally, in this embodiment of the application, the first wavelength band is a spectral wavelength band corresponding to the first light.
Optionally, in this embodiment of the application, the first preset ratio is a ratio preset by a user, and the user may determine a specific value of the first preset ratio according to an actual use requirement.
It should be noted that, when the target spectral band satisfies the preset condition, it can be understood that: the ratio of the power spectrum intensity corresponding to the first light ray in the target light rays to the total power spectrum intensity corresponding to the target light rays is larger than or equal to a first preset ratio.
Step 202c, if the first ratio is greater than or equal to the first preset ratio, the electronic device determines a second waveband in the target light.
Optionally, in this embodiment of the application, a second ratio of the power spectrum intensity corresponding to the second waveband to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio.
Optionally, in an embodiment of the present application, the second wavelength band is a spectral wavelength band corresponding to a second light ray, and the second light ray may be any of: infrared or near infrared light, and the like.
Step 202d, the electronic device determines a target infrared filter corresponding to the second band.
Optionally, in this embodiment of the application, when it is determined that the second ratio is greater than or equal to a second preset ratio, a second spectral band corresponding to the second light is obtained, a target preset spectral band corresponding to the second spectral band is determined from at least one preset spectral band, and the target infrared filter is determined according to the target preset spectral band.
Optionally, in this embodiment of the application, in a case that the target light is light corresponding to sunlight, the multispectral sensor may be in a sunlight mode, and analyze the sunlight to obtain spectral information corresponding to the sunlight, so as to determine that, in an environment of the sunlight, when a ratio of a power spectral intensity of the near-infrared light to a power spectral intensity of the sunlight is greater than 60%, a wavelength band range X00nm to X01nm of the near-infrared light, and determine, according to the wavelength band range X00nm to X01nm, a first infrared filter applicable in the environment of the sunlight from at least one infrared filter, where a spectral wavelength range filtered by the first infrared filter is Y00 nm to Y01 nm. So that the electronic device can filter sunlight in an environment of sunlight using the first infrared filter.
Optionally, in this embodiment of the application, in a case that the target light is light corresponding to a fluorescent lamp, the multispectral sensor may be in a fluorescent lamp mode, and analyze the light corresponding to the fluorescent lamp to obtain spectral information corresponding to the fluorescent lamp, so as to determine, in an environment of the fluorescent lamp, when a ratio of a power spectral intensity of the near-infrared light to a power spectral intensity of the light corresponding to the fluorescent lamp is greater than 60%, a wavelength range X10nm to X11nm of the near-infrared light, and determine, according to the wavelength range X10nm to X11nm, a second infrared filter applicable in the environment of the fluorescent lamp from at least one infrared filter, where a spectral wavelength range filtered by the second infrared filter is Y10 nm to Y11 nm. Therefore, the electronic equipment can use the second infrared filter to filter the light corresponding to the fluorescent lamp in the environment of the fluorescent lamp.
Optionally, in this embodiment of the application, when the target light is light corresponding to a fluorescent lamp, the multispectral sensor may be in a fluorescent lamp mode, and analyze the light corresponding to the fluorescent lamp to obtain spectral information corresponding to the fluorescent lamp, so as to determine that, in an environment of the fluorescent lamp, when a ratio of a power spectral intensity of the near-infrared light to a power spectral intensity of the light corresponding to the fluorescent lamp is greater than 60%, a wavelength range X20nm to X21nm of the near-infrared light, and determine, according to the wavelength range X20nm to X21nm, a third infrared filter applicable to the environment of the fluorescent lamp from at least one infrared filter, where a spectral wavelength range filtered by the third infrared filter is Y20 nm to Y21 nm. Therefore, the electronic equipment can use the third infrared filter to filter the light rays corresponding to the fluorescent lamp in the environment of the fluorescent lamp.
Optionally, in this embodiment of the application, when the target light is light corresponding to the LED lamp, the multispectral sensor may be in an LED lamp mode, and analyze the light corresponding to the LED lamp to obtain spectral information corresponding to the LED lamp, so as to determine that, in an environment of the LED lamp, when a ratio of a power spectral intensity of the near-infrared light to a power spectral intensity of the light corresponding to the LED lamp is greater than 60%, a wavelength range X30nm to X21nm of the near-infrared light, and determine, according to the wavelength range X30nm to X31nm, a fourth infrared filter applicable to the environment of the LED lamp from at least one infrared filter, where a spectral wavelength range filtered by the fourth infrared filter is Y30 nm to Y31 nm. Therefore, the electronic equipment can use the fourth infrared filter to filter light rays corresponding to the LED lamp in the environment of the LED lamp.
It should be noted that at least one infrared filter in the electronic device is a preset infrared filter, a spectral band range that can be filtered by each infrared filter is a fixed range, and the spectral band ranges that can be filtered by each infrared filter are different, so that the electronic device can select a suitable infrared filter to filter light when the electronic device is in different environments.
In this embodiment, the electronic device may determine the second wavelength band in the target light by determining a first ratio of the power spectrum intensity corresponding to the first wavelength band to the total power spectrum intensity in the target light, when the first ratio is greater than or equal to a first preset ratio, and a second ratio of the power spectrum intensity corresponding to the second wavelength band to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio, so as to determine the target infrared filter corresponding to the second wavelength band, thereby improving the accuracy of selecting the infrared filter by the electronic device.
Optionally, in this embodiment of the application, as shown in fig. 6 in combination with fig. 5, the step 202c, the step 202d, and the step 203 may be specifically replaced with the step 202e described below.
Step 202e, if the first ratio is smaller than the first preset ratio, the electronic device adopts a preset shooting mode, and a second image is obtained through the camera.
Optionally, in this embodiment of the application, when the target spectral band does not satisfy the preset condition, the function of processing the target light through the target infrared filter is turned off, and a shooting preview interface is displayed in a preset shooting mode.
It should be noted that, in the case of acquiring the second image through the camera in the preset shooting mode, the target light does not need to be filtered through the infrared filter.
Optionally, in this embodiment of the application, when the ratio of the power spectrum intensity corresponding to the first light to the total power spectrum intensity corresponding to the target light is smaller than a first preset ratio, the electronic device may not filter the target light through the infrared filter, and directly display a shooting preview interface in a preset shooting mode (for example, a black-and-white shooting mode) for shooting.
Optionally, in this embodiment of the application, the first preset ratio is a ratio preset by a user, and the user may determine a specific value of the target ratio according to an actual use requirement.
For example, when the multispectral sensor detects that the ratio of the power spectrum intensity corresponding to the visible light in the target light to the total power spectrum intensity corresponding to the target light is less than 10%, that is, the electronic device is in a dark environment, the electronic device may not use the infrared filter to filter the target light, so as to improve the imaging effect in a low-illumination environment, and perform shooting in a black-and-white shooting mode.
In the embodiment of the application, when the first ratio is smaller than the first preset ratio, the electronic device can adopt the preset shooting mode to acquire the second image through the camera, so that the target infrared filter is not used for processing the target light to obtain the second image, and the imaging effect can be improved.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module in the image processing apparatus for executing the image processing method. In the embodiment of the present application, an image processing apparatus is taken as an example to execute a loaded image processing method, and the image processing apparatus provided in the embodiment of the present application is described.
Fig. 7 shows a schematic diagram of a possible structure of an image processing apparatus according to an embodiment of the present application. As shown in fig. 7, the image processing apparatus 70 may include: an acquisition module 71 and a determination module 72.
The obtaining module 71 is configured to obtain spectral information of a target light, where the target light is a light detected by the image processing apparatus in the current environment. And a determining module 72, configured to determine a target infrared filter from the at least one infrared filter according to the spectral information acquired by the acquiring module 71. The acquiring module 71 is further configured to acquire a first image through the camera and the target infrared filter.
In one possible implementation, the image processing device includes a multispectral sensor. With reference to fig. 7, as shown in fig. 8, the image processing apparatus 70 according to the embodiment of the present application may further include: a detection module 73. The detection module 73 is configured to detect the target light through the multispectral sensor before acquiring spectral information of the target light, and analyze the target light to obtain the spectral information.
In a possible implementation manner, the determining module 72 is specifically configured to determine, according to a target spectral band of the target light, a target preset spectral band corresponding to the target spectral band from at least one preset spectral band, and determine the target infrared filter according to the target preset spectral band, where the target preset spectral band is a preset spectral band corresponding to the target infrared filter.
In a possible implementation manner, the determining module 72 is specifically configured to determine a first ratio of the power spectrum intensity corresponding to the first wavelength band to the total power spectrum intensity in the target light; if the first ratio is larger than or equal to a first preset ratio, determining a second waveband in the target light; the second ratio of the power spectrum intensity corresponding to the second waveband to the total power spectrum intensity of the target light is larger than or equal to a second preset ratio; and determining a target infrared filter corresponding to the second band.
In a possible implementation manner, the obtaining module 71 is further configured to obtain the second image through the camera in a preset shooting mode if the first ratio is smaller than the first preset ratio.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented by the image processing apparatus in the above method embodiments, and for avoiding repetition, detailed descriptions are not repeated here.
The embodiment of the application provides an image processing device, because electronic equipment can detect and acquire the spectral information of target light in the current environment, thereby can pass through the target spectrum wave band that this spectral information instructs, determine a suitable target infrared filter from at least one infrared filter, with handle target light through this target infrared filter, the interference light that contains in the accurate filtering target light, and through the target light formation of image after handling obtain first image, thereby can improve electronic equipment's formation of image effect.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Optionally, as shown in fig. 9, an electronic device M00 is further provided in an embodiment of the present application, and includes a processor M01, a memory M02, and a program or an instruction stored in the memory M02 and executable on the processor M01, where the program or the instruction when executed by the processor M01 implements each process of the foregoing embodiment of the image processing method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The sensor 105 is configured to obtain spectral information of a target light, where the target light is a light detected by the electronic device in a current environment.
And a processor 110 for determining a target infrared filter from the at least one infrared filter according to the spectral information.
And the sensor 105 is also used for acquiring a first image through the camera and the target infrared filter.
The embodiment of the application provides an electronic device, because electronic device can detect and acquire the spectral information of target light in the current environment of being located earlier, thereby can pass through the target spectrum wave band that this spectral information instructed, determine a suitable target infrared filter from at least one infrared filter, with handle target light through this target infrared filter, the interference light that contains in the accurate filtering target light, and through the target light formation of image after handling obtain first image, thereby can improve electronic device's image effect.
Optionally, the sensor 105 is further configured to detect the target light through a multispectral sensor, and analyze the target light to obtain spectral information.
In the embodiment of the application, the electronic equipment can detect the target light in the current environment through the multispectral sensor and analyze the detected target light to obtain the spectral information, so that the target infrared filter can be accurately selected from at least one infrared filter through the spectral information obtained through analysis, and the accuracy of selecting the infrared filter by the electronic equipment can be improved.
The processor 110 is further configured to determine, according to a target spectral band of the target light, a target preset spectral band corresponding to the target spectral band from at least one preset spectral band, and determine, according to the target preset spectral band, a target infrared filter, where the target preset spectral band is a preset spectral band corresponding to the target infrared filter.
In the embodiment of the application, the electronic device can determine the target preset spectral band corresponding to the target spectral band from at least one preset spectral band according to the target spectral band of the target light, so that the corresponding target infrared filter can be determined according to the determined target preset spectral band, the target light can be processed through the target infrared filter corresponding to the target light, and the effect of processing the light by the electronic device can be improved.
The processor 110 is specifically configured to determine a first ratio of a power spectrum intensity corresponding to a first waveband to a total power spectrum intensity in the target light; if the first ratio is larger than or equal to a first preset ratio, determining a second waveband in the target light; the second ratio of the power spectrum intensity corresponding to the second waveband to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio; and determining a target infrared filter corresponding to the second band.
In this embodiment, the electronic device may determine the second wavelength band in the target light by determining a first ratio of the power spectrum intensity corresponding to the first wavelength band to the total power spectrum intensity in the target light, when the first ratio is greater than or equal to a first preset ratio, and a second ratio of the power spectrum intensity corresponding to the second wavelength band to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio, so as to determine the target infrared filter corresponding to the second wavelength band, thereby improving the accuracy of selecting the infrared filter by the electronic device.
The processor 110 is further configured to, if the first ratio is smaller than a first preset ratio, adopt a preset shooting mode, and obtain a second image through the camera.
In the embodiment of the application, when the first ratio is smaller than the first preset ratio, the electronic device can adopt the preset shooting mode to acquire the second image through the camera, so that the target infrared filter is not used for processing the target light to obtain the second image, and the imaging effect can be improved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image processing method, characterized in that the method comprises:
acquiring spectral information of target light, wherein the target light is light detected by electronic equipment in the current environment;
determining a target infrared filter from at least one infrared filter according to the spectral information;
acquiring a first image through a camera and the target infrared filter;
the determining a target infrared filter from at least one infrared filter according to the spectral information includes:
determining a first ratio of the power spectrum intensity corresponding to a first waveband to the total power spectrum intensity in the target light;
if the first ratio is larger than or equal to a first preset ratio, determining a second waveband in the target light; the second ratio of the power spectrum intensity corresponding to the second waveband to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio;
and determining the target infrared filter corresponding to the second wave band.
2. The method of claim 1, wherein the electronic device comprises a multispectral sensor;
before the acquiring the spectral information of the target light, the method further includes:
and detecting the target light rays through the multispectral sensor, and analyzing the target light rays to obtain the spectral information.
3. The method according to claim 1 or 2, wherein the determining a target infrared filter from at least one infrared filter based on the spectral information further comprises:
and determining a target preset spectral band corresponding to the target spectral band from at least one preset spectral band according to the target spectral band of the target light, and determining the target infrared filter according to the target preset spectral band, wherein the target preset spectral band is a preset spectral band corresponding to the target infrared filter.
4. The method of claim 1, further comprising:
and if the first ratio is smaller than the first preset ratio, adopting a preset shooting mode and acquiring a second image through the camera.
5. An image processing apparatus characterized by comprising: the device comprises an acquisition module and a determination module;
the acquisition module is used for acquiring spectral information of target light, wherein the target light is light detected by the image processing device in the current environment;
the determining module is used for determining a target infrared filter from at least one infrared filter according to the spectral information acquired by the acquiring module;
the acquisition module is also used for acquiring a first image through a camera and the target infrared filter;
the determining module is specifically configured to determine a first ratio of a power spectrum intensity corresponding to a first waveband to a total power spectrum intensity in the target light; if the first ratio is larger than or equal to a first preset ratio, determining a second waveband in the target light; the second ratio of the power spectrum intensity corresponding to the second waveband to the total power spectrum intensity of the target light is greater than or equal to a second preset ratio; and determining the target infrared filter corresponding to the second waveband.
6. The image processing device according to claim 5, wherein the image processing device comprises a multispectral sensor; the image processing apparatus further includes: a detection module;
the detection module is used for detecting the target light through the multispectral sensor before acquiring the spectral information of the target light, and analyzing the target light to obtain the spectral information.
7. The image processing apparatus according to claim 5 or 6, wherein the determining module is specifically configured to determine, according to a target spectral band of the target light, a target preset spectral band corresponding to the target spectral band from at least one preset spectral band, and determine the target infrared filter according to the target preset spectral band, where the target preset spectral band is a preset spectral band corresponding to the target infrared filter.
8. The image processing apparatus according to claim 5, wherein the obtaining module is further configured to obtain a second image through the camera in a preset shooting mode if the first ratio is smaller than the first preset ratio.
9. An electronic device, comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the image processing method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any one of claims 1 to 4.
CN202011171936.2A 2020-10-28 2020-10-28 Image processing method and device and electronic equipment Active CN112333359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011171936.2A CN112333359B (en) 2020-10-28 2020-10-28 Image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011171936.2A CN112333359B (en) 2020-10-28 2020-10-28 Image processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112333359A CN112333359A (en) 2021-02-05
CN112333359B true CN112333359B (en) 2022-09-16

Family

ID=74296138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011171936.2A Active CN112333359B (en) 2020-10-28 2020-10-28 Image processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112333359B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058873A1 (en) * 2016-09-29 2018-04-05 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN111050069A (en) * 2019-12-12 2020-04-21 维沃移动通信有限公司 Shooting method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6446390A (en) * 1987-08-14 1989-02-20 Canon Kk Color image pickup device
US5710948A (en) * 1992-06-09 1998-01-20 Nikon Corporation Camera system with color temperature meter
JP2002084451A (en) * 2000-09-11 2002-03-22 Minolta Co Ltd Digital image pickup device, image processing system, recording medium, and digital image pickup method
JP2006106457A (en) * 2004-10-07 2006-04-20 Pentax Corp Camera capable of stroboscopic photographing
JP2007134954A (en) * 2005-11-10 2007-05-31 Canon Inc Imaging apparatus
JP2007202034A (en) * 2006-01-30 2007-08-09 Sony Corp Imaging apparatus, control method, and program
CN208028976U (en) * 2017-11-30 2018-10-30 信利光电股份有限公司 A kind of multiband IR-CUT and camera module
CN110987183A (en) * 2019-12-27 2020-04-10 广州极飞科技有限公司 Multispectral imaging system and method
CN111614894B (en) * 2020-04-28 2022-04-01 深圳英飞拓智能技术有限公司 Image acquisition method and device and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058873A1 (en) * 2016-09-29 2018-04-05 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN111050069A (en) * 2019-12-12 2020-04-21 维沃移动通信有限公司 Shooting method and electronic equipment

Also Published As

Publication number Publication date
CN112333359A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
CN106937045B (en) Display method of preview image, terminal equipment and computer storage medium
CN106060419B (en) A kind of photographic method and mobile terminal
US20140355874A1 (en) Image processing system, image processing device, image processing method, program, and information storage medium
CN111953955B (en) White balance compensation method and device and electronic equipment
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
CN112672069B (en) Exposure method and apparatus
CN113794834A (en) Image processing method and device and electronic equipment
CN113129222A (en) Color shading correction method, terminal device and computer-readable storage medium
CN105103116A (en) Handheld terminal, image generation method, and non-transitory computer-readable medium containing program
US20150294484A1 (en) Devices, Terminals and Methods for Image Processing
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN113010738B (en) Video processing method, device, electronic equipment and readable storage medium
CN112698775B (en) Image display method and device and electronic equipment
CN112333359B (en) Image processing method and device and electronic equipment
CN113691716A (en) Image sensor, image processing method, image processing apparatus, electronic device, and storage medium
CN113128244A (en) Scanning method and device and electronic equipment
CN112511890A (en) Video image processing method and device and electronic equipment
CN112637588B (en) Method and device for detecting contamination of camera and electronic equipment
CN103577053B (en) A kind of method for information display and equipment
JP7127105B2 (en) Optical fingerprint module and signal processing method
CN113747076A (en) Shooting method and device and electronic equipment
CN113987241A (en) Image display method, image display device, electronic apparatus, and readable storage medium
CN113808107A (en) Image recommendation method and device, electronic equipment and storage medium

Legal Events

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