WO2018028165A1 - Terminal and manufacturing process thereof - Google Patents

Terminal and manufacturing process thereof Download PDF

Info

Publication number
WO2018028165A1
WO2018028165A1 PCT/CN2017/073953 CN2017073953W WO2018028165A1 WO 2018028165 A1 WO2018028165 A1 WO 2018028165A1 CN 2017073953 W CN2017073953 W CN 2017073953W WO 2018028165 A1 WO2018028165 A1 WO 2018028165A1
Authority
WO
WIPO (PCT)
Prior art keywords
lens
color
ambient light
data
terminal
Prior art date
Application number
PCT/CN2017/073953
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 WO2018028165A1 publication Critical patent/WO2018028165A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • the present invention relates to the field of electronic devices, and in particular to a terminal and a manufacturing process thereof.
  • the camera function of the terminal has become an important measure for selecting the terminal. Therefore, the terminal manufacturer is also committed to making the camera function of the terminal more perfect.
  • the camera technology in the dark vision environment mainly collects ambient light and performs image processing on the acquired image based on the ambient light.
  • ambient light cannot be accurately obtained, thus resulting in Subsequent image processing is not effective.
  • Embodiments of the present invention provide a terminal and a manufacturing process thereof, which can accurately collect ambient light based on the terminal.
  • a first aspect of the embodiment of the present invention provides a terminal, including:
  • the housing is provided with a camera and an optical window, wherein the optical window comprises a first lens and a second lens, a flash is disposed under the first lens, and a color sensor is disposed under the second lens, A first lens is used to diffuse light from the flash lamp, and a second lens is used to assist the color sensor in collecting ambient light, wherein the second lens is an atomized lens.
  • a second aspect of the embodiments of the present invention provides a terminal manufacturing process, including:
  • the housing comprising a bore
  • the PCB pad and the housing are assembled such that the first lens is disposed opposite the flash and the second lens is disposed opposite the color sensor.
  • the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens.
  • the sensor the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens.
  • the color sensor can be made to accurately collect the ambient light.
  • FIG. 1 is a schematic structural diagram of an embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an optical window of the terminal described in FIG. 1 according to an embodiment of the present invention
  • Figure 3 is a side elevational view of the terminal depicted in Figure 1 provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an optical window of the terminal described in FIG. 5 according to an embodiment of the present invention.
  • Figure 7 is a side elevational view of the terminal depicted in Figure 5 provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a terminal manufacturing process according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of an embodiment of a method for image processing according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic flowchart diagram of still another embodiment of a method for image processing according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic flowchart diagram of still another embodiment of a method for image processing according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in the embodiment of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device.
  • a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a palmtop computer such as a notebook computer
  • MID Mobile Internet Devices
  • 1-3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment is specifically as follows:
  • FIG. 1 includes a housing 10 provided with a camera 11 and an optical window 12, wherein the optical window 12 includes a first lens 121 and a second lens 122, and the first lens 121 is disposed below A flash lamp 13 is disposed under the second lens 122.
  • the first lens 121 is used to diffuse the light of the flash lamp 13.
  • the second lens 122 is used to assist the color sensor 14 to collect ambient light to measure the ambient light by the color sensor 14.
  • the color, wherein the second lens 122 is a lens that has been atomized.
  • the optical window 12 includes a first lens 121 and a second lens 122.
  • the first lens 121 and the second lens 122 are arranged in parallel, and the distance between the first lens 121 and the second lens 122 is less than 1 cm.
  • FIG. 3 is a side view of the above terminal.
  • a flash 13 and a color sensor 14 are soldered to the PCB soldering plate 15, wherein the distance between the flash 13 and the color sensor 14 is Less than 2 cm, of course, the smaller the distance between the two, the smaller the size of the opening in the outer casing 10, which not only contributes to the aesthetics of the outer casing, but also saves the cost in manufacturing the optical window.
  • the color sensor 14 and the second lens 122 may be spaced apart by a distance. Generally, the distance is within 0.5 cm.
  • the terminal described in the embodiment of the present invention may further include a front cover, a display screen (touch screen), and other function buttons (such as: HOME button, volume +, volume -), and may also include other holes (such as a microphone). Holes, earphone holes, etc.).
  • the haze of the first lens 121 is smaller than the haze of the second lens 122.
  • the first lens 121 and the second lens 122 may uniformly mix the light diffusion material inside, thereby realizing the atomization process of the second lens, or the first lens may be atomized, but It is ensured that the haze of the first lens after the atomization treatment is smaller than the haze of the second lens.
  • the light diffusing material is a physical phenomenon of refraction, reflection and scattering when a medium having two refractive indices (density) is encountered on the way of the path by chemical or physical means, through the polymethyl methacrylate
  • a medium having two refractive indices density
  • inorganic or organic light diffusing agents to the substrate base of ester (PMMA), polycarbonate (Polycarbonate, PC), polystyrene (PS), polypropylene (PP), etc.
  • PMMA ester
  • PC polycarbonate
  • PS polystyrene
  • PP polypropylene
  • the color sensor 14 can more accurately measure the ambient light information.
  • FIG. 4 is a comparison diagram of ambient light collected by two color sensors under the lens.
  • the internal components of the lens do not include the light diffusing material, and thus, when the light passes through the lens, Direct direct shooting, therefore, the ability to collect ambient light is limited, and it is possible to miss part of the light source, and the lens in the figure b contains the light diffusing material inside, so when the light enters the lens, the light will be refracted, scattered, etc.
  • Phenomenon therefore, can divide a beam of light into multiple beams, and some light from different light sources can be mixed (so that the light response sensitivity of light sources in different directions is relatively close), the color sensor can fully collect ambient light, therefore, Receiving light from different sources, you can get more ambient light data, which can be used to accurately collect ambient light.
  • the effect of collecting ambient light is better than that of Figure a. The effect of light is good.
  • the field of view (FOV) of the first lens 121 is smaller than the FOV of the second lens 122.
  • the FOV of the second lens 122 may be greater than the FOV of the camera 11.
  • the FOV of the camera may be limited. Therefore, a part of the light source may be missing in the field of view during the photographing process, and the FOV of the second lens 122 may be larger than the FOV of the camera 11, and the FOV of the second lens 122 is larger. It has a light source other than the FOV of the acquisition camera, so that the color sensor can collect ambient light more accurately.
  • the FOV of the camera 11 and the flash 13 can be generally designed to be relatively close, that is, the difference between the angle of view of the camera 11 and the FOV of the flash 13 is less than a certain threshold, thereby enabling the brightness of the screen when the flash 13 is photographed. More uniform.
  • the threshold value may be 5 degrees, 4 degrees, 3 degrees, 1 degree, and 0.1 degrees. Specifically, it is determined according to specific practical application requirements, and is not limited herein.
  • the FOV of the second lens 122 is larger than the FOV of the camera 11, and the accuracy of measuring ambient light can be further improved.
  • the first lens 121 may be a Finn lens and the second lens 122 may be a flat transmissive mirror.
  • the first lens 121 may be a Finn lens
  • the second lens 122 may be a Finn lens
  • the haze of the first lens 121 is smaller than the haze of the second lens 122.
  • the focal length of the first lens 121 is smaller than the focal length of the second lens 122.
  • the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens.
  • the sensor the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens.
  • the color sensor can be made to accurately collect the ambient light.
  • FIG. 7 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes:
  • a housing 20 is provided with a camera 21 and an optical window 22, wherein the optical window 22 includes a first lens 221 and a second lens 222, below the first lens 221.
  • a flash lamp 23 is disposed, and a color sensor 24 is disposed under the second lens 222.
  • the first lens 221 is used to diffuse the light of the flash 23, and the second lens 222 is used to assist the color sensor 24 to collect ambient light to be measured by the color sensor 24.
  • the ambient light color wherein the first lens 221 is a Finn lens and the second lens 222 is a planar transmissive mirror, wherein the second lens 222 is an atomized lens.
  • the viewing angle of the plane light transmissive lens is larger than that of the Fresnel lens (since the surface of the flat light transmitting mirror is flat, and the surface of the flat lens is convex, the viewing angle of the flat light transmitting mirror is larger than that of the Philippine lens.
  • the viewing angle of the Neil lens can be ensured that the viewing angle of the second lens 222 is greater than the viewing angle of the first lens 221, so that the second lens 222 can assist the color sensor 24 to comprehensively collect ambient light during the photographing process, of course, At the time of the flash, color sensor 24 captures ambient light outside of the flash viewing angle.
  • FIG. 7 is a side view of the above terminal.
  • the flash pad 23 and the color sensor 24 are soldered to the PCB pad 25, wherein the distance between the flash 23 and the color sensor 24 is Less than 2 cm, of course, the smaller the distance between the two, the smaller the size of the opening on the outer casing 20, which not only contributes to the aesthetics of the outer casing, but also saves the cost in manufacturing the optical window (flash 23 and color sensor).
  • the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens.
  • a sensor, a first lens for diffusing the light of the flash lamp, and a second lens for assisting the color sensor to collect ambient light wherein the first lens 221 is a Finn lens, the second lens 222 is a flat light mirror, and the second lens is A lens that has been atomized.
  • FIG. 8 is a schematic flowchart of an embodiment of a terminal manufacturing process according to an embodiment of the present invention.
  • the manufacturing process described in this embodiment includes the following steps:
  • the first lens and the second lens are embedded in a position of the drilled hole
  • the first lens is disposed opposite to the flash lamp to realize the light diffused by the first lens
  • the second lens is disposed opposite to the color sensor, and the second lens assists the color sensor to collect the ambient light.
  • providing the first lens and the second lens includes:
  • a mold is provided on which the first lens and the second lens are arranged in parallel; the first lens and the second lens are injection molded using PMMA.
  • the first lens and the second lens are paired with polymethyl methacrylate (PMMA), then fired at a certain temperature, and finally, cooled and molded, the first lens and the second lens are integrated into together.
  • PMMA polymethyl methacrylate
  • the first lens and the second lens are arranged separately in parallel, and the distance between the first lens and the second lens is less than 1 cm.
  • the first lens may be a Finn lens and the second lens may be a flat transmissive mirror.
  • the first lens may be a Finn lens and the second lens may be a Finn lens.
  • the light diffusing material component of the first lens is less than a preset threshold, and the light diffusing material component of the second lens is greater than the predetermined threshold.
  • the first lens may contain little or no light diffusing material, and the second lens may contain a light diffusing material.
  • the preset threshold can be set according to user requirements or actual applications, and is not limited herein.
  • the outer casing of the above terminal may further comprise another drilling hole, that is, for locating the camera.
  • This technology belongs to the prior art and will not be described herein.
  • the viewing angle of the first lens may be smaller than the FOV of the second lens.
  • the FOV of the second lens may be greater than the FOV of the camera.
  • the focal length of the first lens is smaller than the focal length of the second lens.
  • the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens.
  • the sensor the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens.
  • the color sensor can be made to accurately collect the ambient light.
  • FIG. 9 is a schematic flowchart of an embodiment of a method for image processing according to an embodiment of the present invention.
  • the method for image processing described in this embodiment includes the following steps:
  • the color sensor can more comprehensively collect ambient light by using the terminal of the optical window.
  • the color data about the ambient light can be collected based on the color sensor of the above structure, and the image of the preset color card is acquired by the camera of the terminal.
  • the color sensor can be an RGBW sensor or a chromatographic sensor.
  • the RGBW includes four color data acquisition channels. Therefore, the four channels can be used to collect different color data, and the four color data acquisition channels can respectively be the color data of the R (red) channel and the G (green) channel. Color data, color data for B (blue) channels, and color data for W (white) channels.
  • the preset color card can be gray card and color card
  • the gray card can only display black and white color
  • the color card can display color
  • the commonly used color card such as 24 color card, 144 color card.
  • calibration data between the color data of the ambient light and the color card image of the acquired preset color card in the ambient light may be established.
  • the terminal can use the color sensor to acquire the color data of the current ambient light.
  • color data can be collected from the current ambient light by using each channel of the color sensor.
  • the color sensor can be used to directly collect color data from the current ambient light.
  • the color sensor is an RGBW sensor
  • the preset color card is a gray card
  • the gray card is black and white
  • its data only needs one channel of data to be represented, and thus, the terminal can be separately
  • the color data is collected by ambient light using the four channels of the RGBW sensor; when the preset color card is a color card, since the color card is colored and contains data of three channels of RGB, the terminal can directly utilize 4 of the RGBW sensors.
  • the channel collects color data directly.
  • the terminal can construct a functional relationship between the color data and the calibration data.
  • the color data can be used as the output data
  • the calibration data is used as the input data
  • the mapping relationship between the input data and the output data can exist.
  • a function between the input data and the output data is constructed based on the mapping relationship, so that the obtained solution can be used as an ambient light parameter.
  • the color data may be used as input data
  • the calibration data may be used as output data
  • a mapping relationship may exist between the input data and the output data
  • a function between the input data and the output data may be constructed according to the mapping relationship, thereby
  • the solution is taken as an ambient light parameter.
  • the terminal may perform color correction on the image to be processed by using the ambient light parameter.
  • the ambient light parameter may be the specific gravity of light of different light sources in the ambient light, and the image to be processed is color corrected according to the ambient light parameter.
  • the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
  • FIG. 10 is a schematic flowchart of still another embodiment of a method for image processing according to an embodiment of the present invention.
  • the method for image processing described in this embodiment includes the following steps:
  • the N different light sources are different light sources in the environment, and the terminal may use the color sensor to collect N color data in the N different light source environments.
  • the N is an integer not less than 3, that is, in the implementation of step 1001, it is required to collect color data of not less than 3 kinds of light sources. Corresponding color data is obtained under each light source.
  • the color sensor can be used to separately collect the color data of the morning ambient light, the color data of the noon ambient light, and the color data of the evening ambient light.
  • the color sensor can be used to collect the color data of the ambient light under the street lamp, the color data of the ambient light under the flashlight, and the color data of the ambient light under the desk lamp.
  • a color sensor is used to measure the color data sc k under different light sources, 1 ⁇ k ⁇ N, where N is the number of light source types, where k represents the kth light source.
  • SR k , SG k , SB k , SW k are the color data measured by the four channels of the RGBW sensor, where SR k is the color data obtained by the red channel, SG k is the color data obtained by the green channel, SB k For the color data obtained for the blue channel, SW k is the color data obtained by the white channel. Further, sred k is the color data of the normalized red channel, sgreen k is the color data of the normalized green channel, and sblue k is the color data of the normalized blue channel. among them,
  • the N cameras of the terminal can be used to obtain the N gray card images in the N different light source environments for the gray card in the N different light source environments, and in the N different light source environments.
  • Each light source environment corresponds to a gray card image
  • I k represents the kth gray card image, where 1 ⁇ k ⁇ N.
  • the terminal can align the gray card in N different light source environments, that is, the shooting range of the camera is occupied by the gray card. In each light source environment, a gray card image for the gray card is obtained.
  • the terminal can establish a mapping relationship between N color data and N gray card images.
  • the light source type cover the type of light source that may appear in the shooting scene as much as possible.
  • R k , G k and B k are the average values of the R channel, the G channel, and the B channel of the gray card image under the kth light source, respectively.
  • r k represents the average value of the normalized R channel
  • g k represents the average value of the normalized G channel and the average value of the normalized B channel.
  • mapping relationship between sc k and gray k is established, and the mapping relationship between the two is the calibration data.
  • mapping relationship between sc k and gray k can be established as follows:
  • M under each light source can be solved, wherein M is the calibration data, the calibration data obtained under the N light source environment is saved, and a calibration database is established.
  • mapping relationship between sc k and gray k is also determined by a comparison method, and then the mapping relationship is found by looking up the table, that is, the calibration data.
  • Each of the light source environments has a corresponding mapping relationship, and the N mapping relationships are fitted, thereby obtaining a calibration database.
  • the terminal may use the color sensor to acquire color data of the current ambient light.
  • the terminal can use the RGBW color sensor to obtain the color data of the current ambient light.
  • the terminal may determine the ambient light parameter by using the color data of the current ambient light and the calibration data, where the ambient light parameter is a proportional component of various light sources in the current environment.
  • the terminal may determine target calibration data in the calibration data that matches the current environment, and determine an ambient light parameter according to the target calibration data and color data of the current ambient light.
  • the image to be processed can be taken while the color data of the current ambient light is measured using a color sensor, and then the ambient light parameters are solved.
  • the terminal may further calculate color data of the virtual gray card according to the ambient light parameter, and finally calculate a white balance gain according to the color data of the virtual gray card, wherein the virtual gray card means that the shooting scene does not exist, but
  • the algorithm in the embodiment of the invention can estimate the color of the gray card in the current shooting scene according to the color sensor and prior knowledge.
  • the terminal may determine three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light as the target calibration data.
  • the distance value is the color data of the light source corresponding to the three Euclidean distance values as the color data in the current environment.
  • the terminal can determine the ambient light parameter according to the target calibration data and the color data of the current ambient light, which can make:
  • p k represents the ambient light parameter
  • k is 1 or 2, or 3
  • sc k represents the target calibration data
  • sc represents the color data in the current environment.
  • This mapping relationship can be divided into three cases according to the rank of SC m , and thus, the rank of the matrix SC m is calculated.
  • the virtual data of the virtual gray card is gray virtual :
  • the virtual data of the virtual gray card is gray virtual :
  • the terminal may perform color correction on the image to be processed by using the ambient light parameter, as follows:
  • the gray virtual can be regarded as the color data of the gray card, and the gray virtual is divided into RGB three-channel data, as follows:
  • the N color data in the N different light source environments are respectively collected by using the color sensor, and the N color card images for the gray card in the N different light source environments are obtained, and according to the N color data and the N
  • the gray card images determine calibration data; obtain color data of the current ambient light; determine ambient light parameters according to the calibration data and the color data; perform color correction on the image to be processed according to the ambient light parameters. Therefore, the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
  • FIG. 1 A flowchart of still another embodiment of a method for image processing according to an embodiment of the present invention is shown in FIG.
  • the method for image processing described in this embodiment includes the following steps:
  • the terminal may collect color data about ambient light based on the color sensor, and use the camera of the terminal to collect an image of the preset color card.
  • the color sensor can be RGBW Sensor, chromatographic sensor.
  • the terminal separately collects N color data in N different light source environments by using a color sensor, wherein the N is an integer not less than 3, and acquires N color card images for the color card in the N different light source environments. Determining calibration data based on the N color data and the N color card images.
  • a color sensor is used to measure color data sc k under different light sources, 1 ⁇ k ⁇ N, where N is the number of light source types, where k represents the kth light source.
  • SR k , SG k , SB k , SW k are the color data measured by the four channels of the RGBW sensor, where SR k is the color data obtained by the red channel, SG k is the color data obtained by the green channel, SB k For the color data obtained for the blue channel, SW k is the color data obtained by the white channel. Further, sred k is the color data of the normalized red channel, sgreen k is the color data of the normalized green channel, and sblue k is the color data of the normalized blue channel. among them,
  • the camera of the terminal is used for shooting to obtain N color card images in the N different light source environments for the color card, and each of the N different light source environments Corresponding to one color card image respectively, I k represents the kth color card image, where 1 ⁇ k ⁇ N.
  • the terminal can align the color card in N different light source environments, that is, the shooting range of the camera is occupied by the color card. In each light source environment, a color card image for the color card is available.
  • the terminal can establish a mapping relationship between N color data and N color card images.
  • the light source type cover the type of light source that may appear in the shooting scene as much as possible.
  • R k , G k and B k are the average values of the R channel, the G channel, and the B channel of the color card image under the kth light source, respectively.
  • r k represents the average value of the normalized R channel
  • g k represents the average value of the normalized G channel and the average value of the normalized B channel.
  • mapping relationship between sc k and color k is established, and the mapping relationship between the two is the calibration data.
  • mapping relationship between sc k and color k can be established as follows:
  • X under each light source can be solved, where X is the calibration data, the calibration data obtained under the N light source environment is saved, and a calibration database is established.
  • mapping relationship between sc k and color k is also determined by a comparison method, and then the mapping relationship is found by looking up the table, that is, the calibration data.
  • Each of the light source environments has a corresponding mapping relationship, and the N mapping relationships are fitted, thereby obtaining a calibration database.
  • the terminal can establish a mapping relationship between color data and color k .
  • the color data be A
  • the color card image be B
  • the mapping relationship be C
  • AC B
  • C is the calibration data.
  • the terminal can construct a functional relationship between the color data and the color card image, and calculate the calibration data according to the function relationship.
  • the specific implementation process can be described by taking a 24-color card as an example, that is, the calibration data between the ambient light and the 24-color card is determined according to the color sensor and the 24-color card.
  • color k refers to the brightness normalized color data of the 24 color card under the kth light source. Since the brightness of the image may be different in different shooting scenes, after the color data is calculated, the color data is normalized according to the brightness, and the brightness of the 20th color block may be selected as a reference, and the color data is multiplied by a coefficient K. So that the 20th color block in the color data is the same as the 20th color block of the standard color card.
  • the coefficient K is the ratio of the 20th color block of the standard color card to the 20th color block in the image taken under each scene.
  • the terminal may use the color sensor to acquire color data of the current ambient light.
  • the terminal can use the RGBW color sensor to obtain the color data of the current ambient light.
  • the method for the terminal to solve the ambient light parameter according to Embodiment 1 is as follows:
  • the terminal may determine target calibration data that matches the current environment in the calibration data; and determine an ambient light parameter according to the target calibration data and color data of the current ambient light.
  • three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data. That is, calculating the Euclidean distance between the color data in the current ambient light and each calibration data included in the calibration database, thereby obtaining a plurality of Euclidean distance values and determining the smallest three of the plurality of Euclidean distance values.
  • the distance value is the color data of the light source corresponding to the three Euclidean distance values as the color data in the current environment.
  • Color virtual p1 ⁇ color m1 +p2 ⁇ color m2
  • P is a weighting coefficient and is also an ambient light parameter.
  • the terminal may determine the color data of the virtual color card on the basis of the ambient light, as follows:
  • the virtual color card can be written as:
  • Color virtual p1 ⁇ color m1 +p2 ⁇ color m2 +p3 ⁇ color m3 ,
  • the color data of the standard color card may be defined by a manufacturer or a standard organization.
  • the color vector of each color block of the standard color card is color std , and if there are N color blocks in the color card, the color std is a matrix of N ⁇ 3.
  • the data for this matrix is defined by the manufacturer or standard organization.
  • the color data of the standard 24-color card is known as:
  • Color std color virtual ⁇ M 3 ⁇ 3
  • M 3 ⁇ 3 Argmin (
  • ) which is a linear optimization problem:
  • the terminal may perform color correction on each pixel in the image to be processed according to the following equation, as follows:
  • the color data of the standard color card is known, and can be known by the production information of the standard color card.
  • the color reproduction matrix can be recorded as follows:
  • the color reproduction matrix can be recorded as:
  • the color of the output image is generally capable of color reproduction.
  • the conversion of the matrix more accurately restores the color.
  • Determining calibration data between ambient light and color card by using an embodiment of the present invention; acquiring color data of current ambient light; determining ambient light parameters according to the calibration data and the color data; determining color data of the virtual color card according to the ambient light parameter Obtaining color data of the standard color card, determining a color reproduction matrix according to the color data of the standard color card and the color data of the virtual color card; performing color correction on the image to be processed according to the color reproduction matrix. Therefore, the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
  • FIG. 12 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: a first determining unit 1201, a first obtaining unit 1202, a second determining unit 1203, and a first correcting unit 1204, as follows:
  • the first determining unit 1201 is configured to determine calibration data between the ambient light and the preset color card.
  • the first obtaining unit 1202 is configured to acquire color data of the current ambient light.
  • the second determining unit 1203 is configured to determine an ambient light parameter according to the calibration data determined by the first determining unit 1201 and the color data acquired by the first acquiring unit 1202.
  • the first correcting unit 1204 is configured to perform color correction on the image to be processed according to the ambient light parameter determined by the second determining unit 1203.
  • the first determining unit 1201 includes:
  • the collecting unit (not shown) is configured to separately collect N color data in N different light source environments by using a color sensor, wherein the N is an integer not less than 3.
  • a second acquiring unit (not shown) for acquiring N color card images of preset color cards in the N different light source environments
  • the third determining unit determines the calibration data according to the N color data collected by the collecting unit and the N color card images acquired by the second acquiring unit.
  • the second determining unit 1203 includes:
  • a fourth determining unit (not shown) for determining target calibration data in the calibration data that matches the current environment
  • a fifth determining unit (not shown) configured to construct the target calibration data determined by the fourth determining unit and the color data of the current ambient light to determine an ambient light parameter.
  • the calibration data includes at least three sets of data
  • the fourth determining unit is specifically configured to:
  • the three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data.
  • the first correcting unit 1204 may include:
  • a sixth determining unit (not shown) for determining color data of the virtual color card according to the ambient light parameter
  • a third obtaining unit (not shown) for obtaining color data of the standard color card
  • a seventh determining unit (not shown) for determining color according to color data of the standard color card acquired by the third obtaining unit and color data of the virtual color card determined by the sixth determining unit Regeneration matrix
  • a second correcting unit (not shown) for performing color correction on the image to be processed according to the color reproduction matrix determined by the seventh determining unit.
  • the calibration data and the ambient light parameters in the current environment can be utilized to perform color correction on the image to be processed according to the ambient light parameters, since the ambient light is used to correct the color in the embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 is connected via bus 5000.
  • the input device 1000 may be a touch panel, a physical button, or a mouse.
  • the output device 2000 described above may specifically be a display screen.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory.
  • the memory 4000 is used to store a set of program codes.
  • the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and the following operations are performed: the processor 3000 is configured to:
  • Color correction is performed on the image to be processed according to the ambient light parameter.
  • the processor 3000 determines calibration data between the ambient light and the preset color card, including:
  • N color data in N different light source environments are respectively collected by using a color sensor, wherein the N is an integer not less than 3;
  • the calibration data is determined based on the N color data and the N color card images.
  • the processor 3000 determines the ambient light parameter according to the calibration data and the color data of the current ambient light, including:
  • the ambient light parameter is calculated according to the mapping relationship.
  • the calibration data includes at least three sets of data, and the processor 3000 determines the target calibration data that matches the current environment in the calibration data, including:
  • the three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data.
  • the processor 3000 when the preset color card is a color card, performs color correction on the image to be processed according to the ambient light parameter, including:
  • Color correction is performed on the image to be processed according to the color reproduction matrix.
  • the units in all the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Provided in the embodiments of the present invention are a terminal and a manufacturing process thereof, the terminal comprising: an outer shell, a camera and an optical window being arranged on the outer shell, the optical window comprising a first lens and a second lens, a flash lamp being arranged below the first lens and a colour sensor being arranged below the second lens, the first lens being used for diffusing the light rays of the flash lamp, and the second lens being used for helping the colour sensor to collect ambient light, the second lens being a lens having undergone atomisation treatment. As atomisation treatment is performed on the second lens, the embodiments of the present invention enable the colour sensor to accurately collect ambient light.

Description

一种终端及其制造工艺Terminal and manufacturing process thereof
本申请要求于2016年8月11日提交中国专利局、申请号为201610664989.5发明名称为“一种终端及其制造工艺”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. Serial No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及电子设备领域,具体涉及一种终端及其制造工艺。The present invention relates to the field of electronic devices, and in particular to a terminal and a manufacturing process thereof.
背景技术Background technique
随着信息技术的快速发展,终端(如手机、平板电脑等等)已成为用户生活中的一部分。对于用户来说,终端的拍照功能已成为其选择终端的一个重要衡量指标,因而,终端生产商也致力于让终端的拍照功能更加完善。目前来看,针对暗视觉环境下的拍照技术,主要通过采集环境光,并基于该环境光来进一步对获取图像进行图像处理,但是,现有技术中,无法准确地获取环境光,因而,导致后续图像处理效果不佳。With the rapid development of information technology, terminals (such as mobile phones, tablets, etc.) have become a part of the user's life. For the user, the camera function of the terminal has become an important measure for selecting the terminal. Therefore, the terminal manufacturer is also committed to making the camera function of the terminal more perfect. At present, the camera technology in the dark vision environment mainly collects ambient light and performs image processing on the acquired image based on the ambient light. However, in the prior art, ambient light cannot be accurately obtained, thus resulting in Subsequent image processing is not effective.
发明内容Summary of the invention
本发明实施例提供了一种终端及其制造工艺,可以基于该终端准确地采集环境光。Embodiments of the present invention provide a terminal and a manufacturing process thereof, which can accurately collect ambient light based on the terminal.
本发明实施例第一方面提供了一种终端,包括:A first aspect of the embodiment of the present invention provides a terminal, including:
外壳,所述外壳设置有摄像头和光学窗口,其中,所述光学窗口包含第一透镜和第二透镜,所述第一透镜下方设置有闪光灯,所述第二透镜下方设置有颜色传感器,所述第一透镜用于扩散所述闪光灯的光线,所述第二透镜用于辅助所述颜色传感器采集环境光,其中,所述第二透镜为已雾化处理的透镜。a housing, the housing is provided with a camera and an optical window, wherein the optical window comprises a first lens and a second lens, a flash is disposed under the first lens, and a color sensor is disposed under the second lens, A first lens is used to diffuse light from the flash lamp, and a second lens is used to assist the color sensor in collecting ambient light, wherein the second lens is an atomized lens.
本发明实施例第二方面提供了一种终端制造工艺,包括:A second aspect of the embodiments of the present invention provides a terminal manufacturing process, including:
提供PCB焊板,所述PCB焊板焊接有闪光灯和颜色传感器;Providing a PCB soldering plate soldered with a flash lamp and a color sensor;
提供第一透镜和第二透镜;Providing a first lens and a second lens;
提供外壳,所述外壳包含钻孔;Providing a housing, the housing comprising a bore;
将所述第一透镜和所述第二透镜镶嵌于在所述钻孔的位置; Inserting the first lens and the second lens in a position at the borehole;
将所述PCB焊板和所述外壳组装在一起,使得所述第一透镜与所述闪光灯相对设置和所述第二透镜与所述颜色传感器相对设置。The PCB pad and the housing are assembled such that the first lens is disposed opposite the flash and the second lens is disposed opposite the color sensor.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
可以看出,通过本发明实施例中所描述的终端外壳设置有摄像头和光学窗口,其中,光学窗口包含第一透镜和第二透镜,第一透镜下方设置有闪光灯,第二透镜下方设置有颜色传感器,第一透镜用于扩散闪光灯的光线,第二透镜用于辅助颜色传感器采集环境光,其中,第二透镜为已雾化处理的透镜。从而,由于第二透镜进行了雾化处理,因此,可使得颜色传感器准确地采集环境光。It can be seen that the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens. The sensor, the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens. Thereby, since the second lens is subjected to the atomization process, the color sensor can be made to accurately collect the ambient light.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例提供的一种终端的实施例结构示意图;1 is a schematic structural diagram of an embodiment of a terminal according to an embodiment of the present invention;
图2是本发明实施例提供的图1中所描述的终端的光学窗口的结构示意图;2 is a schematic structural diagram of an optical window of the terminal described in FIG. 1 according to an embodiment of the present invention;
图3是本发明实施例提供的图1中所描述的终端的侧视图;Figure 3 is a side elevational view of the terminal depicted in Figure 1 provided by an embodiment of the present invention;
图4是本发明实施例提供的两种透镜下颜色传感器采集环境光对比图;4 is a comparison diagram of ambient light collected by two color sensors under the lens according to an embodiment of the present invention;
图5是本发明实施例提供的一种终端的又一实施例结构示意图;FIG. 5 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure;
图6是本发明实施例提供的图5中所描述的终端的光学窗口的结构示意图;6 is a schematic structural diagram of an optical window of the terminal described in FIG. 5 according to an embodiment of the present invention;
图7是本发明实施例提供的图5中所描述的终端的侧视图;Figure 7 is a side elevational view of the terminal depicted in Figure 5 provided by an embodiment of the present invention;
图8是本发明实施例提供的一种终端制造工艺的流程示意图;FIG. 8 is a schematic flowchart of a terminal manufacturing process according to an embodiment of the present invention; FIG.
图9是本发明实施例提供的一种图像处理的方法的实施例流程示意图;FIG. 9 is a schematic flowchart diagram of an embodiment of a method for image processing according to an embodiment of the present disclosure;
图10是本发明实施例提供的一种图像处理的方法的又一实施例流程示意图;FIG. 10 is a schematic flowchart diagram of still another embodiment of a method for image processing according to an embodiment of the present disclosure;
图11是本发明实施例提供的一种图像处理的方法的又一实施例流程示意图; FIG. 11 is a schematic flowchart diagram of still another embodiment of a method for image processing according to an embodiment of the present disclosure;
图12是本发明实施例提供的一种终端的又一实施例结构示意图;FIG. 12 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure;
图13是本发明实施例提供的一种终端的又一实施例结构示意图。FIG. 13 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例所描述的终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述终端仅是举例,而非穷举,包含但不限于上述终端。The terminal described in the embodiment of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device. The above terminals are merely examples, not exhaustive, and include but are not limited to the above terminals.
请参阅图1-图3,为本发明实施例提供的一种终端的结构示意图。本实施例中所描述的终端,具体如下:1-3 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal described in this embodiment is specifically as follows:
如图1所示,图1包含一外壳10,该外壳10设置有摄像头11和光学窗口12,其中,该光学窗口12包含第一透镜121和第二透镜122,该第一透镜121下方设置有闪光灯13,该第二透镜122下方设置有颜色传感器14,该第一透镜121用于扩散闪光灯13的光线,第二透镜122用于辅助颜色传感器14采集环境光,以由颜色传感器14测量环境光颜色,其中,第二透镜122为已雾化处理的透镜。As shown in FIG. 1, FIG. 1 includes a housing 10 provided with a camera 11 and an optical window 12, wherein the optical window 12 includes a first lens 121 and a second lens 122, and the first lens 121 is disposed below A flash lamp 13 is disposed under the second lens 122. The first lens 121 is used to diffuse the light of the flash lamp 13. The second lens 122 is used to assist the color sensor 14 to collect ambient light to measure the ambient light by the color sensor 14. The color, wherein the second lens 122 is a lens that has been atomized.
具体地,如图2所示,上述光学窗口12包含第一透镜121和第二透镜122。其中,该第一透镜121和第二透镜122之间并行排列,第一透镜121与第二透镜122之间的距离小于1厘米。Specifically, as shown in FIG. 2, the optical window 12 includes a first lens 121 and a second lens 122. The first lens 121 and the second lens 122 are arranged in parallel, and the distance between the first lens 121 and the second lens 122 is less than 1 cm.
具体地,如图3所示,图3为上述终端的侧视图,如图3中,PCB焊板15上焊接有闪光灯13和颜色传感器14,其中,该闪光灯13和颜色传感器14之间的距离小于2厘米,当然,两者之间的距离越小,那么,在外壳10上开口的大小越小,不仅有利于外壳的美观,也节省在制造光学窗口过程中的成本 (闪光灯13和颜色传感器14之间的距离越小,对应的光学窗口的面积越小)。当然,闪光灯13与第一透镜121之间可以有一段距离间隔,颜色传感器14与第二透镜122之间可以有一段距离间隔,通常情况下,上述一段距离均在0.5厘米以内。Specifically, as shown in FIG. 3, FIG. 3 is a side view of the above terminal. As shown in FIG. 3, a flash 13 and a color sensor 14 are soldered to the PCB soldering plate 15, wherein the distance between the flash 13 and the color sensor 14 is Less than 2 cm, of course, the smaller the distance between the two, the smaller the size of the opening in the outer casing 10, which not only contributes to the aesthetics of the outer casing, but also saves the cost in manufacturing the optical window. (The smaller the distance between the flash 13 and the color sensor 14, the smaller the area of the corresponding optical window). Of course, there may be a distance between the flash lamp 13 and the first lens 121. The color sensor 14 and the second lens 122 may be spaced apart by a distance. Generally, the distance is within 0.5 cm.
当然,本发明实施例中所描述的终端,还可包括前壳,显示屏(触摸屏)及其他功能按键(如:HOME键,音量+、音量-),还可以包含其他钻孔(如:麦克风孔、耳机孔等等)。Of course, the terminal described in the embodiment of the present invention may further include a front cover, a display screen (touch screen), and other function buttons (such as: HOME button, volume +, volume -), and may also include other holes (such as a microphone). Holes, earphone holes, etc.).
可选地,上述第一透镜121的雾度小于上述第二透镜122的雾度。上述第一透镜121和第二透镜122在制作过程中,内部可均匀参杂光扩散材料,以此实现第二透镜进行雾化处理,或者,第一透镜也可进行雾化处理,但是,须保证雾化处理后的第一透镜的雾度小于第二透镜的雾度。其中,光扩散材料是通过化学或物理的手段,利用光线在行径途中遇到两个折射率(密度)相异的介质时,发生折射、反射与散射的物理现象,通过在聚甲基丙烯酸甲酯(PMMA)、聚碳酸酯(Polycarbonate,PC)、聚苯乙烯(Polystyrene,PS)、聚丙烯(Polypropylene,PP)等基材基础中添加无机或有机光扩散剂,通过基材表面的微特征结构的阵列排列调整光线、使光线发生不同方向的折射、反射、与散射,从而改变光的行进路线,实现入射光充分散色以此产生光学扩散的效果。应用中,光扩散材料覆盖在颜色传感器上时,能增大入射角度的光线,且颜色传感器的各光点感应单元感应到的光线强度和光谱较为接近。由于扩散作用,测量的指向性更弱,不容易受到环境中局部鲜艳物体的影响,基于上述结构,可使得颜色传感器14能更准确地测量环境光信息。Optionally, the haze of the first lens 121 is smaller than the haze of the second lens 122. During the manufacturing process, the first lens 121 and the second lens 122 may uniformly mix the light diffusion material inside, thereby realizing the atomization process of the second lens, or the first lens may be atomized, but It is ensured that the haze of the first lens after the atomization treatment is smaller than the haze of the second lens. Wherein, the light diffusing material is a physical phenomenon of refraction, reflection and scattering when a medium having two refractive indices (density) is encountered on the way of the path by chemical or physical means, through the polymethyl methacrylate Adding inorganic or organic light diffusing agents to the substrate base of ester (PMMA), polycarbonate (Polycarbonate, PC), polystyrene (PS), polypropylene (PP), etc. The array of structures adjusts the light, causes the light to refract, reflect, and scatter in different directions, thereby changing the traveling path of the light, and achieving the effect of optical diffusion by sufficiently diffusing the incident light. In the application, when the light diffusing material is covered on the color sensor, the light of the incident angle can be increased, and the light intensity and the spectrum sensed by the light spot sensing units of the color sensor are relatively close. Due to the diffusion effect, the directivity of the measurement is weaker and is not easily affected by the local bright objects in the environment. Based on the above structure, the color sensor 14 can more accurately measure the ambient light information.
需要说明的是,如图4所示,图4为两种透镜下颜色传感器采集环境光对比图,a图中透镜,其内部成分不包含上述光扩散材料,因而,光穿过透镜的时候,直接进行直射,因而,采集环境光的能力有限,并且有可能遗漏部分光源,而b图中透镜,其内部成分含上述光扩散材料,因而,光进入透镜的时候,光会发生折射,散射等现象,因而,可将一束光分为多束,而有的来自不同光源的光可进行混合(使得不同方向的光源的光线响应灵敏度比较接近),颜色传感器可充分采集环境光,因此,可接收不同光源混合后的光,可得到更多的环境光数据,可用于准确采集环境光。b图采集环境光的效果比图a采集环境 光的效果好。It should be noted that, as shown in FIG. 4, FIG. 4 is a comparison diagram of ambient light collected by two color sensors under the lens. In the figure, the internal components of the lens do not include the light diffusing material, and thus, when the light passes through the lens, Direct direct shooting, therefore, the ability to collect ambient light is limited, and it is possible to miss part of the light source, and the lens in the figure b contains the light diffusing material inside, so when the light enters the lens, the light will be refracted, scattered, etc. Phenomenon, therefore, can divide a beam of light into multiple beams, and some light from different light sources can be mixed (so that the light response sensitivity of light sources in different directions is relatively close), the color sensor can fully collect ambient light, therefore, Receiving light from different sources, you can get more ambient light data, which can be used to accurately collect ambient light. b The effect of collecting ambient light is better than that of Figure a. The effect of light is good.
可选地,上述第一透镜121的视角(Field of View,FOV)小于第二透镜122的FOV。Optionally, the field of view (FOV) of the first lens 121 is smaller than the FOV of the second lens 122.
进一步可选地,第二透镜122的FOV可大于摄像头11的FOV。例如,拍照过程中,可能摄像头的FOV有限,因而,拍照过程中视野范围中可能遗漏部分光源,而第二透镜122的FOV可大于摄像头11的FOV的话,第二透镜122的FOV更大,因此,具备采集摄像头的FOV以外的光源,从而,颜色传感器可更加准确地采集环境光。Further optionally, the FOV of the second lens 122 may be greater than the FOV of the camera 11. For example, during the photographing process, the FOV of the camera may be limited. Therefore, a part of the light source may be missing in the field of view during the photographing process, and the FOV of the second lens 122 may be larger than the FOV of the camera 11, and the FOV of the second lens 122 is larger. It has a light source other than the FOV of the acquisition camera, so that the color sensor can collect ambient light more accurately.
可选地,上述摄像头11和闪光灯13的FOV通常可设计成比较接近,即摄像头11的视角与闪光灯13的FOV之间的差值小于某一阈值,从而,可以使得闪光灯13拍照时,画面亮度比较均匀。其中,上述阈值可为5度,4度,3度,1度,0.1度,具体地,依据具体实际应用需求而定,在此不作限定。当然,在环境光光源没有落在摄像头视野内时,可通过第二透镜122透过环境光,由颜色传感器14采集环境光。因此,在第二透镜122的FOV大于摄像头11的FOV,可进一步提高测量环境光的准确性。Optionally, the FOV of the camera 11 and the flash 13 can be generally designed to be relatively close, that is, the difference between the angle of view of the camera 11 and the FOV of the flash 13 is less than a certain threshold, thereby enabling the brightness of the screen when the flash 13 is photographed. More uniform. The threshold value may be 5 degrees, 4 degrees, 3 degrees, 1 degree, and 0.1 degrees. Specifically, it is determined according to specific practical application requirements, and is not limited herein. Of course, when the ambient light source does not fall within the field of view of the camera, ambient light can be transmitted through the second lens 122 to collect ambient light by the color sensor 14. Therefore, the FOV of the second lens 122 is larger than the FOV of the camera 11, and the accuracy of measuring ambient light can be further improved.
可选地,第一透镜121可为菲尼尔透镜,第二透镜122可为平面透光镜。Alternatively, the first lens 121 may be a Finn lens and the second lens 122 may be a flat transmissive mirror.
可选地,第一透镜121可为菲尼尔透镜,第二透镜122可为菲尼尔透镜,但是,第一透镜121的雾度小于第二镜头122的雾度。进一步地,第一透镜121的焦距小于第二透镜122的焦距。Alternatively, the first lens 121 may be a Finn lens, and the second lens 122 may be a Finn lens, but the haze of the first lens 121 is smaller than the haze of the second lens 122. Further, the focal length of the first lens 121 is smaller than the focal length of the second lens 122.
可以看出,通过本发明实施例中所描述的终端外壳设置有摄像头和光学窗口,其中,光学窗口包含第一透镜和第二透镜,第一透镜下方设置有闪光灯,第二透镜下方设置有颜色传感器,第一透镜用于扩散闪光灯的光线,第二透镜用于辅助颜色传感器采集环境光,其中,第二透镜为已雾化处理的透镜。从而,由于第二透镜进行了雾化处理,因此,可使得颜色传感器准确地采集环境光。It can be seen that the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens. The sensor, the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens. Thereby, since the second lens is subjected to the atomization process, the color sensor can be made to accurately collect the ambient light.
与上述一致地,请参阅图5-图7,为本发明实施例提供的一种终端的又一实施例结构示意图。本实施例中所描述的终端,包括:With reference to FIG. 5, FIG. 7 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention. The terminal described in this embodiment includes:
结合图5-图7,外壳20,该外壳20设置有摄像头21和光学窗口22,其中,该光学窗口22包含第一透镜221和第二透镜222,该第一透镜221下方 设置有闪光灯23,该第二透镜222下方设置有颜色传感器24,该第一透镜221用于扩散闪光灯23的光线,第二透镜222用于辅助颜色传感器24采集环境光,以由颜色传感器24测量环境光颜色,其中,第一透镜221为菲尼尔透镜,第二透镜222为平面透光镜,其中,第二透镜222为已雾化处理的透镜。通常情况下,平面透光镜的视角会大于菲尼尔透镜的视角(由于平面透光镜表面呈现平面,而菲尼尔透镜表面呈现凸透状,因而,平面透光镜的视角会大于菲尼尔透镜的视角),因此,可保证第二透镜222的视角大于第一透镜221的视角,以便于第二透镜222可在拍照过程中,辅助颜色传感器24全面采集环境光,当然,在开启闪光灯时,颜色传感器24可捕捉到闪光灯视角以外的环境光。5-7, a housing 20 is provided with a camera 21 and an optical window 22, wherein the optical window 22 includes a first lens 221 and a second lens 222, below the first lens 221. A flash lamp 23 is disposed, and a color sensor 24 is disposed under the second lens 222. The first lens 221 is used to diffuse the light of the flash 23, and the second lens 222 is used to assist the color sensor 24 to collect ambient light to be measured by the color sensor 24. The ambient light color, wherein the first lens 221 is a Finn lens and the second lens 222 is a planar transmissive mirror, wherein the second lens 222 is an atomized lens. Generally, the viewing angle of the plane light transmissive lens is larger than that of the Fresnel lens (since the surface of the flat light transmitting mirror is flat, and the surface of the flat lens is convex, the viewing angle of the flat light transmitting mirror is larger than that of the Philippine lens. The viewing angle of the Neil lens can be ensured that the viewing angle of the second lens 222 is greater than the viewing angle of the first lens 221, so that the second lens 222 can assist the color sensor 24 to comprehensively collect ambient light during the photographing process, of course, At the time of the flash, color sensor 24 captures ambient light outside of the flash viewing angle.
具体地,如图7所示,图7为上述终端的侧视图,如图7中,PCB焊板25上焊接有闪光灯23和颜色传感器24,其中,该闪光灯23和颜色传感器24之间的距离小于2厘米,当然,两者之间的距离越小,那么,在外壳20上开口的大小越小,不仅有利于外壳的美观,也节省在制造光学窗口过程中的成本(闪光灯23和颜色传感器24之间的距离越小,对应的光学窗口的面积越小)。Specifically, as shown in FIG. 7, FIG. 7 is a side view of the above terminal. As shown in FIG. 7, the flash pad 23 and the color sensor 24 are soldered to the PCB pad 25, wherein the distance between the flash 23 and the color sensor 24 is Less than 2 cm, of course, the smaller the distance between the two, the smaller the size of the opening on the outer casing 20, which not only contributes to the aesthetics of the outer casing, but also saves the cost in manufacturing the optical window (flash 23 and color sensor). The smaller the distance between 24, the smaller the area of the corresponding optical window).
可以看出,通过本发明实施例中所描述的终端外壳设置有摄像头和光学窗口,其中,光学窗口包含第一透镜和第二透镜,第一透镜下方设置有闪光灯,第二透镜下方设置有颜色传感器,第一透镜用于扩散闪光灯的光线,第二透镜用于辅助颜色传感器采集环境光,其中,第一透镜221为菲尼尔透镜,第二透镜222为平面透光镜,第二透镜为已雾化处理的透镜。从而,由于第二透镜进行了雾化处理,因此,可使得颜色传感器准确地采集环境光。It can be seen that the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens. a sensor, a first lens for diffusing the light of the flash lamp, and a second lens for assisting the color sensor to collect ambient light, wherein the first lens 221 is a Finn lens, the second lens 222 is a flat light mirror, and the second lens is A lens that has been atomized. Thereby, since the second lens is subjected to the atomization process, the color sensor can be made to accurately collect the ambient light.
基于上述终端的结构,请参阅图8,为本发明实施例提供的一种终端制造工艺的实施例流程示意图。本实施例中所描述的制造工艺,包括以下步骤:Based on the structure of the terminal, refer to FIG. 8 , which is a schematic flowchart of an embodiment of a terminal manufacturing process according to an embodiment of the present invention. The manufacturing process described in this embodiment includes the following steps:
801、提供PCB焊板,所述PCB焊板焊接有闪光灯和颜色传感器;801. Providing a PCB soldering board, wherein the PCB soldering board is soldered with a flash lamp and a color sensor;
802、提供第一透镜和第二透镜;802, providing a first lens and a second lens;
803、提供外壳,所述外壳包含钻孔;803. Providing a casing, the casing comprising a borehole;
804、将所述第一透镜和所述第二透镜镶嵌于在所述钻孔的位置;804. The first lens and the second lens are embedded in a position of the drilled hole;
805、将所述PCB焊板和所述外壳组装在一起,使得所述第一透镜与所述闪光灯相对设置和所述第二透镜与所述颜色传感器相对设置。 805. Assemble the PCB soldering plate and the outer casing such that the first lens is disposed opposite to the flash and the second lens is disposed opposite to the color sensor.
其中,第一透镜与闪光灯相对设置可实现由第一透镜扩散闪光灯的光线,第二透镜与颜色传感器相对设置可由第二透镜辅助颜色传感器采集环境光。Wherein, the first lens is disposed opposite to the flash lamp to realize the light diffused by the first lens, and the second lens is disposed opposite to the color sensor, and the second lens assists the color sensor to collect the ambient light.
可选地,上述提供第一透镜和第二透镜包括:Optionally, providing the first lens and the second lens includes:
提供一个模具,在所述模具上并行排列所述第一透镜和所述第二透镜;采用PMMA对所述第一透镜和所述第二透镜进行注塑。当然,采用聚甲基丙烯酸甲酯(PMMA)对第一透镜和第二透镜,然后,采用一定的温度对其进行烧制,最后,冷却成型,即可将第一透镜和第二透镜集成到一起。其中,该第一透镜和第二透镜分开并行排列,第一透镜与第二透镜之间的距离小于1厘米。A mold is provided on which the first lens and the second lens are arranged in parallel; the first lens and the second lens are injection molded using PMMA. Of course, the first lens and the second lens are paired with polymethyl methacrylate (PMMA), then fired at a certain temperature, and finally, cooled and molded, the first lens and the second lens are integrated into together. Wherein, the first lens and the second lens are arranged separately in parallel, and the distance between the first lens and the second lens is less than 1 cm.
可选地,第一透镜可为菲尼尔透镜,第二透镜可为平面透光镜。Alternatively, the first lens may be a Finn lens and the second lens may be a flat transmissive mirror.
可选地,第一透镜可为菲尼尔透镜,第二透镜可为菲尼尔透镜。Alternatively, the first lens may be a Finn lens and the second lens may be a Finn lens.
可选地,上述第一透镜的光扩散材料成分小于预设阈值,上述第二透镜的光扩散材料成分大于所述预设阈值。当然,第一透镜可以少含或者不含光扩散材料,第二透镜则含有光扩散材料。预设阈值可根据用户需求或者实际应用进行设置,在此不做限定。Optionally, the light diffusing material component of the first lens is less than a preset threshold, and the light diffusing material component of the second lens is greater than the predetermined threshold. Of course, the first lens may contain little or no light diffusing material, and the second lens may contain a light diffusing material. The preset threshold can be set according to user requirements or actual applications, and is not limited herein.
当然,上述终端的外壳还可包含另一钻孔,即用于安置摄像头,该技术属于现有技术,在此不再赘述。Of course, the outer casing of the above terminal may further comprise another drilling hole, that is, for locating the camera. This technology belongs to the prior art and will not be described herein.
可选地,上述第一透镜的视角可小于第二透镜的FOV。Optionally, the viewing angle of the first lens may be smaller than the FOV of the second lens.
进一步可选地,第二透镜的FOV可大于摄像头的FOV。Further optionally, the FOV of the second lens may be greater than the FOV of the camera.
可选地,第一透镜的焦距小于第二透镜的焦距。Optionally, the focal length of the first lens is smaller than the focal length of the second lens.
可以看出,通过本发明实施例中所描述的终端外壳设置有摄像头和光学窗口,其中,光学窗口包含第一透镜和第二透镜,第一透镜下方设置有闪光灯,第二透镜下方设置有颜色传感器,第一透镜用于扩散闪光灯的光线,第二透镜用于辅助颜色传感器采集环境光,其中,第二透镜为已雾化处理的透镜。从而,由于第二透镜进行了雾化处理,因此,可使得颜色传感器准确地采集环境光。It can be seen that the terminal housing described in the embodiment of the present invention is provided with a camera and an optical window, wherein the optical window includes a first lens and a second lens, a flash is disposed under the first lens, and a color is disposed under the second lens. The sensor, the first lens is used to diffuse the light of the flash lamp, and the second lens is used to assist the color sensor to collect ambient light, wherein the second lens is an atomized lens. Thereby, since the second lens is subjected to the atomization process, the color sensor can be made to accurately collect the ambient light.
基于上述终端的结构及制造工艺,请参阅图9,为本发明实施例提供的一种图像处理的方法的实施例流程示意图。本实施例中所描述的图像处理的方法,包括以下步骤:Based on the structure and manufacturing process of the foregoing terminal, please refer to FIG. 9 , which is a schematic flowchart of an embodiment of a method for image processing according to an embodiment of the present invention. The method for image processing described in this embodiment includes the following steps:
901、确定环境光与预设颜色卡之间的标定数据。 901. Determine calibration data between the ambient light and the preset color card.
本发明实施例中,采用上述光学窗口的终端,颜色传感器可更全面的采集环境光。可基于上述结构的颜色传感器采集关于环境光的颜色数据,利用该终端的摄像头采集预设颜色卡的图像。其中,颜色传感器可为RGBW传感器、色谱传感器。其中,RGBW包含4个颜色数据采集通道,因而,可分别利用该4个通道采集不同的颜色数据,该4个颜色数据采集通道可分别为R(红色)通道的颜色数据、G(绿色)通道的颜色数据、B(蓝色)通道的颜色数据和W(白色)通道的颜色数据。其中,预设颜色卡可为灰卡和色卡,灰卡即只能显示黑白颜色,色卡可呈现彩色,常用的色卡,如24色卡、144色卡。可选地,本发明实施例中,可建立环境光的颜色数据与该环境光下的获取到的预设颜色卡的颜色卡图像之间的标定数据。In the embodiment of the present invention, the color sensor can more comprehensively collect ambient light by using the terminal of the optical window. The color data about the ambient light can be collected based on the color sensor of the above structure, and the image of the preset color card is acquired by the camera of the terminal. Among them, the color sensor can be an RGBW sensor or a chromatographic sensor. The RGBW includes four color data acquisition channels. Therefore, the four channels can be used to collect different color data, and the four color data acquisition channels can respectively be the color data of the R (red) channel and the G (green) channel. Color data, color data for B (blue) channels, and color data for W (white) channels. Among them, the preset color card can be gray card and color card, the gray card can only display black and white color, the color card can display color, and the commonly used color card, such as 24 color card, 144 color card. Optionally, in the embodiment of the present invention, calibration data between the color data of the ambient light and the color card image of the acquired preset color card in the ambient light may be established.
902、获取当前环境光的颜色数据。902. Obtain color data of current ambient light.
本发明实施例中,由于每时每刻环境中的光线不一样,因此,终端可利用颜色传感器获取当前环境光的颜色数据。In the embodiment of the present invention, since the light in the environment is different every moment, the terminal can use the color sensor to acquire the color data of the current ambient light.
需要说明的是,在预设颜色卡为灰卡时,可分别利用颜色传感器的各个通道对当前环境光采集颜色数据。在预设颜色卡为色卡时,可利用颜色传感器直接对当前环境光采集颜色数据。It should be noted that, when the preset color card is a gray card, color data can be collected from the current ambient light by using each channel of the color sensor. When the preset color card is a color card, the color sensor can be used to directly collect color data from the current ambient light.
进一步地,假设颜色传感器为RGBW传感器,那么,在预设颜色卡为灰卡时,由于灰卡为颜色为黑白,因而,它的数据只需要一个通道的数据便可表示,因而,终端可分别利用该RGBW传感器的4个通道对环境光采集颜色数据;在预设颜色卡为色卡时,由于色卡为彩色,包含RGB三个通道的数据,因而,终端可直接利用RGBW传感器的4个通道直接采集彩色的颜色数据。Further, if the color sensor is an RGBW sensor, when the preset color card is a gray card, since the gray card is black and white, its data only needs one channel of data to be represented, and thus, the terminal can be separately The color data is collected by ambient light using the four channels of the RGBW sensor; when the preset color card is a color card, since the color card is colored and contains data of three channels of RGB, the terminal can directly utilize 4 of the RGBW sensors. The channel collects color data directly.
903、根据所述标定数据和所述当前环境光的颜色数据确定环境光参数。903. Determine an ambient light parameter according to the calibration data and color data of the current ambient light.
本发明实施例中,终端可构造颜色数据和标定数据之间的函数关系,例如,可将颜色数据作为输出数据,而将标定数据作为输入数据,输入数据与输出数据之间可存在映射关系,根据该映射关系构造输入数据和输出数据之间的函数,从而,可将求出的解作为环境光参数。或者,可将颜色数据作为输入数据,而将标定数据作为输出数据,输入数据与输出数据之间可存在映射关系,根据该映射关系构造输入数据和输出数据之间的函数,从而,可将求出的解作为环境光参数。 In the embodiment of the present invention, the terminal can construct a functional relationship between the color data and the calibration data. For example, the color data can be used as the output data, and the calibration data is used as the input data, and the mapping relationship between the input data and the output data can exist. A function between the input data and the output data is constructed based on the mapping relationship, so that the obtained solution can be used as an ambient light parameter. Alternatively, the color data may be used as input data, and the calibration data may be used as output data, and a mapping relationship may exist between the input data and the output data, and a function between the input data and the output data may be constructed according to the mapping relationship, thereby The solution is taken as an ambient light parameter.
904、根据所述环境光参数对待处理图像进行颜色矫正。904. Perform color correction on the image to be processed according to the ambient light parameter.
本发明实施例中,终端可利用环境光参数对待处理图像进行颜色矫正。例如,环境光参数可为环境光中不同光源的光的比重,根据该环境光参数对待处理图像进行颜色矫正。In the embodiment of the present invention, the terminal may perform color correction on the image to be processed by using the ambient light parameter. For example, the ambient light parameter may be the specific gravity of light of different light sources in the ambient light, and the image to be processed is color corrected according to the ambient light parameter.
通过本发明实施例确定环境光与预设颜色卡之间的标定数据;获取当前环境光的颜色数据;根据该标定数据和该颜色数据确定环境光参数;根据该环境光参数对待处理图像进行颜色矫正。从而,可利用标定数据与当前环境中的环境光参数,根据该环境光参数对待处理图像进行颜色矫正,由于本发明实施例中利用环境光对颜色进行矫正,因而,可较准确地对彩色图像进行矫正。Determining, by the embodiment of the present invention, calibration data between the ambient light and the preset color card; acquiring color data of the current ambient light; determining ambient light parameters according to the calibration data and the color data; and performing color processing on the image according to the ambient light parameter Correction. Therefore, the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
与上述一致地,请参阅图10,为本发明实施例提供的一种图像处理的方法的又一实施例流程示意图。本实施例中所描述的图像处理的方法,包括以下步骤:With reference to FIG. 10, it is a schematic flowchart of still another embodiment of a method for image processing according to an embodiment of the present invention. The method for image processing described in this embodiment includes the following steps:
1001、利用颜色传感器分别采集N个不同光源环境下的N个颜色数据,其中,所述N为不小于3的整数。1001. Collecting N color data in an environment of N different light sources by using a color sensor, wherein the N is an integer not less than 3.
本发明实施例中,N个不同光源为环境中的不同的光源,终端可利用颜色传感器采集该N个不同光源环境下的N个颜色数据。该N为不小于3的整数,即在步骤1001的实现过程中,要求采集不少于3种光源的颜色数据。在每一光源下可得到对应的颜色数据。In the embodiment of the present invention, the N different light sources are different light sources in the environment, and the terminal may use the color sensor to collect N color data in the N different light source environments. The N is an integer not less than 3, that is, in the implementation of step 1001, it is required to collect color data of not less than 3 kinds of light sources. Corresponding color data is obtained under each light source.
例如,可利用颜色传感器分别采集早上环境光的颜色数据、中午环境光的颜色数据和晚上环境光的颜色数据。或者,可利用颜色传感器采集路灯下环境光的颜色数据、手电筒下环境光的颜色数据和台灯下环境光的颜色数据。For example, the color sensor can be used to separately collect the color data of the morning ambient light, the color data of the noon ambient light, and the color data of the evening ambient light. Alternatively, the color sensor can be used to collect the color data of the ambient light under the street lamp, the color data of the ambient light under the flashlight, and the color data of the ambient light under the desk lamp.
首先,使用颜色传感器测量不同光源下的颜色数据sck,1<k≤N,其中N为光源种类的数量,其中,k表示第k个光源。First, a color sensor is used to measure the color data sc k under different light sources, 1 < k ≤ N, where N is the number of light source types, where k represents the kth light source.
Figure PCTCN2017073953-appb-000001
Figure PCTCN2017073953-appb-000001
其中,SRk,SGk,SBk,SWk是RGBW传感器的4个通道测量得到的颜色数据, 其中,SRk为红色通道得到的颜色数据,SGk为绿色通道得到的颜色数据,SBk为蓝色通道得到的颜色数据,SWk为白色通道得到的颜色数据。进一步地,sredk为归一化后的红色通道的颜色数据,sgreenk为归一化后的绿色通道的颜色数据,sbluek为归一化后的蓝色通道的颜色数据。其中,
Figure PCTCN2017073953-appb-000002
Figure PCTCN2017073953-appb-000003
Where SR k , SG k , SB k , SW k are the color data measured by the four channels of the RGBW sensor, where SR k is the color data obtained by the red channel, SG k is the color data obtained by the green channel, SB k For the color data obtained for the blue channel, SW k is the color data obtained by the white channel. Further, sred k is the color data of the normalized red channel, sgreen k is the color data of the normalized green channel, and sblue k is the color data of the normalized blue channel. among them,
Figure PCTCN2017073953-appb-000002
Figure PCTCN2017073953-appb-000003
1002、获取所述N个不同光源环境下针对灰卡的N个灰卡图像。1002. Obtain N gray card images for gray cards in the N different light source environments.
本发明实施例中,可分别N个不同光源环境下,利用终端的摄像头进行拍摄,以得到该针对灰卡的该N个不同光源环境下的N个灰卡图像,N个不同光源环境中的每一光源环境分别对应一个灰卡图像,Ik表示第k个灰卡图像,其中,1<k≤N。In the embodiment of the present invention, the N cameras of the terminal can be used to obtain the N gray card images in the N different light source environments for the gray card in the N different light source environments, and in the N different light source environments. Each light source environment corresponds to a gray card image, and I k represents the kth gray card image, where 1<k≤N.
具体地,终端可在N个不同光源环境下对准灰卡,即摄像头的拍摄范围被灰卡占据。在每一光源环境下,可得到针对灰卡的灰卡图像。Specifically, the terminal can align the gray card in N different light source environments, that is, the shooting range of the camera is occupied by the gray card. In each light source environment, a gray card image for the gray card is obtained.
1003、根据所述N个颜色数据和所述N个灰卡图像确定标定数据。1003. Determine calibration data according to the N color data and the N gray card images.
本发明实施例中,终端可建立N个颜色数据与N个灰卡图像之间的映射关系。具体实现过程中,需要要求要尽可能地使光源类型覆盖了拍摄场景中可能出现的光源类型。In the embodiment of the present invention, the terminal can establish a mapping relationship between N color data and N gray card images. In the specific implementation process, it is required to make the light source type cover the type of light source that may appear in the shooting scene as much as possible.
首先,计算各种光源类型下的针对灰卡的灰卡图像平均灰度grayk,表示第k个光源环境下的平均灰度。First, calculate the grayscale image average grayscale gray k for the gray card under various light source types, indicating the average grayscale in the kth light source environment.
然后,计算各场景下的灰卡的平均颜色;Then, calculate the average color of the gray card in each scene;
Figure PCTCN2017073953-appb-000004
Figure PCTCN2017073953-appb-000004
Rk、Gk和Bk分别是第k个光源下灰卡图像的R通道、G通道、B通道的平均值。而rk表示归一化后的R通道的平均值,gk表示归一化后的G通道的平均值和表示归一化后的B通道的平均值。R k , G k and B k are the average values of the R channel, the G channel, and the B channel of the gray card image under the kth light source, respectively. r k represents the average value of the normalized R channel, and g k represents the average value of the normalized G channel and the average value of the normalized B channel.
最后,建立sck与grayk之间的映射关系,该两者之间的映射关系即是标定数据。Finally, the mapping relationship between sc k and gray k is established, and the mapping relationship between the two is the calibration data.
具体地,建立sck与grayk之间的映射关系的可如下: Specifically, the mapping relationship between sc k and gray k can be established as follows:
sckM=grayk Sc k M=gray k
即:which is:
Figure PCTCN2017073953-appb-000005
Figure PCTCN2017073953-appb-000005
通过该等式可求解出每种光源下的M,其中,M即为标定数据,将N种光源环境下得到的标定数据进行保存,并建立标定数据库。Through this equation, M under each light source can be solved, wherein M is the calibration data, the calibration data obtained under the N light source environment is saved, and a calibration database is established.
可选地,也通过对比方法确定sck与grayk之间的映射关系,然后,通过查表的方法查找该映射关系,即标定数据。其中,每一种光源环境下都有一组对应的映射关系,对N个映射关系进行拟合,从而,得到标定数据库。Optionally, the mapping relationship between sc k and gray k is also determined by a comparison method, and then the mapping relationship is found by looking up the table, that is, the calibration data. Each of the light source environments has a corresponding mapping relationship, and the N mapping relationships are fitted, thereby obtaining a calibration database.
1004、获取当前环境光的颜色数据。1004. Obtain color data of the current ambient light.
本发明实施例中,终端可利用颜色传感器获取当前环境光的颜色数据。终端可利用RGBW颜色传感器获取当前环境光的颜色数据。In the embodiment of the present invention, the terminal may use the color sensor to acquire color data of the current ambient light. The terminal can use the RGBW color sensor to obtain the color data of the current ambient light.
1005、根据所述标定数据和所述当前环境光的颜色数据确定环境光参数。1005. Determine an ambient light parameter according to the calibration data and color data of the current ambient light.
本发明实施例中,终端可利用当前环境光的颜色数据和标定数据确定环境光参数,其中,该环境光参数,即为当前环境下的各种光源的比例成分。In the embodiment of the present invention, the terminal may determine the ambient light parameter by using the color data of the current ambient light and the calibration data, where the ambient light parameter is a proportional component of various light sources in the current environment.
可选地,终端可确定标定数据中与当前环境下匹配的目标标定数据,根据该目标标定数据与当前环境光的颜色数据确定环境光参数。具体地,可拍摄待处理图像,同时利用颜色传感器测量当前环境光的颜色数据,然后求解环境光参数。进一步地,终端还可根据该环境光参数计算虚拟灰卡的颜色数据,最后根据虚拟灰卡的颜色数据计算白平衡增益,其中,该虚拟灰卡是指拍摄场景中并不存在,但是,本发明实施例中的算法可根据颜色传感器及先验知识估计出灰卡在当前拍摄场景中的颜色。Optionally, the terminal may determine target calibration data in the calibration data that matches the current environment, and determine an ambient light parameter according to the target calibration data and color data of the current ambient light. Specifically, the image to be processed can be taken while the color data of the current ambient light is measured using a color sensor, and then the ambient light parameters are solved. Further, the terminal may further calculate color data of the virtual gray card according to the ambient light parameter, and finally calculate a white balance gain according to the color data of the virtual gray card, wherein the virtual gray card means that the shooting scene does not exist, but The algorithm in the embodiment of the invention can estimate the color of the gray card in the current shooting scene according to the color sensor and prior knowledge.
具体求解方法如下:The specific solution is as follows:
首先,终端可确定标定数据中与当前环境下匹配的目标标定数据,即计算当前环境下,标定数据中对应于N种光源中欧氏距离最小的三种标定光源的颜色(scm1 scm2 scm3),记作SCm=(scm1 scm2 scm3),即确定标定数据中与当前环境下匹配的目标标定数据。具体地,终端可确定出标定数据中与当前环境光的颜色数据之间欧式距离最小的3组数据作为目标标定数据。即计算当前环境光中颜色数据与标定数据库中包含的每一标定数据之间的欧氏距离,从而,可得 到多个欧氏距离值,确定出该多个欧式距离值中最小的三个欧氏距离值,将该三个欧氏距离值对应的光源的颜色数据作为当前环境下的颜色数据。First, the terminal can determine the target calibration data in the calibration data that matches the current environment, that is, calculate the color of the three calibration light sources corresponding to the minimum Euclidean distance among the N kinds of light sources in the calibration data (sc m1 sc m2 sc m3 ), denoted as SC m =(sc m1 sc m2 sc m3 ), that is, the target calibration data in the calibration data that matches the current environment is determined. Specifically, the terminal may determine three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light as the target calibration data. That is, calculating the Euclidean distance between the color data in the current ambient light and each calibration data included in the calibration database, thereby obtaining a plurality of Euclidean distance values and determining the smallest three of the plurality of Euclidean distance values. The distance value is the color data of the light source corresponding to the three Euclidean distance values as the color data in the current environment.
然后,终端可根据目标标定数据与当前环境光的颜色数据确定环境光参数,可令:Then, the terminal can determine the ambient light parameter according to the target calibration data and the color data of the current ambient light, which can make:
Figure PCTCN2017073953-appb-000006
Figure PCTCN2017073953-appb-000006
其中,pk表示环境光参数,k的取值为1,或2,或3,sck表示目标标定数据,sc表示当前环境下的颜色数据。Where p k represents the ambient light parameter, k is 1 or 2, or 3, sc k represents the target calibration data, and sc represents the color data in the current environment.
该映射关系可根据SCm的秩分为3种情况下,因而,计算矩阵SCm的秩。This mapping relationship can be divided into three cases according to the rank of SC m , and thus, the rank of the matrix SC m is calculated.
(1)、若SCm的秩为1,则取scm1、scm2、scm3中的任一个颜色数据作为环境光的颜色数据。那么,虚拟灰卡的颜色数据为grayvirtual=graym1,即P=I,I为单位矩阵;(1) If the rank of SC m is 1, color data of any of sc m1 , sc m2 , and sc m3 is taken as color data of ambient light. Then, the color data of the virtual gray card is gray virtual =gray m1 , that is, P=I, and I is an identity matrix;
(2)、若SCm的秩为2,则认为当前环境光是标定光源中2种光源线性组合。故,令
Figure PCTCN2017073953-appb-000007
其中P是加权系数,即环境光参数。
(2) If the rank of SC m is 2, it is considered that the current ambient light is a linear combination of the two kinds of light sources in the calibration light source. Therefore, order
Figure PCTCN2017073953-appb-000007
Where P is the weighting factor, ie the ambient light parameter.
记为矩阵形式:SC3×2·P2×1=sc3×1,其中Recorded as a matrix form: SC 3 × 2 · P 2 × 1 = sc 3 × 1 , where
Figure PCTCN2017073953-appb-000008
Figure PCTCN2017073953-appb-000008
Figure PCTCN2017073953-appb-000009
Figure PCTCN2017073953-appb-000009
Figure PCTCN2017073953-appb-000010
Figure PCTCN2017073953-appb-000010
从而,求解该矛盾方程SC3×2·P3×1=sc3×1得到环境光参数P=SC+·sc,SC+是SC的Moore-Penrose逆矩阵。Thus, the contradiction equation SC 3 × 2 · P 3 × 1 = sc 3 × 1 is obtained to obtain an ambient light parameter P = SC + · sc, and SC + is the Moore-Penrose inverse matrix of SC.
则,虚拟灰卡的颜色数据grayvirtual为: Then, the virtual data of the virtual gray card is gray virtual :
Figure PCTCN2017073953-appb-000011
Figure PCTCN2017073953-appb-000011
(3)、若SCm的秩为3,则可认为当前环境光是标定光源中3种不同光源的线性组合。(3) If the rank of SC m is 3, it can be considered that the current ambient light is a linear combination of three different light sources in the calibration light source.
故,令
Figure PCTCN2017073953-appb-000012
其中p是加权系数,即环境光参数。
Therefore, order
Figure PCTCN2017073953-appb-000012
Where p is the weighting factor, ie the ambient light parameter.
记为矩阵形式:SC3×3·P3×1=sc3×1,其中:Recorded as a matrix form: SC 3 × 3 · P 3 × 1 = sc 3 × 1 , where:
Figure PCTCN2017073953-appb-000013
Figure PCTCN2017073953-appb-000013
Figure PCTCN2017073953-appb-000014
Figure PCTCN2017073953-appb-000014
Figure PCTCN2017073953-appb-000015
Figure PCTCN2017073953-appb-000015
从而,求解矛盾方程SC3×3·P3×1=sc3×1,得到环境光参数P=SC+·sc,令得到的环境光参数为:Thus, the contradiction equation SC 3×3 · P 3×1 = sc 3×1 is obtained, and the ambient light parameter P=SC + ·sc is obtained, so that the obtained ambient light parameters are:
Figure PCTCN2017073953-appb-000016
Figure PCTCN2017073953-appb-000016
则,虚拟灰卡的颜色数据grayvirtual为:Then, the virtual data of the virtual gray card is gray virtual :
Figure PCTCN2017073953-appb-000017
Figure PCTCN2017073953-appb-000017
1006、根据所述环境光参数对待处理图像进行颜色矫正。1006. Perform color correction on the image to be processed according to the ambient light parameter.
本发明实施例中,终端可利用环境光参数对待处理图像进行颜色矫正,具体如下:In the embodiment of the present invention, the terminal may perform color correction on the image to be processed by using the ambient light parameter, as follows:
具体地,grayvirtual可看作灰卡的颜色数据,将该grayvirtual分为RGB三通道数据,如下: Specifically, the gray virtual can be regarded as the color data of the gray card, and the gray virtual is divided into RGB three-channel data, as follows:
Figure PCTCN2017073953-appb-000018
Figure PCTCN2017073953-appb-000018
对该grayvirtual进行归一化处理,即可得到白平衡增益,如下:Normalize the gray virtual to get the white balance gain, as follows:
Figure PCTCN2017073953-appb-000019
Figure PCTCN2017073953-appb-000019
利用该白平衡增益对待处理图像进行矫正:Use this white balance gain to correct the image to be processed:
Figure PCTCN2017073953-appb-000020
Figure PCTCN2017073953-appb-000020
其中,待处理图像I={IR,IG,IB},输出图像为I'={I'R,I'G,I'B}。Among them, the image to be processed I={I R , I G , I B }, and the output image is I′={I′ R , I′ G , I′ B }.
通过本发明实施例利用颜色传感器分别采集N个不同光源环境下的N个颜色数据,获取该N个不同光源环境下针对灰卡的N个颜色卡图像,并根据该N个颜色数据和该N个灰卡图像确定标定数据;获取当前环境光的颜色数据;根据该标定数据和该颜色数据确定环境光参数;根据该环境光参数对待处理图像进行颜色矫正。从而,可利用标定数据与当前环境中的环境光参数,根据该环境光参数对待处理图像进行颜色矫正,由于本发明实施例中利用环境光对颜色进行矫正,因而,可较准确地对彩色图像进行矫正。The N color data in the N different light source environments are respectively collected by using the color sensor, and the N color card images for the gray card in the N different light source environments are obtained, and according to the N color data and the N The gray card images determine calibration data; obtain color data of the current ambient light; determine ambient light parameters according to the calibration data and the color data; perform color correction on the image to be processed according to the ambient light parameters. Therefore, the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
与上述一致地,请参阅图11,为本发明实施例提供的一种图像处理的方法的又一实施例流程示意图。本实施例中所描述的图像处理的方法,包括以下步骤:A flowchart of still another embodiment of a method for image processing according to an embodiment of the present invention is shown in FIG. The method for image processing described in this embodiment includes the following steps:
1101、确定环境光与色卡之间的标定数据。1101. Determine calibration data between ambient light and color card.
本发明实施例中,终端可基于颜色传感器采集关于环境光的颜色数据,利用该终端的摄像头采集预设颜色卡的图像。其中,颜色传感器可为RGBW传 感器、色谱传感器。In the embodiment of the present invention, the terminal may collect color data about ambient light based on the color sensor, and use the camera of the terminal to collect an image of the preset color card. Among them, the color sensor can be RGBW Sensor, chromatographic sensor.
可选地,终端利用颜色传感器分别采集N个不同光源环境下的N个颜色数据,其中,该N为不小于3的整数,获取该N个不同光源环境下针对色卡的N个色卡图像,根据该N个颜色数据和该N个颜色卡图像确定标定数据。Optionally, the terminal separately collects N color data in N different light source environments by using a color sensor, wherein the N is an integer not less than 3, and acquires N color card images for the color card in the N different light source environments. Determining calibration data based on the N color data and the N color card images.
具体实现过程中,首先,使用颜色传感器测量不同光源下的颜色数据sck,1<k≤N,其中N为光源种类的数量,其中,k表示第k个光源。In a specific implementation process, first, a color sensor is used to measure color data sc k under different light sources, 1 < k ≤ N, where N is the number of light source types, where k represents the kth light source.
Figure PCTCN2017073953-appb-000021
Figure PCTCN2017073953-appb-000021
其中,SRk,SGk,SBk,SWk是RGBW传感器的4个通道测量得到的颜色数据,其中,SRk为红色通道得到的颜色数据,SGk为绿色通道得到的颜色数据,SBk为蓝色通道得到的颜色数据,SWk为白色通道得到的颜色数据。进一步地,sredk为归一化后的红色通道的颜色数据,sgreenk为归一化后的绿色通道的颜色数据,sbluek为归一化后的蓝色通道的颜色数据。其中,
Figure PCTCN2017073953-appb-000022
Figure PCTCN2017073953-appb-000023
Where SR k , SG k , SB k , SW k are the color data measured by the four channels of the RGBW sensor, where SR k is the color data obtained by the red channel, SG k is the color data obtained by the green channel, SB k For the color data obtained for the blue channel, SW k is the color data obtained by the white channel. Further, sred k is the color data of the normalized red channel, sgreen k is the color data of the normalized green channel, and sblue k is the color data of the normalized blue channel. among them,
Figure PCTCN2017073953-appb-000022
Figure PCTCN2017073953-appb-000023
然后,可分别N个不同光源环境下,利用终端的摄像头进行拍摄,以得到该针对色卡的该N个不同光源环境下的N个色卡图像,N个不同光源环境中的每一光源环境分别对应一个色卡图像,Ik表示第k个色卡图像,其中,1<k≤N。其中,终端可在N个不同光源环境下对准色卡,即摄像头的拍摄范围被色卡占据。在每一光源环境下,可得到针对色卡的色卡图像。Then, in the N different light source environments, the camera of the terminal is used for shooting to obtain N color card images in the N different light source environments for the color card, and each of the N different light source environments Corresponding to one color card image respectively, I k represents the kth color card image, where 1 < k ≤ N. The terminal can align the color card in N different light source environments, that is, the shooting range of the camera is occupied by the color card. In each light source environment, a color card image for the color card is available.
最后,终端可建立N个颜色数据与N个色卡图像之间的映射关系。具体实现过程中,需要要求要尽可能地使光源类型覆盖了拍摄场景中可能出现的光源类型。Finally, the terminal can establish a mapping relationship between N color data and N color card images. In the specific implementation process, it is required to make the light source type cover the type of light source that may appear in the shooting scene as much as possible.
(1),计算各种光源类型下的针对色卡的色卡图像平均灰度colork,表示 第k个光源环境下的平均灰度。(1) Calculate the average grayscale color k of the color card image for the color card under various light source types, indicating the average gray level in the kth light source environment.
然后,计算各场景下的色卡的平均颜色;Then, calculate the average color of the color card in each scene;
Figure PCTCN2017073953-appb-000024
Figure PCTCN2017073953-appb-000024
Rk、Gk和Bk分别是第k个光源下色卡图像的R通道、G通道、B通道的平均值。而rk表示归一化后的R通道的平均值,gk表示归一化后的G通道的平均值和表示归一化后的B通道的平均值。R k , G k and B k are the average values of the R channel, the G channel, and the B channel of the color card image under the kth light source, respectively. r k represents the average value of the normalized R channel, and g k represents the average value of the normalized G channel and the average value of the normalized B channel.
最后,建立sck与colork之间的映射关系,该两者之间的映射关系即是标定数据。Finally, the mapping relationship between sc k and color k is established, and the mapping relationship between the two is the calibration data.
具体地,建立sck与colork之间的映射关系的可如下:Specifically, the mapping relationship between sc k and color k can be established as follows:
sckX=colork Sc k X=color k
即:which is:
Figure PCTCN2017073953-appb-000025
Figure PCTCN2017073953-appb-000025
通过该等式可求解出每种光源下的X,其中,X即为标定数据,将N种光源环境下得到的标定数据进行保存,并建立标定数据库。Through this equation, X under each light source can be solved, where X is the calibration data, the calibration data obtained under the N light source environment is saved, and a calibration database is established.
可选地,也通过对比方法确定sck与colork之间的映射关系,然后,通过查表的方法查找该映射关系,即标定数据。其中,每一种光源环境下都有一组对应的映射关系,对N个映射关系进行拟合,从而,得到标定数据库。Optionally, the mapping relationship between sc k and color k is also determined by a comparison method, and then the mapping relationship is found by looking up the table, that is, the calibration data. Each of the light source environments has a corresponding mapping relationship, and the N mapping relationships are fitted, thereby obtaining a calibration database.
本发明实施例中,终端可建立颜色数据与colork之间的映射关系。例如,令颜色数据为A,色卡图像为B,映射关系为C,AC=B,C也即为标定数据。具体地,终端可构造颜色数据与色卡图像之间的函数关系,根据该函数关系计算出标定数据。具体实现过程种,可以根据24色卡为例加以说明,即根据颜色传感器与24色卡确定环境光与24色卡之间的标定数据。In the embodiment of the present invention, the terminal can establish a mapping relationship between color data and color k . For example, let the color data be A, the color card image be B, the mapping relationship be C, AC=B, and C is the calibration data. Specifically, the terminal can construct a functional relationship between the color data and the color card image, and calculate the calibration data according to the function relationship. The specific implementation process can be described by taking a 24-color card as an example, that is, the calibration data between the ambient light and the 24-color card is determined according to the color sensor and the 24-color card.
需要说明的是,colork是指第k种光源下,24色卡的亮度归一化颜色数据。由于不同拍摄场景中图像亮度可能不一致,在计算完颜色数据之后,要根据亮度对这些颜色数据实施归一化,可以选择第20号色块的亮度作为参考,对上 述颜色数据倍乘一个系数K,使得这些颜色数据中第20号色块与标准色卡的第20号色块亮度相同即可。系数K为标准色卡的20号色块与各场景下拍摄的图像中20号色块的比值。It should be noted that color k refers to the brightness normalized color data of the 24 color card under the kth light source. Since the brightness of the image may be different in different shooting scenes, after the color data is calculated, the color data is normalized according to the brightness, and the brightness of the 20th color block may be selected as a reference, and the color data is multiplied by a coefficient K. So that the 20th color block in the color data is the same as the 20th color block of the standard color card. The coefficient K is the ratio of the 20th color block of the standard color card to the 20th color block in the image taken under each scene.
1102、获取当前环境光的颜色数据。1102. Obtain color data of the current ambient light.
本发明实施例中,终端可利用颜色传感器获取当前环境光的颜色数据。终端可利用RGBW颜色传感器获取当前环境光的颜色数据。In the embodiment of the present invention, the terminal may use the color sensor to acquire color data of the current ambient light. The terminal can use the RGBW color sensor to obtain the color data of the current ambient light.
1103、根据所述标定数据和所述当前环境光的颜色数据确定环境光参数。1103. Determine an ambient light parameter according to the calibration data and color data of the current ambient light.
本发明实施例中,终端可按照实施例1求解环境光参数方法如下:In the embodiment of the present invention, the method for the terminal to solve the ambient light parameter according to Embodiment 1 is as follows:
即,终端可确定所述标定数据中与所述当前环境下匹配的目标标定数据;根据所述目标标定数据与所述当前环境光的颜色数据确定环境光参数。That is, the terminal may determine target calibration data that matches the current environment in the calibration data; and determine an ambient light parameter according to the target calibration data and color data of the current ambient light.
具体地,首先,确定出标定数据中与当前环境光的颜色数据之间欧式距离最小的3组数据作为目标标定数据。即计算当前环境光中颜色数据与标定数据库中包含的每一标定数据之间的欧氏距离,从而,可得到多个欧氏距离值,确定出该多个欧式距离值中最小的三个欧氏距离值,将该三个欧氏距离值对应的光源的颜色数据作为当前环境下的颜色数据。Specifically, first, three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data. That is, calculating the Euclidean distance between the color data in the current ambient light and each calibration data included in the calibration database, thereby obtaining a plurality of Euclidean distance values and determining the smallest three of the plurality of Euclidean distance values. The distance value is the color data of the light source corresponding to the three Euclidean distance values as the color data in the current environment.
其次,计算与c欧氏距离最小的三种标定光源的颜色Cm=(cm1 cm2 cm3),然后计算Cm的秩。Second, calculate the color C m =(c m1 c m2 c m3 ) of the three calibration sources with the smallest c Euclidean distance, and then calculate the rank of C m .
(1)、若Cm的秩为1,则取cm1中任一种作为环境光的颜色数据,虚拟色卡的颜色数据为colorvirtual=colorm1(1) If the rank of C m is 1, take any one of c m1 as the color data of the ambient light, and the color data of the virtual color card is color virtual = color m1 ;
(2)、若Cm的秩为2,认为当前环境光是标定光源中2种光源线性组合。(2) If the rank of C m is 2, it is considered that the current ambient light is a linear combination of two kinds of light sources in the calibration light source.
令:make:
Figure PCTCN2017073953-appb-000026
Figure PCTCN2017073953-appb-000026
其中p是加权系数。Where p is the weighting factor.
记为矩阵形式:C·P=c,其中:Recorded as a matrix form: C·P=c, where:
Figure PCTCN2017073953-appb-000027
Figure PCTCN2017073953-appb-000027
Figure PCTCN2017073953-appb-000028
Figure PCTCN2017073953-appb-000028
Figure PCTCN2017073953-appb-000029
Figure PCTCN2017073953-appb-000029
求解矛盾方程C·P=c得到环境光参数P=C+·c,C+是C的Moore-Penrose逆矩阵。Solving the contradiction equation C·P=c gives the ambient light parameter P=C + ·c, and C + is the Moore-Penrose inverse matrix of C.
colorvirtual=p1·colorm1+p2·colorm2 Color virtual =p1·color m1 +p2·color m2
(3)、若Cm的秩为3,则认为当前环境光是标定光源中3种光源线性组合。(3) If the rank of C m is 3, it is considered that the current ambient light is a linear combination of the three kinds of light sources in the calibration light source.
令:make:
Figure PCTCN2017073953-appb-000030
Figure PCTCN2017073953-appb-000030
其中,P是加权系数,也是环境光参数。Among them, P is a weighting coefficient and is also an ambient light parameter.
记为矩阵形式:C·P=c,其中:Recorded as a matrix form: C·P=c, where:
Figure PCTCN2017073953-appb-000031
Figure PCTCN2017073953-appb-000031
Figure PCTCN2017073953-appb-000032
Figure PCTCN2017073953-appb-000032
Figure PCTCN2017073953-appb-000033
Figure PCTCN2017073953-appb-000033
求解方程C·P=c得到环境光参数,求解P,可将P的形式记作如下:Solve the equation C·P=c to get the ambient light parameters and solve for P. The form of P can be recorded as follows:
Figure PCTCN2017073953-appb-000034
Figure PCTCN2017073953-appb-000034
1104、根据所述环境光参数确定虚拟色卡的颜色数据。1104. Determine color data of the virtual color card according to the ambient light parameter.
本发明实施例中,终端可在环境光基础上确定虚拟色卡的颜色数据,具体如下:In the embodiment of the present invention, the terminal may determine the color data of the virtual color card on the basis of the ambient light, as follows:
虚拟色卡可记作: The virtual color card can be written as:
colorvirtual=p1·colorm1+p2·colorm2+p3·colorm3Color virtual =p1·color m1 +p2·color m2 +p3·color m3 ,
以24色卡为例进行说明,那么,Take a 24-color card as an example, then,
Figure PCTCN2017073953-appb-000035
Figure PCTCN2017073953-appb-000035
Figure PCTCN2017073953-appb-000036
Figure PCTCN2017073953-appb-000036
Figure PCTCN2017073953-appb-000037
Figure PCTCN2017073953-appb-000037
记:Remember:
Figure PCTCN2017073953-appb-000038
Figure PCTCN2017073953-appb-000038
1105、获取标准色卡的颜色数据。1105. Obtain color data of a standard color card.
本发明实施例中,标准色卡的颜色数据可由厂家或者标准组织定义。In the embodiment of the present invention, the color data of the standard color card may be defined by a manufacturer or a standard organization.
1106、根据所述标准色卡的颜色数据与所述虚拟色卡的颜色数据确定颜色再生矩阵。1106. Determine a color reproduction matrix according to color data of the standard color card and color data of the virtual color card.
本发明实施例中,记标准色卡各色块的颜色向量为colorstd,如果色卡中有N个色块,则colorstd为N×3的矩阵。该矩阵的数据由厂家或者标准组织定义。In the embodiment of the present invention, the color vector of each color block of the standard color card is color std , and if there are N color blocks in the color card, the color std is a matrix of N×3. The data for this matrix is defined by the manufacturer or standard organization.
Figure PCTCN2017073953-appb-000039
Figure PCTCN2017073953-appb-000039
以标准24色卡为例进行说明,该标准24色卡的颜色数据已知,记为: Take the standard 24-color card as an example. The color data of the standard 24-color card is known as:
Figure PCTCN2017073953-appb-000040
Figure PCTCN2017073953-appb-000040
要求解的颜色再生矩阵为M3×3得方程组:The color reproduction matrix of the solution is M 3 × 3 equations:
colorstd=colorvirtual·M3×3 Color std =color virtual ·M 3×3
由于误差的原因上述方程对每个色块都成立,因此这是一个矛盾方程组,只需要求解最小二乘解。Due to the error, the above equation holds for each color block, so this is a contradiction equation group, and only requires solving the least squares solution.
即求解最优化问题:M3×3=Argmin(||colorstd-M3×3·colorvirtual||),即是一个线性优化问题:That is to solve the optimization problem: M 3 × 3 = Argmin (| | color std - M 3 × 3 · color virtual | |), which is a linear optimization problem:
将上式进行展开可得到:Expand the above formula to get:
Figure PCTCN2017073953-appb-000041
Figure PCTCN2017073953-appb-000041
Figure PCTCN2017073953-appb-000042
Figure PCTCN2017073953-appb-000042
从而,得到三个独立的矛盾方程组。矛盾方程组Ax=b的极小2范数最小2乘解为x=A+b,其中A+是A的Moore-Penrose逆矩阵。 Thus, three independent sets of contradictory equations are obtained. The minimum 2 norm minimum 2 multiplication solution of the contradiction equation Ax=b is x=A + b, where A + is the Moore-Penrose inverse matrix of A.
用上述方法可以分别求得,Can be obtained separately by the above method,
Figure PCTCN2017073953-appb-000043
Figure PCTCN2017073953-appb-000043
从而,可完成对M3×3的求解。Thereby, the solution of M 3 × 3 can be completed.
1107、根据所述颜色再生矩阵对待处理图像进行颜色矫正。1107. Perform color correction on the image to be processed according to the color reproduction matrix.
本发明实施例中,终端可根据下面方程对待处理图像中的每一像素点实施颜色矫正,如下:In the embodiment of the present invention, the terminal may perform color correction on each pixel in the image to be processed according to the following equation, as follows:
Figure PCTCN2017073953-appb-000044
Figure PCTCN2017073953-appb-000044
可选地,还可以其他色卡作为预设颜色卡对本发明实施例进行求解。Optionally, other color cards may be used as the preset color card to solve the embodiment of the present invention.
本发明实施例中,标准色卡的颜色数据已知,可通过标准色卡的生产信息得知。而颜色再生矩阵,可记作如下:In the embodiment of the present invention, the color data of the standard color card is known, and can be known by the production information of the standard color card. The color reproduction matrix can be recorded as follows:
Figure PCTCN2017073953-appb-000045
Figure PCTCN2017073953-appb-000045
其中,
Figure PCTCN2017073953-appb-000046
是输出颜色数据,
Figure PCTCN2017073953-appb-000047
为颜色再生矩阵,
Figure PCTCN2017073953-appb-000048
为待处理图像。
among them,
Figure PCTCN2017073953-appb-000046
Is output color data,
Figure PCTCN2017073953-appb-000047
For the color reproduction matrix,
Figure PCTCN2017073953-appb-000048
For the image to be processed.
可将颜色再生矩阵记作为:The color reproduction matrix can be recorded as:
Figure PCTCN2017073953-appb-000049
Figure PCTCN2017073953-appb-000049
那么,可以得到:Then you can get:
Figure PCTCN2017073953-appb-000050
Figure PCTCN2017073953-appb-000050
总之,在矩阵M3×3能够准确求解时,输出图像的颜色一般都能够颜色再生 矩阵的转换较为准确地还原颜色。In short, when the matrix M 3×3 can be accurately solved, the color of the output image is generally capable of color reproduction. The conversion of the matrix more accurately restores the color.
通过本发明实施例确定环境光与色卡之间的标定数据;获取当前环境光的颜色数据;根据该标定数据和该颜色数据确定环境光参数;根据该环境光参数确定虚拟色卡的颜色数据;获取标准色卡的颜色数据,根据该标准色卡的颜色数据与该虚拟色卡的颜色数据确定颜色再生矩阵;根据该颜色再生矩阵对待处理图像进行颜色矫正。从而,可利用标定数据与当前环境中的环境光参数,根据该环境光参数对待处理图像进行颜色矫正,由于本发明实施例中利用环境光对颜色进行矫正,因而,可较准确地对彩色图像进行矫正。Determining calibration data between ambient light and color card by using an embodiment of the present invention; acquiring color data of current ambient light; determining ambient light parameters according to the calibration data and the color data; determining color data of the virtual color card according to the ambient light parameter Obtaining color data of the standard color card, determining a color reproduction matrix according to the color data of the standard color card and the color data of the virtual color card; performing color correction on the image to be processed according to the color reproduction matrix. Therefore, the calibration data and the ambient light parameter in the current environment can be used to perform color correction on the image to be processed according to the ambient light parameter. Since the color is corrected by the ambient light in the embodiment of the present invention, the color image can be accurately compared. Make corrections.
与上述一致地,以下为实施上述图像处理方法的虚拟装置及实体装置,具体如下:Consistent to the above, the following are virtual devices and physical devices that implement the above image processing methods, as follows:
请参阅图12,为本发明实施例提供的一种终端的又一实施例结构示意图。本实施例中所描述的终端,包括:第一确定单元1201、第一获取单元1202、第二确定单元1203和第一矫正单元1204,具体如下:FIG. 12 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention. The terminal described in this embodiment includes: a first determining unit 1201, a first obtaining unit 1202, a second determining unit 1203, and a first correcting unit 1204, as follows:
第一确定单元1201,用于确定环境光与预设颜色卡之间的标定数据。The first determining unit 1201 is configured to determine calibration data between the ambient light and the preset color card.
第一获取单元1202,用于获取当前环境光的颜色数据。The first obtaining unit 1202 is configured to acquire color data of the current ambient light.
第二确定单元1203,用于根据所述第一确定单元1201确定的所述标定数据和所述第一获取单元1202获取到的所述颜色数据确定环境光参数。The second determining unit 1203 is configured to determine an ambient light parameter according to the calibration data determined by the first determining unit 1201 and the color data acquired by the first acquiring unit 1202.
第一矫正单元1204,用于根据所述第二确定单元1203确定的所述环境光参数对待处理图像进行颜色矫正。The first correcting unit 1204 is configured to perform color correction on the image to be processed according to the ambient light parameter determined by the second determining unit 1203.
可选地,所述第一确定单元1201包括:Optionally, the first determining unit 1201 includes:
采集单元(图中未标出),用于利用颜色传感器分别采集N个不同光源环境下的N个颜色数据,其中,所述N为不小于3的整数。The collecting unit (not shown) is configured to separately collect N color data in N different light source environments by using a color sensor, wherein the N is an integer not less than 3.
第二获取单元(图中未标出),用于获取所述N个不同光源环境下预设颜色卡的N个颜色卡图像;a second acquiring unit (not shown) for acquiring N color card images of preset color cards in the N different light source environments;
第三确定单元(图中未标出),根据所述采集单元采集到的所述N个颜色数据和所述第二获取单元获取到的所述N个颜色卡图像确定标定数据。The third determining unit (not shown) determines the calibration data according to the N color data collected by the collecting unit and the N color card images acquired by the second acquiring unit.
可选地,所述第二确定单元1203包括: Optionally, the second determining unit 1203 includes:
第四确定单元(图中未标出),用于确定所述标定数据中与所述当前环境下匹配的目标标定数据a fourth determining unit (not shown) for determining target calibration data in the calibration data that matches the current environment
第五确定单元(图中未标出),用于构造所述第四确定单元确定的所述目标标定数据与所述当前环境光的颜色数据确定环境光参数。And a fifth determining unit (not shown) configured to construct the target calibration data determined by the fourth determining unit and the color data of the current ambient light to determine an ambient light parameter.
进一步可选地,所述标定数据包含至少3组数据,所述第四确定单元具体用于:Further optionally, the calibration data includes at least three sets of data, and the fourth determining unit is specifically configured to:
确定出所述标定数据中与所述当前环境光的颜色数据之间欧式距离最小的3组数据作为目标标定数据。The three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data.
可选地,在所述预设颜色卡为色卡时,所述第一矫正单元1204可包括:Optionally, when the preset color card is a color card, the first correcting unit 1204 may include:
第六确定单元(图中未标出),用于根据所述环境光参数确定虚拟色卡的颜色数据;a sixth determining unit (not shown) for determining color data of the virtual color card according to the ambient light parameter;
第三获取单元(图中未标出),用于获取标准色卡的颜色数据;a third obtaining unit (not shown) for obtaining color data of the standard color card;
第七确定单元(图中未标出),用于根据所述第三获取单元获取的所述标准色卡的颜色数据与所述第六确定单元确定的所述虚拟色卡的颜色数据确定颜色再生矩阵;a seventh determining unit (not shown) for determining color according to color data of the standard color card acquired by the third obtaining unit and color data of the virtual color card determined by the sixth determining unit Regeneration matrix
第二矫正单元(图中未标出),用于根据所述第七确定单元确定的所述颜色再生矩阵对待处理图像进行颜色矫正。a second correcting unit (not shown) for performing color correction on the image to be processed according to the color reproduction matrix determined by the seventh determining unit.
通过本发明实施例所描述的终端确定环境光与该预设颜色卡之间的标定数据;获取当前环境光的颜色数据;根据该标定数据和该颜色数据确定环境光参数;根据该环境光参数对待处理图像进行颜色矫正。从而,可利用标定数据与当前环境中的环境光参数,根据该环境光参数对待处理图像进行颜色矫正,由于本发明实施例中利用环境光对颜色进行矫正。Determining calibration data between the ambient light and the preset color card by using the terminal described in the embodiment of the present invention; acquiring color data of the current ambient light; determining an ambient light parameter according to the calibration data and the color data; and determining the ambient light parameter according to the ambient light parameter Color correction of the image to be processed. Thus, the calibration data and the ambient light parameters in the current environment can be utilized to perform color correction on the image to be processed according to the ambient light parameters, since the ambient light is used to correct the color in the embodiment of the present invention.
请参阅图13,为本发明实施例提供的一种终端的又一实施例结构示意图。本实施例中所描述的终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。FIG. 13 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present invention. The terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 is connected via bus 5000.
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。The input device 1000 may be a touch panel, a physical button, or a mouse.
上述输出设备2000具体可为显示屏。 The output device 2000 described above may specifically be a display screen.
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:上述处理器3000,用于:The above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory. The memory 4000 is used to store a set of program codes. The input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and the following operations are performed: the processor 3000 is configured to:
确定环境光与预设颜色卡之间的标定数据;Determining calibration data between ambient light and a preset color card;
获取当前环境光的颜色数据;Obtain color data of the current ambient light;
根据所述标定数据和所述当前环境光的颜色数据确定环境光参数;Determining an ambient light parameter according to the calibration data and color data of the current ambient light;
根据所述环境光参数对待处理图像进行颜色矫正。Color correction is performed on the image to be processed according to the ambient light parameter.
可选地,上述处理器3000确定环境光与预设颜色卡之间的标定数据,包括:Optionally, the processor 3000 determines calibration data between the ambient light and the preset color card, including:
利用颜色传感器分别采集N个不同光源环境下的N个颜色数据,其中,所述N为不小于3的整数;N color data in N different light source environments are respectively collected by using a color sensor, wherein the N is an integer not less than 3;
获取所述N个不同光源环境下预设颜色卡的N个颜色卡图像;Obtaining N color card images of preset color cards in the N different light source environments;
根据所述N个颜色数据和所述N个颜色卡图像确定标定数据。The calibration data is determined based on the N color data and the N color card images.
可选地,上述处理器3000根据所述标定数据和所述当前环境光的颜色数据确定环境光参数,包括:Optionally, the processor 3000 determines the ambient light parameter according to the calibration data and the color data of the current ambient light, including:
确定所述标定数据中与所述当前环境下匹配的目标标定数据;Determining target calibration data in the calibration data that matches the current environment;
构造所述目标标定数据与所述当前环境光的颜色数据之间的映射关系;Constructing a mapping relationship between the target calibration data and color data of the current ambient light;
根据所述映射关系计算出环境光参数。The ambient light parameter is calculated according to the mapping relationship.
可选地,所述标定数据包含至少3组数据,上述处理器3000所述确定标定数据中与所述当前环境下匹配的目标标定数据,包括:Optionally, the calibration data includes at least three sets of data, and the processor 3000 determines the target calibration data that matches the current environment in the calibration data, including:
确定出所述标定数据中与所述当前环境光的颜色数据之间欧式距离最小的3组数据作为目标标定数据。The three sets of data having the smallest Euclidean distance between the calibration data and the color data of the current ambient light are determined as the target calibration data.
可选地,上述处理器3000,在所述预设颜色卡为色卡时,根据所述环境光参数对待处理图像进行颜色矫正,包括:Optionally, the processor 3000, when the preset color card is a color card, performs color correction on the image to be processed according to the ambient light parameter, including:
根据所述环境光参数确定虚拟色卡的颜色数据;Determining color data of the virtual color card according to the ambient light parameter;
获取标准色卡的颜色数据;Get the color data of the standard color card;
根据所述标准色卡的颜色数据与所述虚拟色卡的颜色数据确定颜色再生矩阵; Determining a color reproduction matrix according to color data of the standard color card and color data of the virtual color card;
根据所述颜色再生矩阵对待处理图像进行颜色矫正。Color correction is performed on the image to be processed according to the color reproduction matrix.
本发明所有实施例中的单元,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。The units in all the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。The units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上对本发明实施例所提供的一种图像处理方法、终端及其制造工艺进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 An image processing method, a terminal, and a manufacturing process thereof are provided in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiment is only used for To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. It should not be construed as limiting the invention.

