CN105959540A - Mobile terminal processing method and mobile terminal processing device - Google Patents

Mobile terminal processing method and mobile terminal processing device Download PDF

Info

Publication number
CN105959540A
CN105959540A CN201610305425.2A CN201610305425A CN105959540A CN 105959540 A CN105959540 A CN 105959540A CN 201610305425 A CN201610305425 A CN 201610305425A CN 105959540 A CN105959540 A CN 105959540A
Authority
CN
China
Prior art keywords
making
capture apparatus
grey decision
field picture
primary colors
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
Application number
CN201610305425.2A
Other languages
Chinese (zh)
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610305425.2A priority Critical patent/CN105959540A/en
Publication of CN105959540A publication Critical patent/CN105959540A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention provides a mobile terminal processing method and a mobile terminal processing device. The method comprises the steps of acquiring at least one frame of image through shooting equipment within a preset time after the shooting equipment of a mobile terminal is opened, acquiring the grayscale value of the three primary colors of each pixel in the image, and judging whether or not to close the shooting equipment according to the grayscale value. According to the invention, at least one frame of image is acquired within a preset time after the shooting equipment of a mobile terminal is opened, the grayscale value of the three primary colors of each pixel in the image is acquired, whether the shooting equipment is opened by mistake is judged according to the grayscale value, and thus, whether or not to close the shooting equipment is determined. Therefore, the problem that a mobile terminal loses power fast due to mistaken opening of the shooting equipment is avoided, and great convenience is brought to users.

Description

