CN110278348B - Camera module, shooting and imaging method and terminal equipment - Google Patents

Camera module, shooting and imaging method and terminal equipment Download PDF

Info

Publication number
CN110278348B
CN110278348B CN201810218610.7A CN201810218610A CN110278348B CN 110278348 B CN110278348 B CN 110278348B CN 201810218610 A CN201810218610 A CN 201810218610A CN 110278348 B CN110278348 B CN 110278348B
Authority
CN
China
Prior art keywords
average value
pixel points
specific pixel
neighborhood
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810218610.7A
Other languages
Chinese (zh)
Other versions
CN110278348A (en
Inventor
沈忱
邱杰
黄荣海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Clarion Electronics Enterprise Co Ltd
Original Assignee
Xiamen Clarion Electronics Enterprise Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Clarion Electronics Enterprise Co Ltd filed Critical Xiamen Clarion Electronics Enterprise Co Ltd
Priority to CN201810218610.7A priority Critical patent/CN110278348B/en
Publication of CN110278348A publication Critical patent/CN110278348A/en
Application granted granted Critical
Publication of CN110278348B publication Critical patent/CN110278348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

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

Abstract

The embodiment of the invention provides a camera module, a shooting and imaging method and terminal equipment, relates to the technical field of terminals, and is used for avoiding or reducing defects of the camera module caused by foreign matters on a sensor. This module of making a video recording includes: the storage unit is used for storing the coordinates of the specific pixel points; the specific pixel points are pixel points with different imaging colors from the color of the pure color object when the camera module shoots the pure color object; the processing unit is used for acquiring the color displayed by the neighborhood pixel points when the camera module shoots and images, and setting the display color of the specific pixel points according to the color displayed by the neighborhood pixel points; the neighborhood pixels are pixels adjacent to at least one specific pixel. The embodiment of the application is used for shooting and imaging of the camera module.

Description

Camera module, shooting and imaging method and terminal equipment
Technical Field
The invention relates to the technical field of terminals, in particular to a camera module, a shooting imaging method and terminal equipment.
Background
With the continuous development of terminal technology, the application of the camera function on the terminal equipment is more and more extensive, and the quality of the shooting effect becomes an important index for evaluating the performance of the terminal equipment.
Referring to fig. 1, a camera module of a terminal device generally includes: a lens 101, a base 102, a sensor 103, and a Printed Circuit Board (PCB) 104. As shown in fig. 2, the assembled camera module has a sensor 103 disposed on a PCB 104, a base 102 fixed on the PCB 104, and a lens 101 mounted in the base 102 in a threaded manner. In the prior art, the production mode of the camera module is as follows: the method comprises the steps of arranging a plurality of sensors on a PCB with a large area, cutting the PCB with the large area to obtain PCBs of a plurality of camera modules, mounting a base on the PCB of each camera module, and finally screwing a lens into the base. In the production process of the camera module, the piece that produces when cutting the PCB board may remain on the sensor, and the piece that produces when the camera lens twists the base also may remain on the sensor, and these foreign matters remaining on the sensor may shelter from the light of throwing to the sensor, and then influence the sensor sensitization, cause the camera module bad.
Disclosure of Invention
The embodiment of the invention provides a camera module, a shooting and imaging method and terminal equipment, which are used for avoiding or reducing the defect of the camera module caused by debris on a sensor.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a camera module is provided, which includes:
the storage unit is used for storing the coordinates of the specific pixel points; the specific pixel points are pixel points with different imaging colors from the colors of the pure color objects when the camera module shoots the pure color objects;
the processing unit is used for acquiring the color displayed by the neighborhood pixel points when the camera module is used for shooting and imaging, and setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points; the neighborhood pixel point is a pixel point adjacent to at least one specific pixel point.
Optionally, when the number of the specific pixel points is 1, the processing unit is specifically configured to set an average value of colors displayed by the neighborhood pixel points as the display color of the specific pixel point.
Optionally, the camera module further includes: a judgment unit;
the judging unit is used for judging whether the colors displayed by the neighborhood pixel points are the same or not when the number of the specific pixel points is more than 1;
when the judging unit determines that the colors displayed by the neighborhood pixels are the same, the processing unit is specifically configured to set the color displayed by the neighborhood pixels as the display color of the specific pixel;
when the judging unit determines that the colors displayed by any two neighborhood pixels are different, the processing unit is specifically configured to obtain a first average value of all the neighborhood pixels, a second average value of the neighborhood pixels located on the first side of the specific pixel, a third average value of the neighborhood pixels located on the second side of the specific pixel, a fourth average value of the neighborhood pixels located on the third side of the specific pixel, and a fifth average value of the neighborhood pixels located on the fourth side of the specific pixel; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points; wherein the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
Optionally, the processing unit is specifically configured to set, according to the positions of the remaining pixels in the specific pixel, the display colors of the remaining pixels in the specific pixel to the colors in which the second average value, the third average value, the fourth average value, and the fifth average value gradually change, through a linear interpolation algorithm.
Optionally, the specific pixel point is a pixel point of which the imaging color is not white when the camera module shoots a white object.
In a second aspect, there is provided a photographic imaging method including:
acquiring the color displayed by the neighborhood pixel point during shooting and imaging; the neighborhood pixel points are pixel points adjacent to at least one specific pixel point, and when the specific pixel point shoots a pure color object, the imaging color of the pixel points is different from the color of the pure color object;
and setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel point.
Optionally, when the number of the specific pixel points is 1, the setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points includes:
setting the average value of the colors displayed by the neighborhood pixels as the display color of the specific pixel.
Optionally, when the number of the specific pixel points is greater than 1, the setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points includes:
judging whether the colors displayed by the neighborhood pixels are the same or not;
when the colors displayed by the neighborhood pixel points are the same, setting the color displayed by the neighborhood pixel points as the display color of the specific pixel point;
when the colors displayed by any two neighborhood pixel points are different, acquiring a first average value of all the neighborhood pixel points, a second average value of the neighborhood pixel points positioned on the first side of the specific pixel point, a third average value of the neighborhood pixel points positioned on the second side of the specific pixel point, a fourth average value of the neighborhood pixel points positioned on the third side of the specific pixel point and a fifth average value of the neighborhood pixel points positioned on the fourth side of the specific pixel point; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points; wherein the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
Optionally, the setting, according to the positions of the remaining pixels in the specific pixel, the display colors of the remaining pixels in the specific pixel to the colors in which the second average value, the third average value, the fourth average value, and the fifth average value gradually change includes:
and setting the display colors of the rest of the specific pixel points to be the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points by a linear interpolation algorithm.
Optionally, the specific pixel point is a pixel point of which the imaging color is not white when the camera module shoots a white object.
In a third aspect, a terminal device is provided, which includes the camera module of any one of the first aspect.
The camera module provided by the embodiment of the invention comprises: a storage unit and a processing unit; the storage unit is used for storing the coordinates of the specific pixel points, and the processing unit is used for acquiring the color displayed by the neighborhood pixel points when the camera module is used for shooting and imaging, and setting the display color of the specific pixel points according to the color displayed by the neighborhood pixel points; the specific pixel points are pixel points with imaging colors different from the colors of the pure color objects when the camera module shoots the pure color objects; namely, the specific pixel point is the pixel point affected by the foreign matter; because the processing unit of the module of making a video recording that this application embodiment provided can pass through when the module of making a video recording shoots the formation of image, acquire the colour that neighborhood pixel shows to the colour setting according to neighborhood pixel demonstration the display colour of specific pixel, therefore the module of making a video recording that this application embodiment provided can make the pixel that receives the foreign matter influence show reasonable colour, avoids or reduces the foreign matter on the sensor and causes the module of making a video recording bad.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a component exploded view of a camera module according to the prior art;
FIG. 2 is a schematic structural diagram of an assembled camera module in the prior art;
fig. 3 is a schematic structural diagram of a camera module according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a specific pixel according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a neighborhood pixel provided in an embodiment of the present invention;
fig. 6 is a schematic diagram of another specific pixel and its neighboring pixels according to the embodiment of the present invention;
fig. 7 is a schematic diagram of another specific pixel and its neighboring pixels according to the embodiment of the present invention;
fig. 8 is a flowchart illustrating steps of a method for controlling a camera module according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first" and "second," and the like, in the description and in the claims of the present application, are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first antenna and the second antenna, etc. are used to distinguish between different antennas, rather than to describe a particular order of the antennas.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
In the prior art, the production mode of the camera module is as follows: the method comprises the steps of arranging a plurality of sensors on a PCB with a large area, cutting the PCB with the large area to obtain PCBs of a plurality of camera modules, mounting a base on the PCB of each camera module, and finally screwing a lens into the base. In the production process of the camera module, the piece that produces when cutting the PCB board may remain on the sensor, and the piece that produces when the camera lens twists the base also may remain on the sensor, and these pieces that remain on the sensor may shelter from the light that shines into to the sensor, and then influence the sensor sensitization, cause the camera module bad.
In order to solve the problem, an embodiment of the application provides a camera module, a shooting imaging method and a terminal device, wherein the camera module comprises: a storage unit and a processing unit; the storage unit is used for storing the coordinates of the specific pixel points, and the processing unit is used for acquiring the color displayed by the neighborhood pixel points when the camera module is used for shooting and imaging, and setting the display color of the specific pixel points according to the color displayed by the neighborhood pixel points; when the camera module shoots a pure-color object, the specific pixel point is a pixel point with an imaging color different from that of the pure-color object, namely the specific pixel point is a pixel point influenced by foreign matters; because the processing unit of the module of making a video recording that this application embodiment provided can pass through when the module of making a video recording shoots the formation of image, acquire the colour that neighborhood pixel shows to the colour setting according to neighborhood pixel demonstration the display colour of specific pixel, therefore the module of making a video recording that this application embodiment provided can make the pixel that receives the foreign matter influence show reasonable colour, avoids or reduces the foreign matter on the sensor and causes the module of making a video recording bad.
The terminal device provided in the embodiment of the present application may be a mobile phone, a tablet computer, a notebook computer, a Personal Computer (PC), a netbook, a Personal Digital Assistant (PDA), an intelligent watch, an intelligent bracelet, a vehicle-mounted image, or may be another type of terminal device, and the embodiment of the present application is not limited.
An embodiment of the present application provides a camera module, specifically, referring to fig. 3, the camera module 300 includes: a storage unit 31 and a processing unit 32.
The storage unit 31 is configured to store the coordinates of the specific pixel point.
The specific pixel points are pixel points with different imaging colors from the colors of the pure color objects when the camera module shoots the pure color objects.
Specifically, can increase the process that a detected after the module equipment of making a video recording is accomplished, concrete testing process is: shoot the formation of image with the camera to the pure color lamp house, if have dust particle, the foreign matter such as piece that leave over when cutting PCB on the sensor, then the image that shows have the formation of image colour with the pixel point that the colour of pure color object is different, this moment through read the formation of image colour with the pixel point coordinate that the colour of pure color object is different can acquire the coordinate of the specific pixel point in this application embodiment.
For example, referring to fig. 4, when the image capturing module captures a solid-color object, a pixel array of 8 × 10 is taken as an example in fig. 4. The color displayed by the pixel points of L3S5, L3S6, L4S5, and L4S6 is different from the color of a solid object, and the pixel points with the coordinates of L3S5, L3S6, L4S5, and L4S6 are the specific pixel points in the embodiment of the present application, and the coordinates of the specific pixel points in the embodiment of the present application are L3S5, L3S6, L4S5, and L4S 6.
Optionally, the solid object in the above embodiment is white. Namely, the specific pixel point is a pixel point of which the imaging color is not white when the camera module shoots a white object.
And the processing unit 32 is used for acquiring the color displayed by the neighborhood pixel points when the camera module is used for shooting and imaging, and setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points.
And the neighborhood pixel point is a pixel point adjacent to at least one specific pixel point.
Exemplarily, referring to fig. 5, the coordinates of a specific pixel point in fig. 5 are illustrated as L4L 6. When the coordinates of the specific pixel point are L4L6, the coordinates of the neighboring pixel points are L3S5, L3S6, L3S7, L4S5, L3S7, L5S5, L5S6, and L5S 7.
Specifically, a specific implementation manner of setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel point in the above embodiment is described below.
The implementation mode is as follows:
when the number of the specific pixel points is 1, the processing unit 32 is specifically configured to set an average value of colors displayed by neighboring pixel points of the specific pixel point as the display color of the specific pixel point.
For example, referring to fig. 5, the colors displayed by the neighborhood pixels L3S5, L3S6, L3S7, L4S5, L3S7, L5S5, L5S6, and L5S7 are a, b, c, d, e, f, g, and h, respectively, and then the color displayed by a specific pixel is set as the average value of a, b, c, d, e, f, g, and h.
It is noted that color is a color measurement term consisting of hue, lightness and saturation. The average value of the color in the present application is a color obtained by calculating the average value of the hue, lightness and saturation of the color. For example: if the average value of the hues of the a, B, c, d, e, f, g and H is H, the average value of the lightness of the a, B, c, d, e, f, g and H is B, and the average value of the saturation of the a, B, c, d, e, f, g and H is S, the color displayed by the specific pixel is set to be the color with the hue of S, the lightness of B and the saturation of S.
In the above embodiment, although the pixel point L4S6 cannot be normally displayed under the influence of the foreign substance, the colors displayed by the neighboring pixel points L3S5, L3S6, L3S7, L4S5, L3S7, L5S5, L5S6, and L5S7 can display reasonable colors, so that the yield of the camera module can be ensured.
The implementation mode two is as follows:
the camera module further comprises: a judgment unit;
the judging unit is used for judging whether the colors displayed by the neighborhood pixels are the same or not when the number of the specific pixels is more than 1;
when the determining unit determines that the colors displayed by the neighborhood pixels are the same, the processing unit 32 is specifically configured to set the color displayed by the neighborhood pixels as the display color of the specific pixel.
Illustratively, referring to fig. 6, the coordinates of a specific pixel point are: L4S5, L4S6, L5S5, L5S6, the coordinates of the neighborhood pixels of a specific pixel point are: L3S4, L3S5, L3S6, L3S7, L4S4, L4S7, L5S4, L5S7, L6S4, L6S5, L6S6, and L6S7, and if the colors displayed by the neighboring pixels of the specific pixel are all α, the color settings of the specific pixels L4S5, L4S6, L5S5, and L5S6 are all α.
Similarly, in the above embodiment, although the pixels L4S5, L4S6, L5S5, and L5S6 are affected by foreign matters and cannot be normally displayed, the colors displayed by the neighboring pixels L3S4, L3S5, L3S6, L3S7, L4S4, L4S7, L5S4, L5S7, L6S4, L6S5, L6S6, and L6S7 can display reasonable colors, so that the yield of the camera module can be ensured.
The implementation mode is three:
the camera module further comprises: a judgment unit;
the judging unit is used for judging whether the colors displayed by the neighborhood pixels are the same or not when the number of the specific pixels is more than 1;
when the determining unit determines that the colors displayed by any two of the neighborhood pixels are different, the processing unit 32 is specifically configured to obtain a first average value of all the neighborhood pixels, a second average value of the neighborhood pixels located on the first side of the specific pixel, a third average value of the neighborhood pixels located on the second side of the specific pixel, a fourth average value of the neighborhood pixels located on the third side of the specific pixel, and a fifth average value of the neighborhood pixels located on the fourth side of the specific pixel; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points;
the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
Illustratively, referring to fig. 7, the coordinates of a particular pixel point are: L3S5, L3S6, L3S7, L4S5, L4S6, L4S7, L5S5, L5S6, and L5S7, and the coordinates of the neighborhood pixel point of a specific pixel point are: L2S4, L2S5, L2S6, L2S7, L2S8, L3S4, L3S8, L4S4, L4S8, L5S4, L5S8, L6S4, L6S5, L6S6, L6S7, L6S 8. The pixel point with the coordinate of L4S6 is a pixel point located at the center position in the specific pixel point, the pixel points with the coordinates of L2S4, L2S5, L2S6, L2S7 and L2S8 are neighborhood pixel points located at the first side of the specific pixel point, the pixel points with the coordinates of L6S4, L6S5, L6S6, L6S7 and L6S8 are neighborhood pixel points located at the second side of the specific pixel point, the pixel points with the coordinates of L2S4, L3S4, L4S4, L5S4 and L6S4 are neighborhood pixel points located at the third side of the specific pixel point, and the pixel points with the coordinates of L2S8, L3S8, L4S8, L5S8 and L6S8 are neighborhood pixel points located at the fourth side of the specific pixel point.
If the colors displayed by the neighborhood pixels L2S4, L2S5, L2S6, L2S7, L2S8, L3S4, L3S8, L4S4, L4S8, L5S4, L5S8, L6S4, L6S5, L6S6, L6S7, and L6S8 of the specific pixel point are: a. b, c, d, e, f, g, h, i, j, k, l, m, n, o, p; the first mean value is the mean value of a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, the second mean value is the mean value of a, b, c, d, e, the third mean value is the mean value of l, m, n, o, p, the fourth mean value is the mean value of a, f, h, j, l, and the fifth mean value is the mean value of e, g, j, k, p.
Setting: if the first average value is α, the second average value is β, the third average value is γ, the fourth average value is δ, and the fifth average value is ∈, then the color of L4S6 in fig. 7 may be set to α, and the display colors of the other pixels in the specific pixel are set to the gradually changing colors of β, γ, δ, and ∈. For example: L3L6 may be set to the average of α and β, L4L5 may be set to the average of α and δ, and so on.
Optionally, in the above embodiment, the processing unit 32 may set, according to the positions of the remaining pixels in the specific pixel, the display colors of the remaining pixels in the specific pixel to the colors in which the second average value, the third average value, the fourth average value, and the fifth average value gradually change through a linear interpolation algorithm.
It should be noted that, in the above embodiment, the specific pixel may not form a rectangle, and the four-side pixels may be identified by using the existing algorithm rules, for example: and acquiring an external circle of the area where the specific pixel point is located, and taking the pixel points on four sides of the square with four sides tangent to the external circle as neighborhood pixel points on four sides of the specific pixel point. For another example: and taking the four-side pixel points of the minimum rectangle in the region where the specific pixel point is located as the neighborhood pixel points on the four sides of the specific pixel point.
Optionally, the camera module further includes: the camera lens, the base, the sensor and the printed circuit board PCB;
the base is fixed on the PCB, the sensor is arranged inside the base, and the lens is arranged in the base.
In another embodiment of the present application, a photographing imaging method is provided, and specifically, referring to fig. 8, the method includes:
and S81, acquiring the color displayed by the neighborhood pixel point during shooting and imaging.
The neighborhood pixel points are pixel points adjacent to at least one specific pixel point, and when the specific pixel point shoots a pure color object, the imaging color of the pixel points is different from the color of the pure color object.
And S82, setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel point.
Because the shooting imaging method provided by the embodiment of the application firstly obtains the color displayed by the neighborhood pixel point when shooting imaging, and then sets the display color of the specific pixel point according to the color displayed by the neighborhood pixel point, the shooting module provided by the embodiment of the application can enable the pixel point affected by the received foreign matter to display reasonable color, and the problem that the shooting module is bad due to the fact that the foreign matter on the sensor is avoided or reduced.
Optionally, when the number of the specific pixel points is 1, the setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points includes:
setting the average value of the colors displayed by the neighborhood pixels as the display color of the specific pixel.
Optionally, when the number of the specific pixel points is greater than 1, the setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points includes:
judging whether the colors displayed by the neighborhood pixels are the same or not;
when the colors displayed by the neighborhood pixel points are the same, setting the color displayed by the neighborhood pixel points as the display color of the specific pixel point;
when the colors displayed by any two neighborhood pixel points are different, acquiring a first average value of all the neighborhood pixel points, a second average value of the neighborhood pixel points positioned on the first side of the specific pixel point, a third average value of the neighborhood pixel points positioned on the second side of the specific pixel point, a fourth average value of the neighborhood pixel points positioned on the third side of the specific pixel point and a fifth average value of the neighborhood pixel points positioned on the fourth side of the specific pixel point; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points; wherein the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
Optionally, the setting, according to the positions of the remaining pixels in the specific pixel, the display colors of the remaining pixels in the specific pixel to the colors in which the second average value, the third average value, the fourth average value, and the fifth average value gradually change includes:
and setting the display colors of the rest of the specific pixel points to be the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points by a linear interpolation algorithm.
Optionally, the specific pixel point is a pixel point of which the imaging color is not white when the camera module shoots a white object.
A further embodiment of the present application provides a terminal device, where the terminal device includes the camera module provided in any of the above embodiments.
Because the terminal device provided by the embodiment of the present application includes the same specific technical features as the camera module, the embodiment of the present application can achieve the same technical effects as the camera module, and details are not repeated herein.
In addition, the terminal device provided in the embodiment of the present application may be a mobile phone, a tablet computer, a notebook computer, a PC, a netbook, a PDA, an intelligent watch, an intelligent bracelet, a vehicle-mounted image, or may be another type of terminal device, which is not limited in the embodiment of the present application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. The utility model provides a module of making a video recording which characterized in that includes:
the storage unit is used for storing the coordinates of the specific pixel points; the specific pixel points are pixel points with different imaging colors from the colors of the pure color objects when the camera module shoots the pure color objects;
the processing unit is used for acquiring the color displayed by the neighborhood pixel points when the camera module is used for shooting and imaging, and setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel points; the neighborhood pixel point is a pixel point adjacent to at least one specific pixel point;
the judging unit is used for judging whether the colors displayed by the neighborhood pixels are the same or not when the number of the specific pixels is more than 1;
when the judging unit determines that the colors displayed by the neighborhood pixels are the same, the processing unit is specifically configured to set the color displayed by the neighborhood pixels as the display color of the specific pixel;
when the judging unit determines that the colors displayed by any two neighborhood pixels are different, the processing unit is specifically configured to obtain a first average value of all the neighborhood pixels, a second average value of the neighborhood pixels located on the first side of the specific pixel, a third average value of the neighborhood pixels located on the second side of the specific pixel, a fourth average value of the neighborhood pixels located on the third side of the specific pixel, and a fifth average value of the neighborhood pixels located on the fourth side of the specific pixel; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points; wherein the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
2. The camera module according to claim 1, wherein when the number of the specific pixel points is 1, the processing unit is specifically configured to set an average value of colors displayed by the neighborhood pixel points as the display color of the specific pixel point.
3. The camera module according to claim 1, wherein the processing unit is specifically configured to set, by a linear interpolation algorithm, the display colors of the remaining ones of the specific pixel points to the colors in which the second average value, the third average value, the fourth average value, and the fifth average value gradually change according to the positions of the remaining ones of the specific pixel points.
4. The camera module of claim 1, wherein the specific pixel point is a pixel point whose image color is not white when the camera module shoots a white object.
5. A photographic imaging method, characterized by comprising:
acquiring the color displayed by the neighborhood pixel point during shooting and imaging; the neighborhood pixel points are pixel points adjacent to at least one specific pixel point, and when the specific pixel point shoots a pure color object, the imaging color of the pixel points is different from the color of the pure color object;
setting the display color of the specific pixel point according to the color displayed by the neighborhood pixel point;
when the number of the specific pixel points is greater than 1, the setting of the display color of the specific pixel points according to the color displayed by the neighborhood pixel points includes:
judging whether the colors displayed by the neighborhood pixels are the same or not;
when the colors displayed by the neighborhood pixel points are the same, setting the color displayed by the neighborhood pixel points as the display color of the specific pixel point;
when the colors displayed by any two neighborhood pixel points are different, acquiring a first average value of all the neighborhood pixel points, a second average value of the neighborhood pixel points positioned on the first side of the specific pixel point, a third average value of the neighborhood pixel points positioned on the second side of the specific pixel point, a fourth average value of the neighborhood pixel points positioned on the third side of the specific pixel point and a fifth average value of the neighborhood pixel points positioned on the fourth side of the specific pixel point; setting the display color of the pixel point positioned at the central position in the specific pixel points as the first average value, and setting the display colors of the rest of the specific pixel points as the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points; wherein the first side and the second side are two opposite sides in a row direction of the pixel array; the third side and the fourth side are two sides opposite to each other in a column direction of the pixel array.
6. The method according to claim 5, wherein when the number of the specific pixel points is 1, the setting the display color of the specific pixel point according to the color displayed by the neighbor pixel points comprises:
setting the average value of the colors displayed by the neighborhood pixels as the display color of the specific pixel.
7. The method according to claim 5, wherein the setting of the display colors of the remaining ones of the specific pixels to the colors of the second, third, fourth, and fifth mean gradations according to the positions of the remaining ones of the specific pixels comprises:
and setting the display colors of the rest of the specific pixel points to be the colors gradually changed by the second average value, the third average value, the fourth average value and the fifth average value according to the positions of the rest of the specific pixel points by a linear interpolation algorithm.
8. The method according to claim 5, wherein the specific pixel point is a pixel point whose image color is not white when the camera module shoots a white object.
9. A terminal device, characterized in that it comprises a camera module according to any one of claims 1 to 4.
CN201810218610.7A 2018-03-16 2018-03-16 Camera module, shooting and imaging method and terminal equipment Active CN110278348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810218610.7A CN110278348B (en) 2018-03-16 2018-03-16 Camera module, shooting and imaging method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810218610.7A CN110278348B (en) 2018-03-16 2018-03-16 Camera module, shooting and imaging method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110278348A CN110278348A (en) 2019-09-24
CN110278348B true CN110278348B (en) 2022-03-18

Family

ID=67958943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810218610.7A Active CN110278348B (en) 2018-03-16 2018-03-16 Camera module, shooting and imaging method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110278348B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685367A (en) * 2011-01-26 2012-09-19 株式会社理光 Image processing apparatus and pixel interpolation method
CN103714525A (en) * 2013-12-24 2014-04-09 北京淳中视讯科技有限公司 Integration band adjusting method for image integration processing, adjusting device and integration band adjusting system for image integration processing
CN104463827A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Image acquisition module automatic detection method and corresponding electronic device
CN104869378A (en) * 2015-06-23 2015-08-26 深圳市华星光电技术有限公司 Color gamut matching method based on source image color gamut
CN107205142A (en) * 2017-06-30 2017-09-26 青岛海信电器股份有限公司 A kind of method, device and the display device of image color skew
CN107231553A (en) * 2017-05-31 2017-10-03 信利光电股份有限公司 Corner location acquisition methods and device
CN107256540A (en) * 2017-06-12 2017-10-17 四川大学 Image repair method, device and three-dimensional reconstruction system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685367A (en) * 2011-01-26 2012-09-19 株式会社理光 Image processing apparatus and pixel interpolation method
CN104463827A (en) * 2013-09-17 2015-03-25 联想(北京)有限公司 Image acquisition module automatic detection method and corresponding electronic device
CN103714525A (en) * 2013-12-24 2014-04-09 北京淳中视讯科技有限公司 Integration band adjusting method for image integration processing, adjusting device and integration band adjusting system for image integration processing
CN104869378A (en) * 2015-06-23 2015-08-26 深圳市华星光电技术有限公司 Color gamut matching method based on source image color gamut
CN107231553A (en) * 2017-05-31 2017-10-03 信利光电股份有限公司 Corner location acquisition methods and device
CN107256540A (en) * 2017-06-12 2017-10-17 四川大学 Image repair method, device and three-dimensional reconstruction system
CN107205142A (en) * 2017-06-30 2017-09-26 青岛海信电器股份有限公司 A kind of method, device and the display device of image color skew

Also Published As

Publication number Publication date
CN110278348A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US10924729B2 (en) Method and device for calibration
EP3396942A1 (en) Image sensor, imaging method and electronic device
US11134195B2 (en) Image sensor, camera module and electronic device
EP3399288A1 (en) Camera assembly and mobile electronic device
US20100277614A1 (en) Image capture device and control method thereof
US20060228102A1 (en) Photographing apparatus and method for compensating brightness of an image
CN102057665A (en) Electron camera, image processing device, and image processing method
CN105450932A (en) Backlight photographing method and device
CN107071371B (en) The camera lens colour brightness calibration method and device of panoramic shooting mould group
CN110365894A (en) The method and relevant apparatus of image co-registration in camera system
CN109741307A (en) Veiling glare detection method, veiling glare detection device and the veiling glare detection system of camera module
CN104202448A (en) System and method for solving shooting brightness unevenness of mobile terminal camera
CN110740314B (en) Method and system for correcting defective pixel of color line array camera
US9497427B2 (en) Method and apparatus for image flare mitigation
CN114866754A (en) Automatic white balance method and device, computer readable storage medium and electronic equipment
CN110278348B (en) Camera module, shooting and imaging method and terminal equipment
CN112422942B (en) White balance synchronization method, lens module and electronic equipment
CN101118263A (en) Polar direction automatic detection method of polar element
CN112150392A (en) Low-illumination image restoration method and device
CN107424134A (en) Image processing method, device, computer-readable recording medium and computer equipment
CN111866369A (en) Image processing method and device
CN109040598B (en) Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN113840136B (en) Method and device for detecting camera installation precision
CN102316242B (en) Image correction system and bearing calibration thereof
RU2589463C1 (en) Device for determining total amount of clouds on basis of direct digital wide-angle images of visible hemisphere of sky

Legal Events

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