Claims (10)

  1. 一种终端,其特征在于,包括:外壳,所述外壳设置有摄像头和光学窗口,其中,所述光学窗口包含第一透镜和第二透镜,所述第一透镜下方设置有闪光灯,所述第二透镜下方设置有颜色传感器,所述第一透镜用于扩散所述闪光灯的光线,所述第二透镜用于辅助所述颜色传感器采集环境光,所述第二透镜为已雾化处理的透镜。A terminal, comprising: a housing, the housing is provided with a camera and an optical window, wherein the optical window comprises a first lens and a second lens, and a flash is disposed under the first lens, A color sensor is disposed under the two lenses, the first lens is for diffusing light of the flash lamp, the second lens is for assisting the color sensor to collect ambient light, and the second lens is an atomized lens .
  2. 根据权利要求1所述的终端,其特征在于,所述第一透镜的雾度小于所述第二透镜的雾度。The terminal according to claim 1, wherein the first lens has a haze smaller than a haze of the second lens.
  3. 根据权利要求2所述的终端,其特征在于,所述第一透镜的视角于所述第二透镜的视角。The terminal according to claim 2, wherein a viewing angle of the first lens is from a viewing angle of the second lens.
  4. 根据权利要求3所述的终端,其特征在于,所述第二透镜的视角大于所述摄像头的视角。The terminal according to claim 3, wherein a viewing angle of the second lens is larger than a viewing angle of the camera.
  5. 根据权利要求1至4任一项所述的终端,其特征在于,所述第一透镜为菲尼尔透镜,所述第二透镜为平面透光镜。The terminal according to any one of claims 1 to 4, wherein the first lens is a Finn lens and the second lens is a flat transmissive mirror.
  6. 根据权利要求1至4任一项所述的终端,其特征在于,所述第一透镜为菲尼尔透镜,所述第二透镜为菲尼尔透镜。The terminal according to any one of claims 1 to 4, wherein the first lens is a Finn lens and the second lens is a Finn lens.
  7. 根据权利要求6所述的终端,其特征在于,所述第一透镜的焦距小于所述第二透镜的焦距。The terminal according to claim 6, wherein a focal length of the first lens is smaller than a focal length of the second lens.
  8. 一种终端制造工艺,其特征在于,包括:A terminal manufacturing process, comprising:
    提供PCB焊板,所述PCB焊板焊接有闪光灯和颜色传感器;Providing a PCB soldering plate soldered with a flash lamp and a color sensor;
    提供第一透镜和第二透镜;Providing a first lens and a second lens;
    提供外壳,所述外壳包含钻孔; Providing a housing, the housing comprising a bore;
    将所述第一透镜和所述第二透镜镶嵌于在所述钻孔的位置;Inserting the first lens and the second lens in a position at the borehole;
    将所述PCB焊板和所述外壳组装在一起,使得所述第一透镜与所述闪光灯相对设置和所述第二透镜与所述颜色传感器相对设置。The PCB pad and the housing are assembled such that the first lens is disposed opposite the flash and the second lens is disposed opposite the color sensor.
  9. 根据权利要求8所述的制造工艺,其特征在于,所述提供第一透镜和第二透镜,包括:The manufacturing process according to claim 8, wherein the providing the first lens and the second lens comprises:
    提供一个模具,在所述模具上并行排列所述第一透镜和所述第二透镜;Providing a mold on which the first lens and the second lens are arranged in parallel;
    采用聚甲基丙烯酸甲酯对所述第一透镜和所述第二透镜进行注塑。The first lens and the second lens are injection molded using polymethyl methacrylate.
  10. 根据权利要求8或9任一项所述的制造工艺,其特征在于,所述第一透镜的光扩散材料成分小于预设阈值,所述第二透镜的光扩散材料成分大于所述预设阈值。 The manufacturing process according to any one of claims 8 or 9, wherein the light diffusing material component of the first lens is smaller than a predetermined threshold, and the light diffusing material component of the second lens is greater than the predetermined threshold .
PCT/CN2017/073953 2016-08-11 2017-02-17 Terminal and manufacturing process thereof WO2018028165A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610664989.5A CN106101322A (en) 2016-08-11 2016-08-11 A kind of terminal and manufacturing process thereof
CN201610664989.5 2016-08-11

Publications (1)

Publication Number Publication Date
WO2018028165A1 true WO2018028165A1 (en) 2018-02-15

Family

ID=57455575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073953 WO2018028165A1 (en) 2016-08-11 2017-02-17 Terminal and manufacturing process thereof

Country Status (2)

Country Link
CN (1) CN106101322A (en)
WO (1) WO2018028165A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101322A (en) * 2016-08-11 2016-11-09 深圳市金立通信设备有限公司 A kind of terminal and manufacturing process thereof
CN107886927B (en) 2017-11-22 2021-09-14 Oppo广东移动通信有限公司 Electronic device
CN113740976B (en) * 2020-05-29 2023-04-21 Oppo广东移动通信有限公司 Optical module and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581938A (en) * 2003-07-31 2005-02-16 京瓷株式会社 Camera device, electronic device, and image processing method for same
CN101535890A (en) * 2006-11-24 2009-09-16 索尼爱立信移动通讯有限公司 Light sensor for luminance control in a display in a portable device
CN102131040A (en) * 2010-06-04 2011-07-20 苹果公司 Adaptive lens shading correction
CN103200286A (en) * 2013-03-28 2013-07-10 深圳市中兴移动通信有限公司 Ambient brightness measuring device and mobile terminal
CN203813841U (en) * 2014-05-19 2014-09-03 联钢精密科技(苏州)有限公司 Cell phone flash lamp device
CN106101322A (en) * 2016-08-11 2016-11-09 深圳市金立通信设备有限公司 A kind of terminal and manufacturing process thereof
CN206042074U (en) * 2016-08-11 2017-03-22 深圳市金立通信设备有限公司 Terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4027616B2 (en) * 2001-04-20 2007-12-26 三菱電機株式会社 Pointing device device and mobile phone
US7646974B2 (en) * 2006-09-22 2010-01-12 Sony Ericsson Mobile Communications Ab Color adjustment for camera
JP4623178B2 (en) * 2008-09-18 2011-02-02 ソニー株式会社 Image signal processing apparatus, image signal processing method, program, imaging apparatus, and imaging system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581938A (en) * 2003-07-31 2005-02-16 京瓷株式会社 Camera device, electronic device, and image processing method for same
CN101535890A (en) * 2006-11-24 2009-09-16 索尼爱立信移动通讯有限公司 Light sensor for luminance control in a display in a portable device
CN102131040A (en) * 2010-06-04 2011-07-20 苹果公司 Adaptive lens shading correction
CN103200286A (en) * 2013-03-28 2013-07-10 深圳市中兴移动通信有限公司 Ambient brightness measuring device and mobile terminal
CN203813841U (en) * 2014-05-19 2014-09-03 联钢精密科技(苏州)有限公司 Cell phone flash lamp device
CN106101322A (en) * 2016-08-11 2016-11-09 深圳市金立通信设备有限公司 A kind of terminal and manufacturing process thereof
CN206042074U (en) * 2016-08-11 2017-03-22 深圳市金立通信设备有限公司 Terminal