The processing method of mobile terminal and device
Technical field
The present invention relates to terminal technology, particularly relate to processing method and the device of a kind of mobile terminal.
Background technology
Along with the progress of science and technology, various mobile terminals have become as requisite instrument in popular daily life, such as Mobile phone, notebook computer, drive recorder etc..It is typically provided with capture apparatus on these mobile terminals, takes pictures for user Or shooting.
In prior art, certain button on mobile terminal is arranged to be used for opening the shortcut of capture apparatus, in order to Open in user.But, there will be the situation that capture apparatus is opened by mistake, such as mobile phone sometimes, generally carry-on by user Carry, in mobile phone is placed on clothes or in bag, can open on mobile phone owing to touching shortcut unintentionally sometimes Capture apparatus, but now user is not aware that.Owing to the power consumption of capture apparatus is very big, so there will be the electricity of mobile terminal The problem that amount loss is fast.
Summary of the invention
The present invention provides processing method and the device of a kind of mobile terminal, is missed due to capture apparatus solving prior art Open the problem that the power loss of the mobile terminal caused is fast.
First aspect of the present invention provides the processing method of a kind of mobile terminal, including:
In Preset Time after the capture apparatus of mobile terminal is unlocked, obtain at least one frame by described capture apparatus Image;
Obtain the trichromatic grey decision-making of each pixel in described image;
Judge whether to close described capture apparatus according to described grey decision-making.
Another aspect of the invention provides the processing means of a kind of mobile terminal, including:
First acquisition module, in the Preset Time after the capture apparatus of mobile terminal is unlocked, by described bat Equipment of taking the photograph obtains at least one two field picture;
Second acquisition module, for obtaining the trichromatic grey decision-making of each pixel in described image;
Judge module, for judging whether to close described capture apparatus according to described grey decision-making.
As shown from the above technical solution, the processing method of the mobile terminal that the present invention provides and device, mobile by obtaining The capture apparatus of terminal open after Preset Time at least one two field picture, and each pixel in the image obtained by obtaining Trichromatic grey decision-making, in order to judge whether capture apparatus is opened by mistake by this grey decision-making and open, and then determine whether that closedown should Capture apparatus, so it can be avoided that open, owing to capture apparatus opens by mistake, the problem causing mobile terminal power loss fast, carries to user Carry out great convenience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Figure 1A is the schematic flow sheet of the processing method of the mobile terminal according to one embodiment of the invention;
Figure 1B is the schematic diagram of selection information;
Fig. 2 is the schematic flow sheet of the processing method of the mobile terminal according to another embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the processing method of the mobile terminal according to further embodiment of this invention;
Fig. 4 A is the structural representation of the processing means of the mobile terminal according to one embodiment of the invention;
Fig. 4 B is the structural representation of the processing means of the mobile terminal according to another embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
When the capture apparatus of mobile terminal is opened by mistake, it is usually and capture apparatus is placed in bag or the pocket of user Time, due to almost without light, now by all pixels of the image acquired in the camera lens of capture apparatus be black or Close to black, even if there being light, due to capture apparatus camera lens from object very close to, acquired in the camera lens of capture apparatus In image, the color of each pixel is all identical, owing to color is relevant to trichromatic grey decision-making, therefore, it can by analyzing In image, the trichromatic grey decision-making of each pixel judges whether capture apparatus is opened by mistake.
The most how to judge whether capture apparatus is missed by the trichromatic grey decision-making of each pixel in analysis image Opened a variety of mode, such as by the meansigma methods of the grey decision-making of primary colors each in each two field picture determine capture apparatus whether by Open by mistake, or by the grey decision-making of primary colors each in each two field picture and determine whether capture apparatus is opened by mistake, also may be used Determining whether capture apparatus is opened by mistake with the rectangular histogram by each two field picture, concrete mode has a lot.To do below into one Step illustrates.
Embodiment one
The present embodiment provides the processing method of a kind of mobile terminal, for processing opening of the capture apparatus of mobile terminal by mistake Situation.The executive agent of the present embodiment is the processing means of mobile terminal, and this processing means can be arranged in the terminal, also Can be separately provided, specifically can set according to actual needs.
As shown in Figure 1A, for the schematic flow sheet of the processing method according to the present embodiment.This processing method includes:
Step 101, in the Preset Time after the capture apparatus of mobile terminal is unlocked, is obtained at least by capture apparatus One two field picture.
The mobile terminal of the present embodiment can be the portable terminal device such as mobile phone, IPad.Capture apparatus can pass through mobile terminal Upper default pressing switch to open, such as, opened by the click mode such as shortcut, icon.The Preset Time of the present embodiment can basis It is actually needed setting, such as 3 seconds, 5 seconds etc..
When processing means identifies after the capture apparatus of mobile terminal is unlocked, just obtained by the camera lens of capture apparatus and work as Front image carries out subsequent analysis operation.It is noted that image acquired in this operation can be not preserved in mobile terminal, Use only for subsequent analysis.
For example, in 3 seconds, processing means obtains multiframe image to be analyzed by capture apparatus, can at random or Person selects at least one two field picture according to preset rules from this multiframe image to be analyzed, or obtains many according to prefixed time interval Two field picture, such as, obtained a two field picture every 1 second, can obtain 3 two field pictures, this 3 two field picture is temporarily stored in caching in 3 seconds In, the image after pending method completes, acquired in deletion.
Step 102, obtains the trichromatic grey decision-making of each pixel in image.
Three primary colors i.e. red primaries, green primary color and blue primary, all colours all can be obtained by the mixing of this three primary colors.Specifically Ground, the scope of the grey decision-making of each primary colors is all 0 GTG-255 GTG, and the trichromatic grey decision-making mixed by adjustment just can Obtain different colors.
The color of each pixel in image, is also mixed to form by this three primary colors.Specifically how to obtain pixel Trichromatic grey decision-making belongs to prior art, does not repeats them here.
Step 103, judges whether to close capture apparatus according to grey decision-making.
For example, mobile phone is placed in bag by user, and due to walking about of user, other object in bag touches on mobile phone For opening the shortcut of capture apparatus, it is completely black or close to black now by the image acquired in capture apparatus.This Sample, if according to the processing method of the present embodiment identify 3 seconds within the GTG of each primary colors of all pixels of image of all frames Value is 0, then can determine that this capture apparatus is opened by mistake, need to close this capture apparatus;Or every two field picture is each The grey decision-making of the same primary color of pixel is the most equal, it is also possible to judge that this capture apparatus is opened by mistake, needs to close this shooting and sets Standby.It is, of course, also possible to judge each picture by arranging the grey decision-making of each primary colors of each pixel in the same two field picture of capture apparatus The color of element, and then determine whether capture apparatus is opened by mistake by the color of relatively each pixel.It is, of course, also possible to by it According to grey decision-making, its mode judges whether capture apparatus is opened by mistake and opens, if the determination result is YES, then close this capture apparatus.
It is noted that in order to avoid the situation of erroneous judgement, can by display selection information to allow user select, And then avoid making troubles to user owing to closing capture apparatus by mistake.Such as, user is just intended to shoot at night, this Time, after processing means gets image by the photographic head of capture apparatus, after judging need to close capture apparatus, Ke Yixian Show for reminding whether user closes the selection information of capture apparatus, if selection information 111 user as shown in Figure 1B clicks on "No" button 112, then it represents that do not cut out capture apparatus, capture apparatus receives user and does not closes bat according to what selection information sent After taking the photograph the instruction of equipment, terminating operation, the most do not close capture apparatus, next user can use this shooting to set according to normal Standby.If identifying and not receiving the instruction that user sends according to selection information in Preset Time threshold value, then close shooting and set Standby, i.e. this capture apparatus is actually opened by mistake, and user is ignorant, thus without going to click on selection information, so processes Device further confirms that out that this capture apparatus is opened by mistake, closes this capture apparatus.
According to the present embodiment, at least one frame figure in Preset Time after being opened by the capture apparatus of acquisition mobile terminal The trichromatic grey decision-making of each pixel in image obtained by picture, and acquisition, in order to judge that shooting sets by this grey decision-making Standby whether being opened by mistake is opened, and then determines whether to close this capture apparatus, so it can be avoided that cause owing to capture apparatus opens by mistake to open The problem that mobile terminal power loss is fast, brings great convenience to user.
Embodiment two
The processing method of embodiment one is done supplementary notes further by the present embodiment.In the present embodiment, if mainly to root Judge whether that closing capture apparatus illustrates according to grey decision-making.
As in figure 2 it is shown, be the schematic flow sheet of the processing method according to the present embodiment.This processing method includes:
Step 201, in the Preset Time after the capture apparatus of mobile terminal is unlocked, is obtained at least by capture apparatus One two field picture.
The mobile terminal of the present embodiment can be the portable terminal device such as mobile phone, IPad.Capture apparatus can pass through mobile terminal Upper default pressing switch to open, such as, opened by the click mode such as shortcut, icon.The Preset Time of the present embodiment can basis It is actually needed setting, such as 3 seconds, 5 seconds etc..
When processing means identifies after the capture apparatus of mobile terminal is unlocked, just obtained by the camera lens of capture apparatus and work as Front image carries out subsequent analysis operation.It is noted that image acquired in this operation can be not preserved in mobile terminal, Use only for subsequent analysis.
For example, in 3 seconds, processing means obtains multiframe image to be analyzed by capture apparatus, can at random or Person selects at least one two field picture according to preset rules from this multiframe image to be analyzed, or obtains many according to prefixed time interval Two field picture, such as, obtained a two field picture every 1 second, can obtain 3 two field pictures, this 3 two field picture is temporarily stored in caching in 3 seconds In, the image after pending method completes, acquired in deletion.
Step 202, obtains the trichromatic grey decision-making of each pixel in image.
Three primary colors i.e. red primaries, green primary color and blue primary, all colours all can be obtained by the mixing of this three primary colors.Specifically Ground, the scope of the grey decision-making of each primary colors is all 0 GTG-255 GTG, and the trichromatic grey decision-making mixed by adjustment just can Obtain different colors.
The color of each pixel in image, is also mixed to form by this three primary colors.Specifically how to obtain pixel Trichromatic grey decision-making belongs to prior art, does not repeats them here.
Step 203, obtains the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture.
Grey decision-making flat of the trichromatic each primary colors that belong to same two field picture specifically can be obtained according to equation below Average:
R ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 R ( i , j ) h * w , G ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 G ( i , j ) h * w , B ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 B ( i , j ) h * w ;
Wherein, i is the pixel of the i-th row, and j is the pixel of jth row, and h is the number of pixel on column direction, and w is on line direction The number of pixel,For the meansigma methods of the grey decision-making of red primaries,For the meansigma methods of the grey decision-making of green primary color,For blue primary The meansigma methods of grey decision-making, (i, j) is the grey decision-making of red primaries of the i-th row jth row pixel to R, and (i j) is the picture of the i-th row jth row to G The grey decision-making of green primary color of element, (i j) is the grey decision-making of blue primary of pixel of the i-th row jth row to B.
In this step, first obtain the grey decision-making sum of the red primaries of each pixel in same two field picture, the GTG of green primary color Value sum and the grey decision-making sum of blue primary, h*w is then equal to the number of the pixel in this image, in such manner, it is possible to be somebody's turn to do The meansigma methods of the grey decision-making of each primary colors that image is corresponding.
Step 204, if meansigma methods be equal to 0 or meansigma methods with 0 difference all in predetermined threshold value time, close shooting set Standby.
If the meansigma methods of all primary colors is 0 in same two field picture, all black of color of this two field picture is described, or With 0 difference in predetermined threshold value time, this predetermined threshold value for example, 1 GTG, or 5 GTGs, or 10 GTGs, then this two field picture Color close to black.Generally, though user want shoot night scene, by the two field picture acquired in camera lens extremely The color of rare partial pixel is not black, so, if the color of all pixels is black or close to black in a two field picture, Then can be concluded that this two field picture is likely to be capture apparatus and opens by mistake and obtain afterwards, and then determine that this capture apparatus is to open by mistake , it should close.
In order to ensure to judge whether capture apparatus is the accuracy opening situation by mistake, can obtain in step 201 Multiple image, and then this step 204 can obtain in every two field picture the trichromatic each primary colors belonging to same two field picture The meansigma methods of grey decision-making, if being all 0 GTG or close to 0 GTG, then may determine that this capture apparatus is opened by mistake, it is judged that The accuracy of the trichromatic grey decision-making of the pixel of multiple image is higher than the trichromatic grey decision-making of the pixel judging a two field picture.
Alternatively, processing means determine need to close capture apparatus time, on screen display be used for whether reminding user The selection information of closedown capture apparatus, and then avoid the occurrence of the situation of erroneous judgement, concrete mode is consistent with embodiment one, at this not Repeat again.
According to the present embodiment, at least one frame figure in Preset Time after being opened by the capture apparatus of acquisition mobile terminal The trichromatic grey decision-making of each pixel in image obtained by picture, and acquisition, if each pixel of same two field picture is each former The meansigma methods of the grey decision-making of color is 0 or close to 0, then may determine that this capture apparatus is opened by mistake and open, and then determines and need this pass Close capture apparatus, so it can be avoided that open the problem causing mobile terminal power loss fast, to user owing to capture apparatus opens by mistake Bring great convenience.
Embodiment three
The processing method of embodiment one is done supplementary notes further by the present embodiment.In the present embodiment, if mainly to root Judge whether that closing capture apparatus illustrates according to grey decision-making.
As it is shown on figure 3, be the schematic flow sheet of the processing method according to the present embodiment.This processing method includes:
Step 301, in the Preset Time after the capture apparatus of mobile terminal is unlocked, is obtained at least by capture apparatus One two field picture.
The mobile terminal of the present embodiment can be the portable terminal device such as mobile phone, IPad.Capture apparatus can pass through mobile terminal Upper default pressing switch to open, such as, opened by the click mode such as shortcut, icon.The Preset Time of the present embodiment can basis It is actually needed setting, such as 3 seconds, 5 seconds etc..
When processing means identifies after the capture apparatus of mobile terminal is unlocked, just obtained by the camera lens of capture apparatus and work as Front image carries out subsequent analysis operation.It is noted that image acquired in this operation can be not preserved in mobile terminal, Use only for subsequent analysis.
For example, in 3 seconds, processing means obtains multiframe image to be analyzed by capture apparatus, can at random or Person selects at least one two field picture according to preset rules from this multiframe image to be analyzed, or obtains many according to prefixed time interval Two field picture, such as, obtained a two field picture every 1 second, can obtain 3 two field pictures, this 3 two field picture is temporarily stored in caching in 3 seconds In, the image after pending method completes, acquired in deletion.
Step 302, obtains the trichromatic grey decision-making of each pixel in image.
Three primary colors i.e. red primaries, green primary color and blue primary, all colours all can be obtained by the mixing of this three primary colors.Specifically Ground, the scope of the grey decision-making of each primary colors is all 0 GTG-255 GTG, and the trichromatic grey decision-making mixed by adjustment just can Obtain different colors.
The color of each pixel in image, is also mixed to form by this three primary colors.Specifically how to obtain pixel Trichromatic grey decision-making belongs to prior art, does not repeats them here.
Step 303, obtains the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture.
Grey decision-making flat of the trichromatic each primary colors that belong to same two field picture specifically can be obtained according to equation below Average:
R ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 R ( i , j ) h * w , G ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 G ( i , j ) h * w , B ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 B ( i , j ) h * w ;
Wherein, i is the pixel of the i-th row, and j is the pixel of jth row, and h is the number of pixel on column direction, and w is on line direction The number of pixel,For the meansigma methods of the grey decision-making of red primaries,For the meansigma methods of the grey decision-making of green primary color,For blue primary The meansigma methods of grey decision-making, (i, j) is the grey decision-making of red primaries of the i-th row jth row pixel to R, and (i j) is the picture of the i-th row jth row to G The grey decision-making of green primary color of element, (i j) is the grey decision-making of blue primary of pixel of the i-th row jth row to B.
In this step, first obtain the grey decision-making sum of the red primaries of each pixel in same two field picture, the GTG of green primary color Value sum and the grey decision-making sum of blue primary, h*w is then equal to the number of the pixel in this image, in such manner, it is possible to be somebody's turn to do The meansigma methods of the grey decision-making of each primary colors that image is corresponding.
Step 304, if meansigma methods with 0 difference more than predetermined threshold value, then obtain the GTG of each primary colors in same two field picture Value and value.
That specifically can obtain the grey decision-making of each primary colors in same two field picture according to equation below and value:
S u m _ R = Σ i = 0 h - 1 Σ j = 0 w - 1 | R ( i , j ) - R ‾ | , S u m _ G = Σ i = 0 h - 1 Σ j = 0 w - 1 | G ( i , j ) - G ‾ | , S u m _ B = Σ i = 0 h - 1 Σ j = 0 w - 1 | B ( i , j ) - B ‾ |
Wherein, Sum_R be the grey decision-making of red primaries and value, Sum_G be the grey decision-making of green primary color and value, Sum_B is The grey decision-making of blue primary and value.
Specifically, the average of the primary colors that in same frame, the grey decision-making of each primary colors of each pixel is corresponding with step 303 is obtained The absolute value of difference of value, so obtain each primary colors grey decision-making and value.
Step 305, if belonging to the most corresponding with value of the grey decision-making of each primary colors of each pixel of same two field picture Predetermined threshold value, then close capture apparatus.
For example, in the case of having light, if capture apparatus is opened by mistake, then by the camera lens institute of capture apparatus In the image obtained, the color of each pixel is almost consistent, and the grey decision-making of the same primary color of the most each pixel is the most close, So, the grey decision-making of each primary colors of each pixel is also closer to meansigma methods, and difference can be 0 or close to 0, difference absolute The numerical value of the summation of value also can be less.Therefore, it can be belonged to the GTG of each primary colors of each pixel of same two field picture by judgement Whether be worth and value is respectively less than each self-corresponding predetermined threshold value, judges whether this capture apparatus is opened by mistake and opens, if sentenced The grey decision-making of each primary colors of each pixel to belong to same two field picture of breaking and value respectively less than each self-corresponding predetermined threshold value, then say This capture apparatus bright is opened by mistake to be opened, it should close.
In order to ensure to judge whether capture apparatus is the accuracy opening situation by mistake, can obtain in step 301 Multiple image, and then this step can obtain in every two field picture the GTG of the trichromatic each primary colors belonging to same two field picture The meansigma methods of value, so when that obtain the grey decision-making of each primary colors in same two field picture and value, can obtain in every two field picture and belong to In same two field picture each primary colors grey decision-making and value.If every two field picture belongs to the grey decision-making of each primary colors of same two field picture And value be respectively less than each self-corresponding predetermined threshold value, then can more accurately determine that this capture apparatus is opened by mistake and open.
Alternatively, processing means determine need to close capture apparatus time, on screen display be used for whether reminding user The selection information of closedown capture apparatus, and then avoid the occurrence of the situation of erroneous judgement, concrete mode is consistent with embodiment one, at this not Repeat again.
According to the present embodiment, at least one frame figure in Preset Time after being opened by the capture apparatus of acquisition mobile terminal The trichromatic grey decision-making of each pixel in image obtained by picture, and acquisition, if belonging to each of each pixel of same two field picture Primary colors and value be respectively less than each self-corresponding predetermined threshold value, then may determine that this capture apparatus is opened by mistake and open, so determine need close Close this capture apparatus, so it can be avoided that open, owing to capture apparatus opens by mistake, the problem causing mobile terminal power loss fast, give and use Family brings great convenience.
Embodiment four
The present embodiment provides the processing means of a kind of mobile terminal, for performing the processing method of embodiment one.
As shown in Figure 4 A, for the structural representation of processing means of the mobile terminal according to the present embodiment.This processing means Including the first acquisition module the 401, second acquisition module 402 and judge module 403.
Wherein, the first acquisition module 401, in the Preset Time after the capture apparatus of mobile terminal is unlocked, passes through Capture apparatus obtains at least one two field picture;Second acquisition module 402 is for obtaining the trichromatic GTG of each pixel in image Value;Judge module 403 is for judging whether to close capture apparatus according to grey decision-making.
Alternatively, first acquisition module 401 of the present embodiment specifically for:
Multiple image is obtained according to prefixed time interval by capture apparatus.
Alternatively, as shown in Figure 4 B, the processing means of the present embodiment also includes prompting module 410, and this prompting module 410 is used In:
After judging to close capture apparatus, display is for reminding whether user closes the selection letter of capture apparatus Breath;
If receiving the instruction not closing capture apparatus that user sends according to selection information, then terminate operation.
Specifically, prompting module 410 can be triggered by judge module 403 after judging to close capture apparatus.
Alternatively, this prompting module 410 is additionally operable to:
In Preset Time threshold value, do not receive, if identifying, the instruction that user sends according to selection information, then close bat Take the photograph equipment.
About the device in the present embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment is described in detail, explanation will be not set forth in detail herein.
According to the present embodiment, at least one frame figure in Preset Time after being opened by the capture apparatus of acquisition mobile terminal The trichromatic grey decision-making of each pixel in image obtained by picture, and acquisition, in order to judge that shooting sets by this grey decision-making Standby whether being opened by mistake is opened, and then determines whether to close this capture apparatus, so it can be avoided that cause owing to capture apparatus opens by mistake to open The problem that mobile terminal power loss is fast, brings great convenience to user.
Embodiment five
The processing means of embodiment four is done supplementary notes further by the present embodiment, and judge module is mainly done by the present embodiment Further illustrate.
The judge module of the present embodiment specifically for:
Obtain the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture.
Specifically, this judge module can obtain the trichromatic each primary colors belonging to same two field picture according to equation below The meansigma methods of grey decision-making:
R ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 R ( i , j ) h * w , G ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 G ( i , j ) h * w , B ‾ = Σ i = 0 h - 1 Σ j = 0 w - 1 B ( i , j ) h * w ;
Wherein, i is the pixel of the i-th row, and j is the pixel of jth row, and h is the number of pixel on column direction, and w is on line direction The number of pixel,For the meansigma methods of the grey decision-making of red primaries,For the meansigma methods of the grey decision-making of green primary color,For blue primary The meansigma methods of grey decision-making, (i, j) is the grey decision-making of red primaries of the i-th row jth row pixel to R, and (i j) is the picture of the i-th row jth row to G The grey decision-making of green primary color of element, (i j) is the grey decision-making of blue primary of pixel of the i-th row jth row to B;
If meansigma methods be equal to 0 or meansigma methods with 0 difference all in predetermined threshold value time, close capture apparatus.
Alternatively, it is judged that module belongs to trichromatic each primary colors of same two field picture specifically for obtaining in every two field picture The meansigma methods of grey decision-making.
Alternatively, if meansigma methods with 0 difference more than predetermined threshold value, then obtain the grey decision-making of each primary colors in same two field picture And value.Concrete, the grey decision-making of each primary colors in same two field picture can be obtained according to equation below and value:
S u m _ R = Σ i = 0 h - 1 Σ j = 0 w - 1 | R ( i , j ) - R ‾ | , S u m _ G = Σ i = 0 h - 1 Σ j = 0 w - 1 | G ( i , j ) - G ‾ | , S u m _ B = Σ i = 0 h - 1 Σ j = 0 w - 1 | B ( i , j ) - B ‾ |
Wherein, Sum_R be the grey decision-making of red primaries and value, Sum_G be the grey decision-making of green primary color and value, Sum_B is The grey decision-making of blue primary and value;
If belong to the grey decision-making of each primary colors of each pixel of same two field picture is respectively less than each self-corresponding default threshold with value Value, then close capture apparatus.
Alternatively, it is judged that module is specifically for obtaining the grey decision-making of each primary colors belonging to same two field picture in every two field picture And value.
About the device in the present embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment is described in detail, explanation will be not set forth in detail herein.
According to the present embodiment, at least one frame figure in Preset Time after being opened by the capture apparatus of acquisition mobile terminal The trichromatic grey decision-making of each pixel in image obtained by picture, and acquisition, if each pixel of same two field picture is each former The meansigma methods of the grey decision-making of color is 0 or close to 0, then may determine that this capture apparatus is opened by mistake and open, and then determines and need this pass Closing capture apparatus, not being 0 or in the case of keeping off 0 in meansigma methods, if belonging to each primary colors of each pixel of same two field picture And value be respectively less than each self-corresponding predetermined threshold value, then may determine that this capture apparatus is opened by mistake and open, and then determine and need to close this Capture apparatus, so it can be avoided that open, owing to capture apparatus opens by mistake, the problem causing mobile terminal power loss fast, carries to user Carry out great convenience.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in a computer read/write memory medium, this program Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or light The various medium that can store program code such as dish.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the processing method of a mobile terminal, it is characterised in that including:
In Preset Time after the capture apparatus of mobile terminal is unlocked, obtain at least one frame figure by described capture apparatus Picture;
Obtain the trichromatic grey decision-making of each pixel in described image;
Judge whether to close described capture apparatus according to described grey decision-making.
Processing method the most according to claim 1, it is characterised in that described according to described grey decision-making judge whether close institute State capture apparatus to include:
Obtain the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture;
If described meansigma methods be equal to 0 or meansigma methods with 0 difference all in predetermined threshold value time, close described capture apparatus.
Processing method the most according to claim 2, it is characterised in that described acquisition belongs to the trichromatic of same two field picture The meansigma methods of the grey decision-making of each primary colors includes:
Obtain the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture in every two field picture.
Processing method the most according to claim 2, it is characterised in that also include:
If described meansigma methods with 0 difference more than predetermined threshold value, then obtain the grey decision-making of each primary colors in same two field picture and value;
If belong to the grey decision-making of each primary colors of each pixel of same two field picture is respectively less than each self-corresponding predetermined threshold value, then with value Close described capture apparatus.
Processing method the most according to claim 4, it is characterised in that the GTG of each primary colors in the same two field picture of described acquisition Including with value of value:
Obtain each primary colors belonging to same two field picture in every two field picture grey decision-making and value.
6. according to the processing method according to any one of claim 1-5, it is characterised in that obtained extremely by described capture apparatus A few two field picture includes:
Multiple image is obtained according to prefixed time interval by described capture apparatus.
7. the processing means of a mobile terminal, it is characterised in that including:
First acquisition module, in the Preset Time after the capture apparatus of mobile terminal is unlocked, is set by described shooting Standby acquisition at least one two field picture;
Second acquisition module, for obtaining the trichromatic grey decision-making of each pixel in described image;
Judge module, for judging whether to close described capture apparatus according to described grey decision-making.
Processing means the most according to claim 7, it is characterised in that described judge module specifically for:
Obtain the meansigma methods of the grey decision-making of the trichromatic each primary colors belonging to same two field picture;
If described meansigma methods be equal to 0 or meansigma methods with 0 difference all in predetermined threshold value time, close described capture apparatus.
Processing means the most according to claim 8, it is characterised in that described judge module is additionally operable to:
If described meansigma methods with 0 difference more than predetermined threshold value, then obtain the grey decision-making of each primary colors in same two field picture and value;
If belong to the grey decision-making of each primary colors of each pixel of same two field picture is respectively less than each self-corresponding predetermined threshold value, then with value Close described capture apparatus.
10. according to the processing means according to any one of claim 7-9, it is characterised in that described first acquisition module is concrete For:
Multiple image is obtained according to prefixed time interval by described capture apparatus.
CN201610305425.2A 2016-05-10 2016-05-10 Mobile terminal processing method and mobile terminal processing device Pending CN105959540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610305425.2A CN105959540A (en) 2016-05-10 2016-05-10 Mobile terminal processing method and mobile terminal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610305425.2A CN105959540A (en) 2016-05-10 2016-05-10 Mobile terminal processing method and mobile terminal processing device

