The content of the invention
It is an object of the invention to provide one kind control camera photographic method and mobile terminal, solves mobile terminal batAccording to efficiency comparison it is low the problem of.
In order to achieve the above object, the embodiment of the present invention provides a kind of control camera photographic method, including:
The startup that mobile terminal receives user's input is taken pictures the enabled instruction of application;
The mobile terminal starts front camera and rear camera according to the enabled instruction, and identifiesOnce close the camera used when taking pictures application;
The mobile terminal will be that last close uses when taking pictures application in the front camera and rear cameraThe image of camera collection carry out preview, and identify the image of another camera collection;
The mobile terminal judges whether the image of front camera and the rear camera collection meets to preset respectivelyCondition, meet that the image that the camera of the preparatory condition gathers carries out preview according to judged result selection, and close and be unsatisfactory forThe camera of the preparatory condition.
Preferably, methods described also includes:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and identify the common images feature for the image that the target type includes, andUsing the common images feature as the preparatory condition;
The mobile terminal judges whether the image of front camera and the rear camera collection meets to preset respectivelyCondition, including:
It is described that the mobile terminal judges whether the image of front camera and the rear camera collection includes respectivelyCommon images feature, wherein, the camera that the image of collection is included to the common images feature determines to meet the default barPart.
Preferably, methods described also includes:
Number of clicks and preview time of the mobile terminal records user to each image in described image storehouse;
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and identify the common images feature for the image that the target type includes, andUsing the common images feature as the preparatory condition, including:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and during to the image that the target type includes according to number of clicks and previewBetween be ranked up, N images are as target image before selected and sorted, and identify the common images feature of the target image, andUsing the common images feature as the preparatory condition, the N is more than 2 integers.
Preferably, methods described also includes:
The location of described mobile terminal during every image photographic in the mobile terminal records described image storehouse;
The mobile terminal identifies the current location of the mobile terminal when receiving the enabled instruction;
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and during to the image that the target type includes according to number of clicks and previewBetween be ranked up, N images are as target image before selected and sorted, and identify the common images feature of the target image, andUsing the common images feature as the preparatory condition, including:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, calculate the picture-taking position of each image and the current location in the target typePositional distance, and select multiple images of the positional distance of picture-taking position and the current location within a preset range, andThe image included to the target type is ranked up according to number of clicks and preview time, and N images are made before selected and sortedFor target image, and the common images feature of the target image is identified, and using the common images feature as described defaultCondition.
Preferably, methods described also includes:
Whether mobile terminal identification described image includes child's image in storehouse, if so, and identifying child's imagePhoto opporunity, if the photo opporunity and current time are less than preset time range, identify the quantity of child's image,If the quantity exceedes predetermined number, it is determined that family where the user of the mobile terminal includes child, and receiving, this arrives instituteWhen stating enabled instruction, the fingerprint size information of the touch operation of the enabled instruction of identified input, according to the fingerprint sizeInformation determines whether child's fingerprint, if so, then performing the mobile terminal according to the enabled instruction, while starts preposition take the photographAs head and rear camera, and identify the step of last time closes the camera used when taking pictures application.
The embodiment of the present invention also provides a kind of mobile terminal, including:
Receiving module, the startup for receiving user's input are taken pictures the enabled instruction of application;
Identification module, for according to the enabled instruction, while start front camera and rear camera, and identifyOnce close the camera used when taking pictures application;
Previewing module, for will be that last closing uses when taking pictures and applying in the front camera and rear cameraThe image of camera collection carry out preview, and identify the image of another camera collection;
Control module, for judging whether the image of front camera and the rear camera collection meets to preset respectivelyCondition, meet that the image that the camera of the preparatory condition gathers carries out preview according to judged result selection, and close and be unsatisfactory forThe camera of the preparatory condition.
Preferably, the mobile terminal also includes:
Sort module, classify for the image in the image library that is stored to the mobile terminal, obtain described imageStorehouse includes the most target type of amount of images, and identifies the common images feature for the image that the target type includes,And using the common images feature as the preparatory condition;
It is described that the control module judges whether the image of front camera and the rear camera collection includes respectivelyCommon images feature, wherein, the camera that the image of collection is included to the common images feature determines to meet the default barPart.
Preferably, the mobile terminal also includes:
First logging modle, for recording number of clicks and preview time of the user to each image in described image storehouse;
The image that the sort module is used in the image library to mobile terminal storage is classified, and obtains the figureAs storehouse includes the most target type of amount of images, and to the image that the target type includes according to number of clicks and pre-Looking at the time is ranked up, and N images are as target image before selected and sorted, and identify the common images spy of the target imageSign, and using the common images feature as the preparatory condition, the N is more than 2 integers.
Preferably, the mobile terminal also includes:
Second logging modle, position during for recording every image photographic in described image storehouse residing for the mobile terminalPut;
Location identification module, for when receiving the enabled instruction, identifying the current location of the mobile terminal;
The image that the sort module is used in the image library to mobile terminal storage is classified, and obtains the figureAs storehouse includes the most target type of amount of images, calculate in the target type picture-taking position of each image with it is described currentThe positional distance of position, and multiple images of picture-taking position and the positional distance of the current location within a preset range are selected,And the image included to the target type is ranked up according to number of clicks and preview time, N figures before selected and sortedAs being used as target image, and the common images feature of the target image is identified, and using the common images feature as described inPreparatory condition.
Preferably, the mobile terminal also includes:
Determining module, for identifying in described image storehouse whether include child's image, if so, and identifying child's imagePhoto opporunity, if the photo opporunity and current time are less than preset time range, identify the quantity of child's image,If the quantity exceedes predetermined number, it is determined that family where the user of the mobile terminal includes child, and receiving, this arrives instituteWhen stating enabled instruction, the fingerprint size information of the touch operation of the enabled instruction of identified input, according to the fingerprint sizeInformation determines whether child's fingerprint, if so, then the mobile terminal while starts front camera according to the enabled instructionAnd rear camera, and identify the last camera closed and used when taking pictures application.
The embodiment of the present invention, the startup that mobile terminal receives user's input are taken pictures the enabled instruction of application;It is described mobile wholeEnd while starts front camera and rear camera according to the enabled instruction, and identifies last close when taking pictures applicationThe camera used;The mobile terminal will be when closing the last time to take pictures application in the front camera and rear cameraThe image of the camera collection used carries out preview, and identifies the image of another camera collection;The mobile terminal is sentenced respectivelyWhether the image of disconnected front camera and the rear camera collection meets preparatory condition, meets institute according to judged result selectionThe image for stating the camera collection of preparatory condition carries out preview, and closes the camera for being unsatisfactory for the preparatory condition.So may be usedThe camera that is needed to use with automatic identification user simultaneously carries out preview, inputs selection operation without user, and then improveThe efficiency that mobile terminal is taken pictures.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on thisEmbodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not madeExample is applied, belongs to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is a kind of schematic flow sheet for controlling camera photographic method provided in an embodiment of the present invention,As shown in figure 1, including:
101st, mobile terminal receives the startup of user's input and taken pictures the enabled instruction of application;
102nd, mobile terminal is according to the enabled instruction, while starts front camera and rear camera, and identifiesOnce close the camera used when taking pictures application;
103rd, mobile terminal will be that last close uses when taking pictures application in the front camera and rear cameraThe image of camera collection carry out preview, and identify the image of another camera collection;
104th, mobile terminal judges whether the image of front camera and the rear camera collection meets to preset respectivelyCondition, meet that the image that the camera of the preparatory condition gathers carries out preview according to judged result selection, and close and be unsatisfactory forThe camera of the preparatory condition.
The camera that can be needed to use by above-mentioned steps mobile terminal with automatic identification user simultaneously carries out preview, so as to notNeed user to input selection operation, and then improve the efficiency that mobile terminal is taken pictures.
Preferably, methods described also includes:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and identify the common images feature for the image that the target type includes, andUsing the common images feature as the preparatory condition;
The mobile terminal judges whether the image of front camera and the rear camera collection meets to preset respectivelyCondition, including:
It is described that the mobile terminal judges whether the image of front camera and the rear camera collection includes respectivelyCommon images feature, wherein, the camera that the image of collection is included to the common images feature determines to meet the default barPart.
In the embodiment, it is possible to achieve using the common images feature in the most target type of amount of images as defaultCondition, such as:Face self-timer, or scenery are taken pictures.The camera that can be so selected by above-mentioned preparatory condition, can moreAdd suitable user, so as to improve Consumer's Experience, the accuracy of camera is selected, to avoid user from switching camera again.
Preferably, methods described also includes:
Number of clicks and preview time of the mobile terminal records user to each image in described image storehouse;
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and identify the common images feature for the image that the target type includes, andUsing the common images feature as the preparatory condition, including:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and during to the image that the target type includes according to number of clicks and previewBetween be ranked up, N images are as target image before selected and sorted, and identify the common images feature of the target image, andUsing the common images feature as the preparatory condition, the N is more than 2 integers.
In the embodiment, it is possible to achieve by the most target type of amount of images, and wrapped in the target typeThe image included is ranked up according to number of clicks and preview time, N common figures of the image as target image before selected and sortedAs feature is as preparatory condition.The camera that can be so selected by above-mentioned preparatory condition, a meeting more step add suitable user,Meet user's request, so as to improve Consumer's Experience, the accuracy of camera is selected, to avoid user from switching camera again.
Preferably, methods described also includes:
The location of described mobile terminal during every image photographic in the mobile terminal records described image storehouse;
The mobile terminal identifies the current location of the mobile terminal when receiving the enabled instruction;
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, and during to the image that the target type includes according to number of clicks and previewBetween be ranked up, N images are as target image before selected and sorted, and identify the common images feature of the target image, andUsing the common images feature as the preparatory condition, including:
Image in the image library that the mobile terminal stores to the mobile terminal is classified, and obtains described image storehouseInclude the most target type of amount of images, calculate the picture-taking position of each image and the current location in the target typePositional distance, and select multiple images of the positional distance of picture-taking position and the current location within a preset range, andThe image included to the target type is ranked up according to number of clicks and preview time, and N images are made before selected and sortedFor target image, and the common images feature of the target image is identified, and using the common images feature as described defaultCondition.
In the embodiment, the matching of position is added on the basis of above example, so can be by above-mentioned pre-If the camera that condition is selected, a meeting more step adds suitable user, further meets user's request, so as to improve Consumer's Experience,The accuracy of selection camera is further enhanced.
Preferably, methods described also includes:
Whether mobile terminal identification described image includes child's image in storehouse, if so, and identifying child's imagePhoto opporunity, if the photo opporunity and current time are less than preset time range, identify the quantity of child's image,If the quantity exceedes predetermined number, it is determined that family where the user of the mobile terminal includes child, and receiving, this arrives instituteWhen stating enabled instruction, the fingerprint size information of the touch operation of the enabled instruction of identified input, according to the fingerprint sizeInformation determines whether child's fingerprint, if so, then performing the mobile terminal according to the enabled instruction, while starts preposition take the photographAs head and rear camera, and identify the step of last time closes the camera used when taking pictures application.
In the embodiment, it is possible to achieve, can because child is particularly smaller child for the special scenes of childIt oneself can be not aware that how to switch camera, simply know that needs are taken pictures, then, pass through the embodiment, it is possible to achieve beChild correctly selects camera to carry out preview and take pictures, and to avoid child from being taken pictures using the camera of mistake, is moved with wastingThe resource of dynamic terminal.
In the embodiment of the present invention, mobile terminal can be that mobile phone, camera or tablet personal computer etc. include setting for dual cameraIt is standby, this embodiment of the present invention is not construed as limiting.
The embodiment of the present invention, the startup that mobile terminal receives user's input are taken pictures the enabled instruction of application;It is described mobile wholeEnd while starts front camera and rear camera according to the enabled instruction, and identifies last close when taking pictures applicationThe camera used;The mobile terminal will be when closing the last time to take pictures application in the front camera and rear cameraThe image of the camera collection used carries out preview, and identifies the image of another camera collection;The mobile terminal is sentenced respectivelyWhether the image of disconnected front camera and the rear camera collection meets preparatory condition, meets institute according to judged result selectionThe image for stating the camera collection of preparatory condition carries out preview, and closes the camera for being unsatisfactory for the preparatory condition.So may be usedThe camera that is needed to use with automatic identification user simultaneously carries out preview, inputs selection operation without user, and then improveThe efficiency that mobile terminal is taken pictures.
Refer to Fig. 2, Fig. 2 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention, such as Fig. 2, including:
Receiving module 201, the startup for receiving user's input are taken pictures the enabled instruction of application;
Identification module 202, for according to the enabled instruction, while start front camera and rear camera, and knowIt is not last to close the camera used when taking pictures application;
Previewing module 203, for will be when closing the last time to take pictures application in the front camera and rear cameraThe image of the camera collection used carries out preview, and identifies the image of another camera collection;
Control module 204, for judging whether the image of front camera and the rear camera collection meets respectivelyPreparatory condition, meet that the image that the camera of the preparatory condition gathers carries out preview according to judged result selection, and close notMeet the camera of the preparatory condition.
Preferably, as shown in figure 3, the mobile terminal also includes:
Sort module 205, classify for the image in the image library that is stored to the mobile terminal, obtain the figureAs storehouse includes the most target type of amount of images, and identify that the common images for the image that the target type includes are specialSign, and using the common images feature as the preparatory condition;
The control module 204 judges whether the image of front camera and the rear camera collection includes institute respectivelyCommon images feature is stated, wherein, the camera that the image of collection is included to the common images feature determines to meet described presetCondition.
Preferably, as shown in figure 4, the mobile terminal also includes:
First logging modle 206, for recording number of clicks and preview time of the user to each image in described image storehouse;
The image that the sort module 205 is used in the image library to mobile terminal storage is classified, and obtains instituteStating image library includes the most target type of amount of images, and the image included to the target type is according to number of clicksIt is ranked up with preview time, N images are as target image before selected and sorted, and identify the common images of the target imageFeature, and using the common images feature as the preparatory condition, the N is more than 2 integers.
Preferably, as shown in figure 5, the mobile terminal also includes:
Second logging modle 207, during for recording every image photographic in described image storehouse residing for the mobile terminalPosition;
Location identification module 208, for when receiving the enabled instruction, identifying the present bit of the mobile terminalPut;
The image that the sort module 205 is used in the image library to mobile terminal storage is classified, and obtains instituteStating image library includes the most target type of amount of images, calculate in the target type picture-taking position of each image with it is describedThe positional distance of current location, and select multiple figures of picture-taking position and the positional distance of the current location within a preset rangePicture, and the image included to the target type are ranked up according to number of clicks and preview time, N before selected and sortedImage identifies the common images feature of the target image as target image, and using the common images feature as instituteState preparatory condition.
Preferably, as shown in fig. 6, the mobile terminal also includes:
Determining module 209, for identifying in described image storehouse whether include child's image, if so, and identifying the childThe photo opporunity of image, if the photo opporunity is less than preset time range with current time, identify child's imageQuantity, if the quantity exceedes predetermined number, it is determined that family where the user of the mobile terminal includes child, receive thisTo during the enabled instruction, the fingerprint size information of the touch operation of the enabled instruction of identified input, according to the fingerprintSize information determines whether child's fingerprint, if so, then the mobile terminal while starts preposition take the photograph according to the enabled instructionAs head and rear camera, and identify the last camera closed and used when taking pictures application.
The embodiment of the present invention, the startup that mobile terminal receives user's input are taken pictures the enabled instruction of application;It is described mobile wholeEnd while starts front camera and rear camera according to the enabled instruction, and identifies last close when taking pictures applicationThe camera used;The mobile terminal will be when closing the last time to take pictures application in the front camera and rear cameraThe image of the camera collection used carries out preview, and identifies the image of another camera collection;The mobile terminal is sentenced respectivelyWhether the image of disconnected front camera and the rear camera collection meets preparatory condition, meets institute according to judged result selectionThe image for stating the camera collection of preparatory condition carries out preview, and closes the camera for being unsatisfactory for the preparatory condition.So may be usedThe camera that is needed to use with automatic identification user simultaneously carries out preview, inputs selection operation without user, and then improveThe efficiency that mobile terminal is taken pictures.
In several embodiments provided herein, it should be understood that disclosed method and apparatus, can be by otherMode realize.For example, device embodiment described above is only schematical, for example, the division of the unit, onlyFor a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combineOr another system is desirably integrated into, or some features can be ignored, or do not perform.Another, shown or discussed phaseCoupling or direct-coupling or communication connection between mutually can be by some interfaces, the INDIRECT COUPLING or communication of device or unitConnection, can be electrical, mechanical or other forms.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can alsoThat the independent physics of unit includes, can also two or more units it is integrated in a unit.Above-mentioned integrated listMember can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable depositIn storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are causing a computerEquipment (can be personal computer, server, or network equipment etc.) performs receiving/transmission method described in each embodiment of the present inventionPart steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, abbreviationROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various to storeThe medium of program code.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the artFor, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modificationsIt should be regarded as protection scope of the present invention.