Also Published As

Publication number Publication date
CN106101322A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US10533925B2 (en) Fixtureless lensmeter and methods of operating same
CN107113415B (en) The method and apparatus for obtaining and merging for more technology depth maps
US10949958B2 (en) Fast fourier color constancy
CN104243843B (en) Pickup light shines compensation method, compensation device and user equipment
CN105227857B (en) A kind of method and apparatus of automatic exposure
Nixon et al. Accurate device-independent colorimetric measurements using smartphones
WO2018028165A1 (en) Terminal and manufacturing process thereof
CN108200335A (en) Photographic method, terminal and computer readable storage medium based on dual camera
US10605597B1 (en) Electronic device and method for measuring distance using image thereof
CN105577982A (en) Image processing method and terminal
CN105979248B (en) Image processing system and its operating method with interacting depth estimation
CN106210556A (en) A kind of photographic method and terminal
US20160366331A1 (en) Methods and devices for correction of camera module sensitivity and flash color variation
CN206042074U (en) Terminal
CN105721861A (en) Digital camera detection method and detection device
Hirning The application of luminance mapping to discomfort glare: a modified glare index for green buildings
Bellia et al. Photometric characterisation of small sources with high dynamic range illuminance mapping
CN107870038B (en) Method and electronic device for detecting wavelength spectrum of incident light
CN106412416A (en) Image processing method, device and system
CN112584057B (en) Illuminance detection method and device
CN108650354B (en) Display module and mobile terminal
CN116439652A (en) Diopter detection method, diopter detection device, upper computer and diopter detection system
CN105991987A (en) Image processing method, equipment and system
CN105430273A (en) Method and device for taking photos and measuring distances by using mobile terminal
Scheeline Smartphone technology–instrumentation and applications

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: 17838302

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: 17838302

Country of ref document: EP

Kind code of ref document: A1