Publications (1)

Publication Number Publication Date
CN105959540A true CN105959540A (en) 2016-09-21

Family

ID=56914511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610305425.2A Pending CN105959540A (en) 2016-05-10 2016-05-10 Mobile terminal processing method and mobile terminal processing device

Country Status (1)

Country Link
CN (1) CN105959540A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040715A (en) * 2016-12-30 2017-08-11 维沃移动通信有限公司 The method of automatic closing camera a kind of and apply its mobile terminal
CN107426415A (en) * 2017-06-19 2017-12-01 深圳天珑无线科技有限公司 Close the method for image input component, intelligent terminal and there is store function device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204246A1 (en) * 2011-09-02 2014-07-24 Nikon Corporation Image processing device and program
CN104038698A (en) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 Background photographing method and device
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device
CN105162986A (en) * 2015-09-28 2015-12-16 Tcl移动通信科技(宁波)有限公司 Method and system for turning on/off screen through front-facing camera for mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204246A1 (en) * 2011-09-02 2014-07-24 Nikon Corporation Image processing device and program
CN104243790A (en) * 2013-06-19 2014-12-24 深圳富泰宏精密工业有限公司 Method and system for turning off camera unit of electronic device
CN104038698A (en) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 Background photographing method and device
CN105162986A (en) * 2015-09-28 2015-12-16 Tcl移动通信科技(宁波)有限公司 Method and system for turning on/off screen through front-facing camera for mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040715A (en) * 2016-12-30 2017-08-11 维沃移动通信有限公司 The method of automatic closing camera a kind of and apply its mobile terminal
CN107426415A (en) * 2017-06-19 2017-12-01 深圳天珑无线科技有限公司 Close the method for image input component, intelligent terminal and there is store function device

