CN109151317A - Mobile terminal camera image data processing method, mobile terminal and storage medium - Google Patents
Mobile terminal camera image data processing method, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN109151317A CN109151317A CN201811129051.9A CN201811129051A CN109151317A CN 109151317 A CN109151317 A CN 109151317A CN 201811129051 A CN201811129051 A CN 201811129051A CN 109151317 A CN109151317 A CN 109151317A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- pixel
- image data
- color
- format
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
Abstract
The invention discloses mobile terminal camera image data processing method, mobile terminal and storage mediums, the method by selecting color exception by user on the touchscreen, after selection, by user, to input this be color is then coordinate of the acquisition for mobile terminal at this than deep around or shallow again;It is that alignment processing is made before camera sends data to mobile terminal processor in place of light color or color depths according to this.When mobile terminal is taken pictures using camera, if detected to there is color compared to the object of very different around in shot region, it can be by handling in photograph generator terminal image, so that the photo finally taken is relatively reasonable, on the other hand signal jump when image data is transferred to processor by camera can also be reduced, power consumption is reduced, image data efficiency of transmission is improved, is provided conveniently for user.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of mobile terminal camera image data processing side
Method, mobile terminal and storage medium.
Background technique
Currently, mobile terminal will be installed camera, so that user can be recorded a video by mobile terminal, photo is clapped
It takes the photograph.During practically photograph taking, the object of color very different compared to around can be usually come out in photo
Body, the color of the object, since heterochromia is very big, cause the object and photo incompatible with photo itself.On the other hand it moves
During dynamic terminal photo is transferred to processor from camera, as the great image of this heterochromia is due in image data
Signal jump it is larger, therefore will increase data transmission when power consumption, it has not been convenient to user.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of mobile terminal camera images
Data processing method, mobile terminal and storage medium, it is intended to when mobile terminal is taken pictures using camera, if detected
To have color in shot region compared to the object of very different around, can by handling in photograph generator terminal image,
So that the photo finally taken is relatively reasonable, on the other hand can also reduce when image data is transferred to processor by camera
Signal jump, reduces power consumption, improves image data efficiency of transmission, provides users with the convenient.
In order to achieve the above object, this invention takes following technical schemes:
A kind of mobile terminal camera image data processing method, wherein include the following steps:
When mobile terminal is taken pictures using camera, detect to there is color to be greater than in shot region compared to difference around
The object of predetermined value is then positioned as being prompted at color exception and accordingly;
Acquisition for mobile terminal is according to the coordinate in region at the color exception of positioning;
According to the coordinate in region at the color exception got, corresponding compensation deals, compensation are carried out to region at color exception
Processing is the region compared to difference around less than predetermined value, and data are transmitted to mobile terminal processor by treated.
The mobile terminal camera image data processing method, wherein described that phase is carried out to region at color exception
The compensation deals answered, compensation deals are the region for being less than predetermined value compared to difference around, and data are transmitted to by treated
The step of mobile terminal processor includes:
If being color depths at this, before camera sends data to mobile terminal processor, it is handled as follows:
B1, the data for obtaining region at color exception to be transmitted, it is ascending by radius by the center of circle of coordinate where color depths
N number of round Circle1, Circle2, Circle3, CircleN are marked off, the radius of these circles is respectively R1, R2, R3, RN;
B2, the pixel in the region Circle1 is uniformly processed, for the picture in Circle2 and in removing Circle1
Vegetarian refreshments is uniformly processed, and the pixel in Circle3 and in removing Circle2 is uniformly processed, for CircleN
Pixel that is interior and removing in CircleN-1 is uniformly processed;
B3, after having handled, by camera will treated that image data is transmitted to mobile terminal processor.
The mobile terminal camera image data processing method, wherein the step B2 includes: to set color depths
Coordinate be (xBP, yBP), judge a pixel (x, y) whether some circle CircleX in method are as follows: if pixel
(x, y) meets to the distance of (xBP, yBP) radius for being less than CircleX, then it is assumed that and the pixel is located in CircleX, X 1,
2、N。
The mobile terminal camera image data processing method, wherein the step B2 is in the region Circle1
Pixel be uniformly processed, the processing method for pixel specifically includes the following steps:
The format of the data to be processed of E1, camera is RGB, and pixel to be treated is converted to YUV by rgb format
Format, conversion formula are as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
E2, the Y value for all pixels point for meeting formula is handled: Y=Y-YBth1;
E3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U。
The mobile terminal camera image data processing method, wherein the step B2 is in CircleN and removing
Go the pixel in CircleN-1 be uniformly processed in the processing method for pixel specifically includes the following steps:
The format of the data to be processed of F1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
F2, by meet formula and the Y value of all pixels point handle: Y=Y-YBthN;
F3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein, YBth1 >=YBth2 >=YBth3 >=YBthN.
The mobile terminal camera image data processing method, wherein described that phase is carried out to region at color exception
The compensation deals answered, compensation deals are the region for being less than predetermined value compared to difference around, and data are transmitted to by treated
If it is place of light color that the step of mobile terminal processor, which includes: at this, sent data at mobile terminal in camera
Before managing device, it is handled as follows:
C1, data to be transmitted are obtained, N number of circle is marked off by radius is ascending as the center of circle in coordinate using place of light color
The radius of Circle1, Circle2, Circle3, CircleN, these circles are respectively R1, R2, R3, RN;
C2, the pixel in the region Circle1 is uniformly processed, for the picture in Circle2 and in removing Circle1
Vegetarian refreshments is uniformly processed, and the pixel in Circle3 and in removing Circle2 is uniformly processed, for CircleN
Pixel that is interior and removing in CircleN-1 is uniformly processed;
C3, after having handled, image data to be transmitted is transmitted to mobile terminal processor.
The mobile terminal camera image data processing method, wherein the step C2 set the coordinate at place of light color as
(xBP, yBP), judge a pixel (x, y) whether the method in some circle CircleX are as follows: if pixel (x, y) is full
Foot is less than the radius of CircleX to the distance of (xBP, yBP), then it is assumed that the pixel is located in CircleX, X 1,2, N;
Wherein, the step C2, is uniformly processed the pixel in the region Circle1, for the processing side of pixel
Method specifically includes the following steps:
The format of the data to be processed of G1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
G2, the Y value for all pixels point for meeting formula is handled: Y=Y+YWth1;
G3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U。
The mobile terminal camera image data processing method, wherein the step B2, in CircleN and removing
The pixel gone in CircleN-1 is uniformly processed, the processing method for pixel specifically includes the following steps:
The format of the data to be processed of H1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
H2, by meet formula and the Y value of all pixels point handle: Y=Y+YWthN;
H3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein, YWth1 >=YWth2 >=YWth3 >=... >=YWthN.
A kind of mobile terminal, wherein include: processor, memory and communication bus;
Being stored on the memory can be by mobile terminal camera image data processing routine that the processor executes;
The communication bus realizes the connection communication between processor and memory;
The processor realizes the step of any one the method when executing the mobile terminal camera image data processing routine
Suddenly.
A kind of computer readable storage medium, wherein the computer-readable recording medium storage has one or more
Program, one or more of programs can be executed by one or more processor, to realize movement described in any one
Step in terminal camera image processing method.
Compared to the prior art, mobile terminal camera image data processing method provided by the invention, mobile terminal and
Storage medium, the method by selecting color exception by user on the touchscreen, after selection, then should by user's input
Place is that color is then coordinate of the acquisition for mobile terminal at this than deep around or shallow;It is place of light color or face according to this
At color depth, before camera sends data to mobile terminal processor, make alignment processing.When mobile terminal using camera into
It, can be by taking a picture if detected to there is color compared to the object of very different around in shot region when row is taken pictures
Generator terminal handles image, so that the photo finally taken is relatively reasonable, on the other hand can also reduce camera for image
Data are transferred to signal jump when processor, reduce power consumption, improve image data efficiency of transmission, provide conveniently for user.
Detailed description of the invention
Fig. 1 is the flow chart of mobile terminal camera image data processing method provided by the invention.
It is a kind of concrete application embodiment process of mobile terminal camera image data processing method of the present invention shown in Fig. 2
Figure.
Fig. 3 is the functional block diagram of mobile terminal preferred embodiment of the present invention.
Fig. 4 is Selection Center plot structure signal in mobile terminal camera image data processing method provided by the invention
Figure.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to
Limit the present invention.
Referring to Fig. 1, mobile terminal camera image data processing method provided by the invention the following steps are included:
Step S100, it when mobile terminal is taken pictures using camera, detects to have color compared to week in shot region
The object that difference is greater than predetermined value is enclosed, then is positioned as being prompted at color exception and accordingly.
I.e. in the embodiment of the present invention, when mobile terminal is taken pictures using camera, detect to have in shot region
Color is greater than the object of predetermined value compared to difference around,
For example, detecting that user selects at color exception on the touchscreen, after selection, then inputting this by user is color
It is than around deeply or shallow, then the coordinate at acquisition for mobile terminal user selection, can also pass through software in the present invention certainly
The object detected to have color in shot region compared to difference around greater than predetermined value is set.In the present embodiment, user
It selects place for a rectangular extent, obtains the central point of the rectangular extent, the average value of further this central point and 8 points of surrounding
Difference, if this difference be greater than predetermined value such as 30 if think to detect to there is color to be greater than compared to difference around in shot region
Predetermined value.It lifts in the following example, as shown in figure 4, center rectangular block is the central point of rectangular extent at user's selection, obtains this center
Point R, G, B value, calculate R value in its figure around 8 points R value average value absolute value of the difference whether be greater than it is predetermined
Whether value 30, similarly, the absolute value of the difference for calculating the average value of the G value of 8 points around in G value and its figure are greater than predetermined value
30, whether the absolute value of the difference for calculating the average value of the B value of 8 points around in B value and its figure is greater than predetermined value 30, as long as
There is one to be greater than predetermined value in above three result then to think to detect to there is color poor compared to around in shot region
It is different to be greater than predetermined value.
Such as when mobile terminal is taken pictures using camera, if detected to there is color to compare in shot region
In the object of very different around, then it is positioned as being prompted at color exception and accordingly.
Certain the method for the invention can also be by selecting color exception by user on the touchscreen, and selection finishes
Afterwards, then by user to input this be color is then coordinate of the acquisition for mobile terminal at this than deep around or shallow.
Step S200, acquisition for mobile terminal is according to the coordinate in region at the color exception of positioning.
For example, selecting color exception on the touchscreen by user, after selection, then inputting this by user is color
It is then coordinate of the acquisition for mobile terminal at this than deep around or shallow.
Step S300, according to the coordinate in region at the color exception got, region at color exception is carried out corresponding
Compensation deals, compensation deals are the region for being less than predetermined value compared to difference around, and data are transmitted to movement by treated
Terminal handler.
Certain the method for the invention can also be by selecting color exception by user on the touchscreen, and selection finishes
Afterwards, then by user to input this be color is then coordinate of the acquisition for mobile terminal at this than deep around or shallow;Keep camera pre-
First the image sensed is dealt with, for example the image that senses of Current camera is the pros of one piece of black among complete white region
Shape selects the black region by user if then user thinks that the black squares are loftier, and surrounding is compared in then user's input
Deep, then the present invention carries out the processing of S200 to the image data of the black region, and black region color can be thin out after processing.From
And when master controller receives the image data that camera passes over be can achieve to have in shot region color compared to
The object of surrounding very different, can be by handling image in photograph generator terminal, so that the photo finally taken more closes
The purpose of reason.
On the other hand due to will use the algorithm (example of compressed data when transmitting data between the camera and master controller that have
If any the method using adjacent alike transmission difference, i.e. each pixel data only transmits the difference of itself and previous pixel), if
The smaller compression factor of picture material difference is higher between each pixel, transmits image data so camera can also be reduced
The effect of signal jump when to processor, reduction power consumption, raising image data efficiency of transmission ".
Below by way of a specific Application Example, the invention will be described in further detail:
It is a kind of concrete application embodiment flow chart of mobile terminal camera image data processing method of the present invention shown in Fig. 2,
Such as Fig. 2, mobile terminal camera image data processing method described in this concrete application embodiment is comprised the following steps that
S10, color exception is selected by user on the touchscreen, after selection, then by user input this be color be ratio
Around deep or shallow, then coordinate of the acquisition for mobile terminal at this;
Specifically, when camera by the image transmitting sensed to processor after, which will be shown to screen by processor
On, user then selects at this if it is considered to somewhere color exception in shown image, and indicate at this be color it is too deep or
It crosses shallowly, corresponding menu can be passed through in the method for the present invention and remind user's operation.
If at this being S20, color depths, before camera sends data to mobile terminal processor, make as follows
Processing:
B1, data to be transmitted are obtained, marks off N number of circle by radius is ascending using coordinate where color depths as the center of circle
Circle1, Circle2, Circle3 ..., CircleN, these circle radiuses be respectively R1, R2, R3 ..., RN.Pass through
This step B1 can be handled image in a manner of gradual change, be unlikely to too lofty.
B2, the pixel in the region Circle1 is uniformly processed, in Circle2 and in removing Circle1
Pixel be uniformly processed, in Circle3 and remove Circle2 in pixel be uniformly processed ... ..., it is right
It is uniformly processed in the pixel in CircleN and in removing CircleN-1;This step B2 can be to image with the side of gradual change
Formula is handled, and too lofty is unlikely to
B3, after having handled, by camera will treated that image data is transmitted to mobile terminal processor;
In this way, the image that the camera that processor receives transmits will think user before color is crossed depths and dealt with
Keep its display reasonable.On the other hand, since the data variation of transmission is small, camera can also be reduced and be transferred to image data
Signal jump when processor, reduces power consumption.
Wherein, the step B2, if the coordinate of color depths be (xBP, yBP), judge a pixel (x, y) whether
Method in some circle CircleX are as follows: if pixel (x, y) meets to the distance of (xBP, yBP) half less than CircleX
Diameter, then it is assumed that the pixel is located in CircleX, X 1,2 ..., N;
This step B3 can be handled image in a manner of gradual change, be unlikely to too lofty
Wherein, the step B2, is uniformly processed the pixel in the region Circle1, for the processing side of pixel
Method specifically includes the following steps:
The format of the data to be processed of E1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
E2, the Y value for all pixels point for meeting formula is handled: Y=Y-YBth1;
E3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein " Y " indicates brightness (Luminance, Luma) in yuv image, and " U " and " V " is then coloration, concentration
(Chrominance, Chroma);Here the picture material of a pixel is determined by UV, and Y is only used to indicate its light levels, because
This does not influence the change of Y the content of display itself, only plays the role of a light and shade and adjusts.
Wherein, the pixel in CircleN and in removing CircleN-1 is uniformly processed in the step B2, right
In pixel processing method specifically includes the following steps:
The format of the data to be processed of F1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
F2, by meet formula and the Y value of all pixels point handle: Y=Y-YBthN;
F3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein, YBth1 >=YBth2 >=YBth3 >=... >=YBthN;
Wherein " Y " indicates brightness (Luminance, Luma) in yuv image, and " U " and " V " is then coloration, concentration
(Chrominance, Chroma);Here the picture material of a pixel is determined by UV, and Y is only used to indicate its light levels, because
This does not influence the change of Y the content of display itself, only plays the role of a light and shade and adjusts.
If at this being S30, place of light color, before camera sends data to mobile terminal processor, make as follows
Processing:
C1, data to be transmitted are obtained, N number of circle is marked off by radius is ascending as the center of circle in coordinate using place of light color
Circle1, Circle2, Circle3 ..., CircleN, these circle radiuses be respectively R1, R2, R3 ..., RN, such as Fig. 2
It show example when N=3;
C2, the pixel in the region Circle1 is uniformly processed, for the picture in Circle2 and in removing Circle1
Vegetarian refreshments is uniformly processed, and the pixel in Circle3 and in removing Circle2 is uniformly processed ... ..., for
Pixel in CircleN and in removing CircleN-1 is uniformly processed;
C3, after having handled, image data to be transmitted is transmitted to mobile terminal processor;
In this way, the image that the camera that processor receives transmits will think user before color is crossed depths and dealt with
Keep its display reasonable.On the other hand, since the data variation of transmission is small, camera can also be reduced and be transferred to image data
Signal jump when processor, reduces power consumption.
Wherein, the step C2, if the coordinate at place of light color be (xBP, yBP), judge a pixel (x, y) whether
Method in some circle CircleX are as follows: if pixel (x, y) meets to the distance of (xBP, yBP) half less than CircleX
Diameter, then it is assumed that the pixel is located in CircleX, X 1,2 ..., N;
Image can be handled in a manner of gradual change, be unlikely to too lofty
Wherein, the step C2, is uniformly processed the pixel in the region Circle1, for the processing side of pixel
Method specifically includes the following steps:
The format of the data to be processed of G1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B
U = -0.147R - 0.289G + 0.436B
V = 0.615R - 0.515G - 0.100B
G2, the Y value for all pixels point for meeting formula is handled: Y=Y+YWth1;
G3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U。
Wherein " Y " indicates brightness (Luminance, Luma) in yuv image, and " U " and " V " is then coloration, concentration
(Chrominance, Chroma);Here the picture material of a pixel is determined by UV, and Y is only used to indicate its light levels, because
This does not influence the change of Y the content of display itself, only plays the role of a light and shade and adjusts.
Wherein, the pixel in CircleN and in removing CircleN-1 is uniformly processed in the step C2, right
In pixel processing method specifically includes the following steps:
The format of the data to be processed of H1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B
U = -0.147R - 0.289G + 0.436B
V = 0.615R - 0.515G - 0.100B
H2, by meet formula and the Y value of all pixels point handle: Y=Y+YWthN;
H3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V
G = Y - 0.39U - 0.58V
B = Y + 2.03U
Wherein, YWth1 >=YWth2 >=YWth3 >=... >=YWthN.
Wherein " Y " indicates brightness (Luminance, Luma) in yuv image, and " U " and " V " is then coloration, concentration
(Chrominance, Chroma);Here the picture material of a pixel is determined by UV, and Y is only used to indicate its light levels, because
This does not influence the change of Y the content of display itself, only plays the role of a light and shade and adjusts.
Therefore the present invention provides a kind of mobile terminal camera image data processing method, working as mobile terminal
It, can if detected to there is color compared to the object of very different around in shot region when being taken pictures using camera
So that the photo finally taken is relatively reasonable, on the other hand can also reduce by handling in photograph generator terminal image
Image data is transferred to signal jump when processor by camera, is reduced power consumption, is improved image data efficiency of transmission, is user
It provides convenience.
As shown in figure 3, being based on above-mentioned mobile terminal camera image data processing method, the present invention further correspondingly provides one
Kind mobile terminal, the mobile terminal can be the calculating such as mobile phone, desktop PC, notebook, palm PC and server
Equipment.The mobile terminal includes processor 10, memory 20 and display screen 30, and processor 10 passes through communication bus 50 and storage
Device 20 connects, and the display screen 30 is connect by communication bus 50 with processor 10.Fig. 2 illustrates only the part group of mobile terminal
Part, it should be understood that it is not required for implementing all components shown, more or less groups of the implementation that can be substituted
Part.
The memory 20 can be the internal storage unit of the mobile terminal in some embodiments, such as mobile whole
The memory at end.The memory 20 is also possible to the External memory equipment of the mobile terminal in further embodiments, such as
The plug-in type USB flash disk being equipped on the mobile terminal, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 20 can also both include
The internal storage unit of institute's mobile terminal also includes External memory equipment.The memory 20 is installed on the movement for storing
The application software and Various types of data of terminal, such as the program code etc. of the installation mobile terminal.The memory 20 can be with
For temporarily storing the data that has exported or will export.In one embodiment, it is stored on memory 20 mobile whole
Camera image data processing routine 40 is held, which can be held by processor 10
Row, to realize mobile terminal camera image data processing method in the application.
The processor 10 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), microprocessor, mobile phone baseband processor or other data processing chips, for running the journey stored in the memory 20
Sequence code or processing data, such as execute the mobile terminal camera image data processing method etc..
The display screen 30 can be LED display, liquid crystal display, touch liquid crystal display in some embodiments
And OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..The display screen 30 is used
In the information for being shown in the mobile terminal and for showing visual user interface.
In one embodiment, journey is handled when processor 10 executes mobile terminal camera image data in the memory 20
The step of any of the above-described embodiment the method is realized when sequence 40, as detailed above.
Based on the above embodiment, described computer-readable to deposit the present invention also provides a kind of computer readable storage medium
Storage media is stored with one or more program, and one or more of programs can be executed by one or more processor,
To realize the step in the mobile terminal camera image data processing method as described in above-mentioned any one, specific institute as above
It states.
In conclusion mobile terminal camera image data processing method provided by the invention, mobile terminal and storage are situated between
Matter, the title that the method passes through the All Files in acquisition destination folder;Obtain the lead-in of the title of the All Files
Symbol and last character;The All Files are classified according to the first, last character of title;Mobile terminal is set to increase new function:
The file in pressing from both sides to mobile terminal document is set to carry out a kind of classification, to facilitate user can be fast when needing to recall corresponding file
Speed is accurately obtained this document, to improve the acquisition efficiency of mobile terminal document, provides conveniently for user.
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method,
It is that related hardware (such as processor, controller etc.) can be instructed to complete by computer program, the program can store
In a computer-readable storage medium, which may include the process such as above-mentioned each method embodiment when being executed.Its
Described in storage medium can be for memory, magnetic disk, CD etc..
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of mobile terminal camera image data processing method, which comprises the steps of:
When mobile terminal is taken pictures using camera, detect to there is color to be greater than in shot region compared to difference around
The object of predetermined value is then positioned as being prompted at color exception and accordingly;
Acquisition for mobile terminal is according to the coordinate in region at the color exception of positioning;
According to the coordinate in region at the color exception got, corresponding compensation deals, compensation are carried out to region at color exception
Processing is the region compared to difference around less than predetermined value, and data are transmitted to mobile terminal processor by treated.
2. mobile terminal camera image data processing method according to claim 1, which is characterized in that described to color
Exception region carries out corresponding compensation deals, and compensation deals are the region for being less than predetermined value compared to difference around, and will place
The step of data after reason are transmitted to mobile terminal processor include:
If being color depths at this, before camera sends data to mobile terminal processor, it is handled as follows:
B1, the data for obtaining region at color exception to be transmitted, it is ascending by radius by the center of circle of coordinate where color depths
N number of round Circle1, Circle2, Circle3, CircleN are marked off, the radius of these circles is respectively R1, R2, R3, RN;
B2, the pixel in the region Circle1 is uniformly processed, for the picture in Circle2 and in removing Circle1
Vegetarian refreshments is uniformly processed, and the pixel in Circle3 and in removing Circle2 is uniformly processed, for CircleN
Pixel that is interior and removing in CircleN-1 is uniformly processed;
B3, after having handled, by camera will treated that image data is transmitted to mobile terminal processor.
3. mobile terminal camera image data processing method according to claim 2, which is characterized in that the step B2
Include: to set the coordinate of color depths as (xBP, yBP), judge a pixel (x, y) whether some circle CircleX in side
Method are as follows: if pixel (x, y) meets to the distance of (xBP, yBP) radius for being less than CircleX, then it is assumed that the pixel point
In in CircleX, X 1,2, N.
4. mobile terminal camera image data processing method according to claim 2, which is characterized in that the step B2
During pixel in the region Circle1 is uniformly processed, following step is specifically included for the processing method of pixel
It is rapid:
The format of the data to be processed of E1, camera is RGB, and pixel to be treated is converted to YUV by rgb format
Format, conversion formula are as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
E2, the Y value for all pixels point for meeting formula is handled: Y=Y-YBth1;
E3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U。
5. mobile terminal camera image data processing method according to claim 2, which is characterized in that the step B2
For in CircleN and remove CircleN-1 in pixel be uniformly processed in for pixel processing method have
Body the following steps are included:
The format of the data to be processed of F1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
F2, by meet formula and the Y value of all pixels point handle: Y=Y-YBthN;
F3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein, YBth1 >=YBth2 >=YBth3 >=YBthN.
6. mobile terminal camera image data processing method according to claim 1, which is characterized in that described to color
Exception region carries out corresponding compensation deals, and compensation deals are the region for being less than predetermined value compared to difference around, and will place
If it is place of light color that the step of data after reason are transmitted to mobile terminal processor, which includes: at this, in camera by data
Before being transmitted to mobile terminal processor, it is handled as follows:
C1, data to be transmitted are obtained, N number of circle is marked off by radius is ascending as the center of circle in coordinate using place of light color
The radius of Circle1, Circle2, Circle3, CircleN, these circles are respectively R1, R2, R3, RN;
C2, the pixel in the region Circle1 is uniformly processed, for the picture in Circle2 and in removing Circle1
Vegetarian refreshments is uniformly processed, and the pixel in Circle3 and in removing Circle2 is uniformly processed, for CircleN
Pixel that is interior and removing in CircleN-1 is uniformly processed;
C3, after having handled, image data to be transmitted is transmitted to mobile terminal processor.
7. mobile terminal camera image data processing method according to claim 6, which is characterized in that the step C2 is set
The coordinate at place of light color be (xBP, yBP), judge a pixel (x, y) whether some circle CircleX in method are as follows: such as
Fruit pixel (x, y) meets to the distance of (xBP, yBP) radius for being less than CircleX, then it is assumed that the pixel is located at CircleX
It is interior, X 1,2, N;
Wherein, the step C2, is uniformly processed the pixel in the region Circle1, for the processing side of pixel
Method specifically includes the following steps:
The format of the data to be processed of G1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
G2, the Y value for all pixels point for meeting formula is handled: Y=Y+YWth1;
G3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U。
8. mobile terminal camera image data processing method according to claim 6, which is characterized in that the step B2,
Pixel in CircleN and in removing CircleN-1 is uniformly processed, the processing method of pixel is specifically wrapped
Include following steps:
The format of the data to be processed of H1, camera is RGB, therefore pixel to be treated is converted by rgb format
For yuv format, conversion formula is as follows:
Y = 0.299R + 0.587G + 0.114B;
U = -0.147R - 0.289G + 0.436B;
V = 0.615R - 0.515G - 0.100B;
H2, by meet formula and the Y value of all pixels point handle: Y=Y+YWthN;
H3, processed pixel is converted into rgb format by yuv format, conversion formula is as follows:
R = Y + 1.14V;
G = Y - 0.39U - 0.58V;
B = Y + 2.03U;
Wherein, YWth1 >=YWth2 >=YWth3 >=... >=YWthN.
9. a kind of mobile terminal characterized by comprising processor, memory and communication bus;
Being stored on the memory can be by mobile terminal camera image data processing routine that the processor executes;
The communication bus realizes the connection communication between processor and memory;
The processor realizes any one of claim 1-8 institute when executing the mobile terminal camera image data processing routine
The step of stating method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints
Step in mobile terminal camera image data processing method described in meaning one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811129051.9A CN109151317A (en) | 2018-09-27 | 2018-09-27 | Mobile terminal camera image data processing method, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811129051.9A CN109151317A (en) | 2018-09-27 | 2018-09-27 | Mobile terminal camera image data processing method, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109151317A true CN109151317A (en) | 2019-01-04 |
Family
ID=64812789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811129051.9A Pending CN109151317A (en) | 2018-09-27 | 2018-09-27 | Mobile terminal camera image data processing method, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151317A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112230794A (en) * | 2020-10-10 | 2021-01-15 | 京东方科技集团股份有限公司 | Detection method, detection device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140002688A1 (en) * | 2012-07-02 | 2014-01-02 | Canon Kabushiki Kaisha | Image pickup apparatus and lens apparatus |
CN103531140A (en) * | 2013-10-18 | 2014-01-22 | Tcl通讯(宁波)有限公司 | Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels |
CN103618858A (en) * | 2013-12-09 | 2014-03-05 | Tcl通讯(宁波)有限公司 | Color correction method and device for mobile terminal camera |
CN106780480A (en) * | 2017-01-06 | 2017-05-31 | 惠州Tcl移动通信有限公司 | Automatic identification picture abnormal pixel processing method and system based on mobile terminal |
CN108280813A (en) * | 2018-01-30 | 2018-07-13 | 努比亚技术有限公司 | A kind of image processing method, terminal and computer readable storage medium |
-
2018
- 2018-09-27 CN CN201811129051.9A patent/CN109151317A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140002688A1 (en) * | 2012-07-02 | 2014-01-02 | Canon Kabushiki Kaisha | Image pickup apparatus and lens apparatus |
CN103531140A (en) * | 2013-10-18 | 2014-01-22 | Tcl通讯(宁波)有限公司 | Mobile terminal and method and system for repairing LCD (liquid crystal display) defective pixels |
CN103618858A (en) * | 2013-12-09 | 2014-03-05 | Tcl通讯(宁波)有限公司 | Color correction method and device for mobile terminal camera |
CN106780480A (en) * | 2017-01-06 | 2017-05-31 | 惠州Tcl移动通信有限公司 | Automatic identification picture abnormal pixel processing method and system based on mobile terminal |
CN108280813A (en) * | 2018-01-30 | 2018-07-13 | 努比亚技术有限公司 | A kind of image processing method, terminal and computer readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112230794A (en) * | 2020-10-10 | 2021-01-15 | 京东方科技集团股份有限公司 | Detection method, detection device, storage medium and electronic equipment |
CN112230794B (en) * | 2020-10-10 | 2024-04-09 | 京东方科技集团股份有限公司 | Detection method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452905B2 (en) | System and method for detecting objects in an image | |
CN104601971B (en) | Color adjustment method and device | |
US7859545B2 (en) | Image processing apparatus and image processing method | |
CN105609035B (en) | Image display device and method | |
CN110100251A (en) | For handling the equipment, method and graphic user interface of document | |
CN105940673B (en) | Image processing apparatus and image processing method | |
CN104967784B (en) | Mobile terminal calls the method and mobile terminal of the substrate features pattern of camera function | |
CN111164563B (en) | Image color adjusting system and color adjusting method of intelligent terminal | |
CN108337496A (en) | White balancing treatment method, processing unit, processing equipment and storage medium | |
CN105681775A (en) | White balance method and device | |
CN104660905A (en) | Shooting processing method and device | |
CN109151317A (en) | Mobile terminal camera image data processing method, mobile terminal and storage medium | |
CN111369431A (en) | Image processing method and device, readable medium and electronic equipment | |
US20090285477A1 (en) | Method and communication terminal for searching phone book for desired contacts | |
CN109194942A (en) | A kind of naked eye 3D video broadcasting method, terminal and server | |
CN103377473B (en) | A kind of image rearrangement and device | |
CN117692788A (en) | Image processing method and electronic equipment | |
CN104639924A (en) | Method for reducing degree of dependence on device pixel to improve color value precision | |
CN105740820B (en) | Method and system for acquiring picture for discrimination | |
CN108093249A (en) | Image processing method and device | |
US8498332B2 (en) | Chroma supression features | |
CN104811622B (en) | Image color implantation method and device | |
US20190156469A1 (en) | Image processing method and image processor performing the same | |
US10200571B2 (en) | Displaying an adjusted image according to ambient light conditions | |
CN104021579A (en) | Method and device for changing colors of image |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |