[0076] Embodiment one
[0077] like image 3 As shown, this embodiment provides a method for taking photos, which is applied to a mobile terminal and may include:
[0078] Step 301, after the pre-captured image is acquired by the camera, feature information of the pre-captured image is extracted;
[0079] Step 302, according to the feature information of the pre-captured image, determine predetermined shooting parameters matching the pre-captured image;
[0080] Step 303 , adjusting the shooting parameters of the camera to the predetermined shooting parameters, and controlling the camera to perform shooting of the pre-shot image.
[0081] In this embodiment, the predetermined shooting parameters are selected by extracting the feature information of the pre-shot image, and then the camera shooting parameters of the mobile terminal are calibrated based on the predetermined shooting parameters, so that the photos with corresponding effects are directly taken by the camera. In this way, the mobile The terminal can use different shooting parameters to take pictures according to the scenes that the user wants to shoot, so as to directly take pictures with the desired effect of the user, which can not only meet the individual needs of the user, but also effectively save the time of taking pictures by the mobile terminal and improve It improves the photo shooting efficiency and shooting effect of the mobile terminal, and effectively improves the user experience.
[0082] In this embodiment, the feature information of the pre-captured image may include: object feature information, environment feature information, light feature information, and the like. Wherein, the object feature information may include object category information, object color information, and object proportion information, and the object category information may be similar information such as people, scenery, animals, plants, objects, etc.; the object color information may be color objects, black and white objects, etc. Similar to the information, the object scale information refers to the proportion of the object in the overall picture. The environment feature may be similar information such as indoor, outdoor, grassland, sea, desert, etc., and the light feature may be similar information such as day, cloudy sky, and night.
[0083] In this embodiment, the predetermined shooting and shooting parameters refer to camera parameters when taking pictures, for example, they may respectively include focal length, aperture, exposure, white balance, noise, shutter speed and other information.
[0084] In this embodiment, the process of generating the predetermined shooting parameters may also be included, and the process may be realized through the following methods: acquiring picture data; analyzing the picture data to extract shooting parameters of different picture types; shooting parameters, generating the predetermined shooting parameters corresponding to different picture types. In this way, the predetermined shooting parameters can be updated by analyzing the picture data in real time, so that the mobile terminal can take pictures with different effects, so as to meet the constantly changing shooting needs of users. In practical applications, the process of generating predetermined shooting parameters may be performed by a mobile terminal, or may be implemented by other devices such as a server, a computer, or other terminals. If it is performed by other devices, the mobile terminal may acquire the predetermined shooting parameters through active acquisition or passive reception before using the predetermined shooting parameters.
[0085] In some implementation manners, the manner of acquiring the picture data may be: requesting the latest picture data from a picture library server, and receiving the picture data returned by the picture library server. There are many ways to request. For example, you can send a request to the specified picture library server through a specified application program or through a browser periodically or when certain conditions are met. After receiving the corresponding request, the picture library server will send the latest The picture data is returned to the device (which may be the mobile terminal itself or other devices before the mobile terminal) that generates the predetermined shooting parameters, and the device can analyze the picture data returned by the picture library server to update the predetermined shooting parameters. The image library server described in this embodiment may be an application server for image processing, an application server for providing image social networking sites, etc., and image data refers to data representing the image itself, data including all information of the image, and the like. The picture data includes at least feature information of the picture, shooting parameters and the like.
[0086] In some implementation manners, the process of generating the predetermined shooting parameters may further include: presetting the picture type according to feature information of the picture. In this way, corresponding predetermined shooting parameters can be generated based on different picture types, so that the mobile terminal can find matching predetermined shooting parameters according to the feature information of the pre-shot image. Here, the picture type can be defined based on the feature information of the picture. The feature information of the picture can include: information such as object features, environmental features, and light features in the picture, which can be selected from one or more of the object features, environmental features, and light features. A combination of items to form the picture type. Among them, the object feature information may include object category information, object color information, and object proportion information. The object category information may be information such as people, landscapes, animals, plants, and objects; Scale information refers to the proportion of objects in the overall picture. Environmental features can be similar information such as indoors, outdoors, grasslands, seas, deserts, etc. Light features can be similar information such as day, cloudy, and night. For example, picture type 1 is "day + grassland + people", picture type 2 is "night + starry sky + people", picture type 3 is "day + indoor + plants", and so on, so I won't repeat them here. Of course, other methods can also be used to preset the image type in practical applications, which is not limited in this article.
[0087] In some implementations, the parsing the picture data to extract shooting parameters of different picture types may include: parsing the picture data to at least obtain feature information and corresponding shooting parameters of the picture; according to the The picture type classifies the obtained shooting parameters. In this way, after the shooting parameters are obtained by analyzing the picture data and classified based on the picture type, it is convenient to use the classified shooting parameters to obtain the predetermined shooting parameters.
[0088] In some implementation manners, generating the predetermined shooting parameters corresponding to different picture types according to the extracted shooting parameters may include: filtering the classified shooting parameters according to the picture types to obtain the Predetermined shooting parameters. Here, there are many ways to filter the shooting parameters after classification processing, and they can be screened through a predetermined strategy. The predetermined strategy can be freely configured according to actual needs. For example, the predetermined strategy can be: select the latest shooting parameters as the selected The predetermined shooting parameters; the predetermined strategy may also be: selecting the shooting parameters corresponding to the most popular pictures as the predetermined shooting parameters. And so on, no more details. Of course, in practical applications, other ways can also be used to generate the predetermined shooting parameters, which are not limited herein.
[0089] In some implementation manners, after the predetermined shooting parameters are generated, the predetermined shooting parameters can be saved so that the mobile terminal can access them at any time when shooting. In practical applications, the predetermined shooting parameters can be stored in the mobile terminal or in the cloud, and the mobile terminal can obtain the predetermined shooting parameters from the cloud. Here, the cloud may be a cloud disk, a cloud server, a server dedicated to storing picture data and shooting data, a server responsible for providing storage services for mobile terminals, and the like.
[0090] In practical applications, the device that stores the predetermined shooting parameters and the device that generates the predetermined shooting parameters may be the same or different. For example, the predetermined shooting parameters may be generated by the mobile terminal itself and stored locally, or the predetermined shooting parameters may be generated by the mobile terminal itself and stored in the cloud, or may be generated and stored by other devices other than the mobile terminal Alternatively, the predetermined shooting parameters may be generated by other devices other than the mobile terminal and stored in the cloud, and the mobile terminal may obtain the predetermined shooting parameters from the device or from the cloud.
[0091]In some implementation manners, the predetermined shooting parameters may be saved locally. At this time, in step 302, according to the characteristic information of the pre-captured image, determining the predetermined shooting parameters that match the pre-captured image may include: determining the corresponding picture type according to the characteristic information of the pre-captured image, and then according to The picture type reads the corresponding predetermined shooting parameters from the local.
[0092] In some implementation manners, the predetermined shooting parameters may be saved in the cloud. At this time, in step 302, according to the characteristic information of the pre-captured image, determining the predetermined shooting parameters that match the pre-captured image may include: determining the corresponding picture type according to the characteristic information of the pre-captured image, and then according to The picture type acquires corresponding predetermined shooting parameters from the cloud. Here, the method of obtaining the predetermined shooting parameters from the cloud may be an active request or a passive reception.
[0093] The specific implementation process of the photo shooting method in this embodiment will be described in detail below.
[0094] like Figure 4 As shown, the photo shooting method in this embodiment may include:
[0095] Step 401, the mobile terminal obtains the picture data of the designated picture social networking site (such as Tu Chong) in real time;
[0096] Step 402, the mobile terminal analyzes the picture data, and at least obtains feature information of the picture and corresponding shooting parameters;
[0097] Step 403, the mobile terminal generates predetermined shooting parameters corresponding to different preset picture types according to the feature information of the picture and the corresponding shooting parameters and saves them locally;
[0098] Step 404, the mobile terminal obtains the pre-shot image through the camera;
[0099] Step 405, the mobile terminal extracts the characteristic information of the pre-captured image, and determines predetermined shooting parameters matching the pre-captured image according to the characteristic information of the pre-captured image;
[0100] Step 406, the mobile terminal adjusts the shooting parameters of the camera to the predetermined shooting parameters, and prompts the user for confirmation;
[0101] For example, when the picture type corresponding to the predetermined shooting parameters after the adjustment of the mobile terminal is "day + grassland + people", the user can be prompted "currently in the grassland mode, please confirm", so that the user can perceive the current shooting characteristics of the camera, which is convenient for the user. Confirm before shooting.
[0102] Step 407, the user presses the shooting key, the mobile terminal receives a shooting instruction, controls the camera to shoot the pre-shot image, and obtains a photo.
[0103] In this example, Figure 4 The flow shown is only an example, and in practical applications, the photo shooting method in this embodiment can also be implemented through other specific flows, for which reference can be made to the above description, and details will not be repeated here.