Similar Documents

Publication Publication Date Title
CN103916589B (en) Method for running video camera and its electronic equipment
US8929680B2 (en) Method, apparatus and system for identifying distracting elements in an image
CN101520842B (en) Information processing apparatus, eye open/closed degree determination method and image sensing apparatus
CN104536771B (en) According to the icon sequencing display method and system of Icon Color
US20070281734A1 (en) Method, system and apparatus for handset screen analysis
CN106375596A (en) Apparatus and method for prompting focusing object
CN101609660A (en) Digital frame, the information processing system control method of unifying
CN106165391A (en) The image capturing strengthened
CN102014251A (en) Image processing apparatus and image processing method
KR20180038241A (en) Apparatus and method for providing image
CN105892612A (en) Method and apparatus for powering off terminal
CN107798314A (en) Skin color detection method and device
CN106713696A (en) Image processing method and device
CN105894042A (en) Method and apparatus for detecting whether document image is covered
CN104050645A (en) Image processing method and device
CN112560649A (en) Behavior action detection method, system, equipment and medium
CN105528765A (en) Method and device for processing image
US20070013957A1 (en) Photographing device and method using status indicator
CN108062554A (en) A kind of recognition methods of vehicle annual inspection label color and device
CN105957037A (en) Image enhancing method and image enhancing device
CN104731545B (en) A kind of multimedia file multiple terminals collaboration display methods, apparatus and system
CN105959540A (en) Mobile terminal processing method and mobile terminal processing device
CN103543916A (en) Information processing method and electronic equipment
CN105812668A (en) Image processing method, processing device and photographing apparatus
US20100259640A1 (en) Digital image capture device and digital image processing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160921