CN108540722B - Method and device for controlling camera to shoot and computer readable storage medium - Google Patents

Method and device for controlling camera to shoot and computer readable storage medium Download PDF

Info

Publication number
CN108540722B
CN108540722B CN201810343830.2A CN201810343830A CN108540722B CN 108540722 B CN108540722 B CN 108540722B CN 201810343830 A CN201810343830 A CN 201810343830A CN 108540722 B CN108540722 B CN 108540722B
Authority
CN
China
Prior art keywords
shooting parameters
shooting
terminal
user
photos
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810343830.2A
Other languages
Chinese (zh)
Other versions
CN108540722A (en
Inventor
林形省
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810343830.2A priority Critical patent/CN108540722B/en
Publication of CN108540722A publication Critical patent/CN108540722A/en
Application granted granted Critical
Publication of CN108540722B publication Critical patent/CN108540722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a method and a device for controlling camera shooting and a computer readable storage medium, relating to the technical field of internet, wherein the method comprises the following steps: acquiring shooting parameters used by a user having a social relationship with a terminal user; setting the acquired shooting parameters as the shooting parameters of the terminal camera; and controlling the terminal camera to execute shooting operation by using the set shooting parameters. In the embodiment of the disclosure, the social attributes of the users are utilized to provide a way for the users to use the shooting parameters used by other users for reference, the selection modes of the shooting parameters are enriched for the small and white users, and more satisfactory photos can be shot.

Description

Method and device for controlling camera to shoot and computer readable storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for controlling a camera to shoot, and a computer-readable storage medium.
Background
The current smart phones can automatically set shooting parameters of the camera through recognition of shooting scenes, such as setting a landscape mode, a portrait mode, a sport mode, and the like. In different modes, parameters such as shutter, aperture, focal length, ISO sensitivity, etc. are preset to specific values suitable for different scenes. The user can carry out 'fool' shooting without setting specific numerical values of shooting parameters or even selecting a scene mode, and the method is particularly suitable for users in small areas. However, this parameter setting method is predefined by the mobile phone manufacturer, and the values of the shooting parameters are fixed. In real life, people have different understandings and expressions of good things, for shooting of the same scene, different users have different choices in aspects of main body composition, light utilization, depth of field processing and the like, the selection difference can be directly reflected on the difference of various shooting parameter values, and the mode of predefining shooting parameters cannot give consideration to parameter requirements of different users. When a user does not have the capability of manually setting shooting parameters and hopes to shoot a photo meeting the mind, a satisfactory result cannot be obtained only by depending on the shooting mode function of the mobile phone.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for controlling a camera to capture a video image, and a computer-readable storage medium.
In a first aspect, a method for controlling camera shooting is provided, where the method includes:
acquiring shooting parameters used by a user having a social relationship with a terminal user;
setting the acquired shooting parameters as the shooting parameters of the terminal camera;
and controlling the terminal camera to execute shooting operation by using the set shooting parameters.
Optionally, the obtaining of the shooting parameter used by the user having a social relationship with the terminal user includes:
determining photos uploaded by users having social relationships with the end user in a social platform;
and acquiring the shooting parameters from the attribute file of the photo.
Optionally, the photos uploaded by the user having a social relationship with the end user include:
the friends of the terminal user upload photos in the social platform; or,
a photo uploaded to the social platform by a user having a same-class attribute tag as the end user; or,
a photo that friends are praised in the social platform; or,
and the terminal user concerns the photos released by the public account.
Optionally, after obtaining the shooting parameters used by the user having a social relationship with the end user, the method further includes:
identifying an object to be shot in a viewing frame;
judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not;
if the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
Optionally, after obtaining the shooting parameters used by the user having a social relationship with the end user, the method further includes:
reading standard shooting parameters automatically set by the terminal according to an object to be shot in a view-finding frame;
and eliminating the shooting parameters of which the difference value with the standard shooting parameters is larger than a preset threshold value from the obtained shooting parameters.
Optionally, the method further comprises:
carrying out weighted calculation on the acquired shooting parameters and the shooting parameters of the pictures shot by the terminal user to obtain corrected shooting parameters;
wherein the terminal user has taken a picture by screening a reserved picture from a plurality of repeatedly taken pictures.
In a second aspect, an apparatus for controlling camera shooting is provided, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring shooting parameters used by a user who has a social relationship with a terminal user;
the setting unit is used for setting the acquired shooting parameters as the shooting parameters of the terminal camera;
and the control unit is used for controlling the terminal camera to execute shooting operation by using the set shooting parameters.
Optionally, the obtaining unit includes:
the determining module is used for determining photos uploaded by users having social relations with the terminal users in a social platform;
and the acquisition module is used for acquiring the shooting parameters from the attribute file of the photo.
Optionally, the photos uploaded by the user having a social relationship with the end user include:
the friends of the terminal user upload photos in the social platform; or,
a photo uploaded to the social platform by a user having a same-class attribute tag as the end user; or,
a photo that friends are praised in the social platform; or,
and the terminal user concerns the photos released by the public account.
Optionally, the apparatus further comprises:
the first eliminating unit is used for identifying an object to be shot in the view-finding frame after acquiring shooting parameters used by a user who has a social relationship with a terminal user;
judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not;
if the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
Optionally, the apparatus further comprises:
the second eliminating unit is used for reading standard shooting parameters automatically set by the terminal according to an object to be shot in the view finder after the shooting parameters used by a user who has a social relationship with the terminal user are obtained;
and eliminating the shooting parameters of which the difference value with the standard shooting parameters is larger than a preset threshold value from the obtained shooting parameters.
Optionally, the apparatus further comprises:
the correction unit is used for carrying out weighted calculation on the acquired shooting parameters and the shooting parameters of the pictures shot by the terminal user to obtain corrected shooting parameters;
wherein the terminal user has taken a picture by screening a reserved picture from a plurality of repeatedly taken pictures.
The third aspect provides an apparatus for controlling a camera to shoot, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method steps of the first aspect described above.
In a fourth aspect, a computer readable storage medium is provided, having instructions stored thereon, wherein the instructions are executed by a processor to implement the method steps of the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of the first aspect described above.
The method, the device and the computer-readable storage medium for controlling the camera to shoot can acquire shooting parameters used by a user who has a social relationship with a terminal user, set the acquired shooting parameters as the shooting parameters of the terminal camera, and accordingly control the camera to execute shooting operation. Compared with the mode of using fixed shooting parameters, the method and the device have the advantages that the social attributes of the user are utilized, a way for the user to use the shooting parameters used by other users is provided for reference, the selection modes of the shooting parameters are enriched for the small and white users, the user can repeat the trace of other people and the length of a user who can draw energy, and a more satisfactory picture is shot.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of controlling camera shooting in accordance with an exemplary embodiment;
FIG. 2 is a diagram illustrating a type of photo attribute information in accordance with an illustrative embodiment;
FIG. 3 is a flow chart illustrating another method of controlling camera shots in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus for controlling camera shots in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating another apparatus for controlling camera shooting according to an exemplary embodiment;
fig. 6 is a block diagram illustrating an apparatus 600 for controlling camera shooting according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure provides a method for controlling camera shooting, and fig. 1 is a flowchart illustrating the method for controlling camera shooting according to an exemplary embodiment. As shown in fig. 1, the method includes:
101. and acquiring shooting parameters used by users having social relations with the terminal users.
The terminal user described in this embodiment is a user who takes a picture using an intelligent terminal such as a mobile phone, and includes the aforementioned small white user, so that in order to distinguish in terms of expression, the user who has a social relationship with the terminal user is subsequently referred to as a social user in this embodiment.
On the social platform, the social users can publish photos shot by themselves, and generally, the social users upload photos with good shooting effect. Through the approach of the social platform, on one hand, the selection range of the terminal user for the shooting parameters can be expanded based on the advantages of the number of friends, on the other hand, the psychology of the social user for preferentially uploading the photos is utilized, the shooting level of the reference photos is guaranteed to a certain extent, and the reference value of the shooting parameters is further guaranteed.
The terminal acquires the social account information of the user after obtaining the user authorization and/or the system authorization, and then logs in the social account of the terminal user through the social account information. And obtaining user account information having a social relationship with the terminal user after obtaining the platform authorization, such as friend chain information of the terminal user. And then, acquiring shooting parameters used by the social user according to the account information of the social user. It should be noted that, in this embodiment, a user having a social relationship with a terminal user is not limited to a friend of the terminal user, but may also be a social user belonging to a category with the terminal user in interest and hobbies, for example, a social user belonging to a "food" tag; or users classified into the same category in user attributes, such as "young female group", "top up VIP users", and the like. Furthermore, the definition of social users is not limited to the category of personal accounts, but also includes public accounts operated by individuals or organizations, or groups spontaneously established by individual users.
The existing smart phone can store the shooting parameters of the photos in the attribute files of the photos. For example, fig. 2 shows photo attribute information of a certain android custom operating system, which includes shooting time, file information (name, size, pixel, etc.), file storage path (for a social platform, the path is a storage path of the photo in a social website server, and is usually represented in the form of URL), and shooting parameters of the photo. Wherein the shooting parameters include: aperture size, shutter speed, ISO sensitivity, focal length, and whether or not flash is used. During the transmission process of the photos, the attribute files are transmitted together with the photos and are saved in a server of the social network site together with the photos. After obtaining account information of the social user, the terminal can request the social platform for the photos uploaded by the account, and then obtains shooting parameters of the photos.
It should be noted that the content shown in fig. 2 is only an exemplary illustration of the property file, and the shooting parameters mentioned therein are not taken as a specific limitation to the number or kind of the shooting parameters in the present embodiment. In practical application, the shooting parameters recorded in the attribute file can be expanded according to customization of an operating system.
In one implementation manner, the social platform may send the photos uploaded by the social users to the terminal, and the terminal obtains the shooting parameters by itself. However, this method may generate a large transmission overhead, and is limited by the transfer authority, and the terminal cannot obtain the photos that are published by the social user but prohibited from being transferred. To address this issue, in another implementation, the social platform may send only the properties file of the photo to the terminal, thereby addressing both issues. Meanwhile, the transmission of the photos is not involved, so that the terminal can obtain the shooting parameters of some non-public photos (such as the photos in an encrypted photo album) on the premise of not revealing the personal privacy of the social user.
Further, considering that the shooting time in the property file is sensitive to a part of users, in another implementation, the social platform may protect the part of information as private data. For example, the shooting time is deleted from the attribute file, or the shooting parameters are extracted from the attribute file and form structured data to be sent to the terminal.
In the opportunity of acquiring the shooting parameters, the terminal may request the shooting parameters from the social platform when the camera is started, for example, when the user opens a camera view finder. In consideration of the fact that the terminal may not be connected to the internet when the camera is started in practical application, the terminal may also select an appropriate time to acquire the shooting parameters before the camera is not started, for example, request the shooting parameters when the user logs in the social account.
102. And setting the acquired shooting parameters as the shooting parameters of the terminal camera.
The shooting parameters in this embodiment relate to any one or a combination of any plural of the following:
photosensitive parameters: aperture, shutter, ISO, flash, white balance, etc.;
focusing parameters: focal length, focus mode (single autofocus, continuous autofocus, etc.), face recognition, etc.;
mode parameters: HDR mode, night scene mode, stitching mode, etc.;
beautifying parameters: filters, beauty, templates, watermarks, etc.
In practical application, the shooting parameters obtained by the terminal are usually a combination of multiple parameters, and the terminal can directly configure the parameter combination to the camera after obtaining the shooting parameters.
The terminal can directly write the acquired shooting parameters into a memory of the shooting application, and the process controls the switch or the value setting of each functional module according to the shooting parameters in the memory during shooting (for example, the HDR function is started by adjusting the voltage value of the HDR module to exceed the threshold voltage value), so as to complete the setting of the shooting parameters.
103. And controlling the terminal camera to execute shooting operation by using the set shooting parameters.
After the parameter setting is completed, the shooting operation can be performed. In practical application, shooting operation is usually executed based on the operation that a user triggers a shutter, and after a camera viewfinder is started and before parameter setting is completed, a terminal can prompt the user to 'unfit parameter setting' at a striking position in the viewfinder or set a shutter button to be in an 'unusable' state; after parameter setting is completed, the terminal cancels display of prompt information, or sets the shutter button to be in an available state, and then a user can click the shutter button to trigger shooting operation. In practical applications, when the processing performance of the terminal is sufficiently excellent, and the time consumed in the parameter setting process is basically not perceived by the user, the above-mentioned prompt may not be made.
Further, after the shooting operation is completed and the camera is closed, the shooting parameters in the memory can be deleted. Using default shooting parameters of the system when the camera is started next time; or the shooting parameters can be fixedly stored in a configuration file or other data forms before the memory is cleared, and the configuration parameters are automatically read and configured to the camera when the camera is started next time.
According to the method for controlling the camera to shoot, shooting parameters used by a user who has a social relationship with a terminal user can be obtained, the obtained shooting parameters are set as the shooting parameters of the terminal camera, and the camera is controlled to execute shooting operation according to the shooting parameters. Compared with the mode of using fixed shooting parameters, the embodiment of the disclosure provides a way for the user to use the shooting parameters used by other users for reference by using the social attributes of the user, enriches the selection modes of the shooting parameters for the small and white users, and enables the user to repeat the trace of other people and the length of the energy consumer, and take a more satisfactory picture.
Further, an embodiment of the present disclosure also provides a method for controlling camera shooting, and fig. 3 is a flowchart illustrating a method for controlling camera shooting according to an exemplary embodiment. As shown in fig. 3, the method includes:
301. photos uploaded by users having a social relationship with the end user are determined in the social platform.
In this embodiment, the photos uploaded by the users who have a social relationship with the terminal user include:
1) photos uploaded by end user's friends into social platform
2) Photos uploaded to social platform by users having same-class attribute tags as end users
Users with the same type of attribute labels often have similar tastes and aesthetic styles, for example, users who belong to the same type of "solar system and wind" labels often like to use a fresh and beautiful filter effect, and the user classification dimension can be used for reference of shooting parameters conforming to the taste of terminal users.
In addition, when the terminal user has the interest tag of 'photographing', the proportion of users with higher photographing level among users with the same type of tags is higher, and the photographing effect of the photos can be greatly improved by taking reference to the photographing parameters of the photos of the users.
3) Photo that friends are praised in social platform
For the photos uploaded by friends or similar tag users, when the terminal users or other users favor the terminal users, the shooting effect of the photos is usually better, so that the shooting parameters of the photos can be used for reference.
4) Photo released by public account concerned by terminal user
In real life, the following situations often exist: some public numbers for photography regularly release excellent photos for appreciation, and simultaneously release a series of shooting parameters of the photos for the copying practice of photographers. In the embodiment, the terminal automatically acquires the shooting parameters of the excellent photos and configures the shooting parameters for the camera, so that the trouble of manually setting the shooting parameters by a terminal user can be avoided, and the terminal user can conveniently and quickly shoot the photos with a large effect.
After the screening process, the shooting quality of the photos can be further screened so as to improve the fitness of the photos and the taste of the user. The selection mode comprises two steps:
1) terminal auto-selection
The terminal may filter the excellent photos based on the social data associated with the photos, such as selecting photos with a high number of likes, a high number of forwards, and/or a high number of left messages. The social data reflect the network popularity of the photos, the popularity can reflect the shooting quality of the photos to a certain extent, and the high-quality photos are often more satisfied by the terminal users, so that the selection mode can achieve a certain screening effect.
2) User autonomous selection
The terminal may display thumbnails of the respective photos through a specific window or interface, and manually select the photo desired for reference by the user.
In practice, the above two modes can be used separately or in combination, and in one implementation, a part of photos can be selected through heat screening, and then the selected photos are displayed to the user for further manual selection.
In addition, in order to further improve the satisfaction degree of the terminal user on the photos, one-dimensional screening can be added on the basis of the screening process, namely, the photos with shooting parameters set through a manual setting mode are preferentially selected. In practical application, social friends can also take photos with predefined shooting parameters of a mobile phone, and relatively speaking, users who set the shooting parameters in a manual setting mode often have more advantages in shooting level and have more idea on the aesthetic quality of the photos, so that the reference value of the photos is usually higher for end users. As one of the shooting parameters, parameter setting mode information is also recorded in the property file of the photograph, and the terminal can obtain the parameter setting mode information according to the manner of obtaining the property file described above.
In another implementation manner of the embodiment, in consideration of the huge number of photos in the social network, the amount of photo samples can be reduced by some means before the screening process, so that the complexity of photo screening is reduced. The method comprises the following steps: the filtering is done from the time dimension, e.g. selecting only photos that are released within ten days, or from the space dimension, e.g. selecting only photos taken in the area where the end user is located. The practical significance of the latter approach is generally: and the condition that the reference value of the shooting parameters caused by the regional difference is not high is eliminated. For example, for landscape, southern sun may not be as valuable as northern snow. In addition, the photos can be selected from the dimension of the strength of the relationship chain, for example, only photos of friends that the terminal user is specially concerned about, friends with a large number of messages, or frequently accessed public accounts, and a part of photos with low reference value can be removed.
302. And acquiring shooting parameters from the attribute file of the photo.
As described above, the terminal may request the social platform for the selected photo, and then obtain the shooting parameters from the attribute file of the photo; or directly request the property file of the photo or even the shooting parameters from the social platform.
In another implementation manner of this embodiment, as an alternative to the above-mentioned manner of obtaining the shooting parameters, the terminal may also directly request the terminal of the social user for the shooting parameters under the condition of obtaining the authorization. Specifically, the method comprises the following steps: the terminal acquires the terminal identification of the social user through the social platform, establishes communication with the social user terminal according to the terminal identification and requests a photo attribute file stored in an album of the social user terminal, or requests a camera of the terminal of the latter terminal to use shooting parameters.
303. And shooting parameters of the photos of the objects to be shot in the viewfinder belonging to different classes of objects are removed.
The object is a subject to be photographed, and the similar object is a subject object that can use the same photographing mode in photographing parameters, which is determined by the appearance of the object itself. For example, people who shoot different ages can use a portrait mode; landscape modes can be used for shooting mountains, rivers, lakes and poises; cars, planes and even rockets in shooting motion can use the motion pattern. In contrast, the subject objects that cannot use the same photographing mode are heterogeneous objects such as the elderly and mountains.
In practical application, the difference of the shooting parameters used by different types of objects is large, and the reference value between the shooting parameters and the object is low, so that the object to be shot in the terminal camera view-finding frame can be firstly compared with the object in the social photo before the shooting parameters are used, if the shooting parameters and the object do not belong to the same type of object, the obtained shooting parameters are removed, and otherwise, the shooting parameters are kept to be used. Specifically, there are two ways to determine the same kind of object:
1) image recognition based determination
After the camera is started, the terminal identifies the object to be shot in the view frame. And acquiring photos in the social platform and identifying the content of the photos. And judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not. If the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
This method requires the terminal to obtain the photos of the social users, and is not suitable for the method in which the terminal directly requests the social platform for the shooting parameters.
In practical application, the image recognition process is time-consuming, and in order to improve shooting experience, the terminal can also request photos from the social platform periodically before starting the camera, and recognize and store the mode to which the photo content belongs in advance.
2) Judgment based on parameter comparison
When the camera is started, the terminal identifies the object to be photographed in the finder frame and determines a photographing mode to be used according to the object, for example, photographing a person using a portrait mode. The different shooting modes each correspond to a set of predefined shooting parameters, which are referred to as standard shooting parameters in the embodiments of the present disclosure for the sake of distinction. The terminal reads standard shooting parameters automatically set according to an object to be shot in the view finder frame, and then shooting parameters with the difference value larger than a preset threshold value from the standard shooting parameters are removed from the obtained shooting parameters.
The shooting parameters used for shooting the similar objects (whether predefined by a terminal or manually set by a user) are not greatly different in parameter quantity and parameter value, and by utilizing the characteristic, the obtained shooting parameters can be compared with the standard shooting parameters, and if the difference between the parameter quantity and/or the parameter value is smaller than the range limited by the preset threshold value, the shooting objects corresponding to the parameter quantity and/or the parameter value are considered to belong to the similar objects.
Compared with the above mode 1), the mode 2) has the advantages that on one hand, the calculation amount is greatly reduced, and the response speed of camera framing can be improved; on the other hand, the terminal is not required to obtain the photos of the social platform, so that the time consumption for downloading the photos can be reduced, and the privacy risk can be avoided.
304. And setting the acquired shooting parameters as the shooting parameters of the terminal camera.
After the photographing parameters of the heterogeneous objects are removed, the terminal sequentially performs steps 304 and 305, and performs a photographing operation according to the finally determined photographing parameters. In practical application, when a plurality of groups of shooting parameters remain after screening and removing, the terminal can randomly select one group of shooting parameters for use.
305. And controlling the terminal camera to execute shooting operation by using the set shooting parameters.
As a supplement to the mode of fig. 3, the personalized style of the terminal user can be fused into the photo by referring to the shooting parameters of the terminal user based on the reference of the shooting parameters of the social users and further combining the parameters used by the terminal user to shoot the photo, so that a more satisfactory shooting effect of the user can be obtained.
In selecting the terminal user to take the photos, the embodiment preferably uses the terminal user to repeatedly take the photos for the same object for multiple times, and finally screens the retained photos. When a user performs daily shooting, the user may try to obtain multiple pictures according to different shooting parameters. The unsatisfactory photos are then deleted in the album while the most satisfactory ones are retained. In this case, the terminal determines a plurality of pictures repeatedly taken with respect to the same subject based on the image recognition technology in conjunction with the photographing time. When a photo is deleted, the terminal records the shooting parameters of the reserved photo. After the shooting parameters of the social photos are obtained, weighting calculation is carried out on the obtained shooting parameters and the shooting parameters of the photos shot by the terminal user, and the corrected shooting parameters are obtained.
In one example, the weighting may be performed as follows:
(A social photo parameter + B user captured photo parameter)/2
Wherein, A and B are preset weight values, and the sum of the two is 1.
The above is the description of the method for controlling the camera in this embodiment. The above description takes the photo shooting as an example, and is also applicable to the video shooting in practical application, and the implementation manners of the two are similar, and are not described herein again.
The embodiment of the disclosure discloses a device for controlling camera shooting, which is used for implementing the method shown in the above-mentioned fig. 1 and fig. 3.
Referring to fig. 4, fig. 4 is a block diagram illustrating an apparatus for controlling photographing by a camera according to an exemplary embodiment. As shown in fig. 4, the apparatus includes:
an obtaining unit 410, configured to obtain shooting parameters used by a user who has a social relationship with an end user;
a setting unit 420, configured to set the acquired shooting parameters as shooting parameters of the terminal camera;
and a control unit 430 for controlling the terminal camera to perform a photographing operation using the set photographing parameters.
Optionally, as shown in fig. 5, the obtaining unit 410 includes:
a determining module 411, configured to determine, in the social platform, a photo uploaded by a user who has a social relationship with the end user;
and an obtaining module 412, configured to obtain the shooting parameters from the property file of the photo.
Optionally, the photos uploaded by the users having social relationships with the end users include:
uploading a friend of the terminal user to a photo in the social platform; or,
the photos uploaded to the social platform by the users with the same type of attribute tags as the terminal users; or,
photos that friends are praised in the social platform; or,
photos released by public accounts concerned by the terminal user.
Optionally, as shown in fig. 5, the apparatus further comprises:
a first eliminating unit 440, configured to identify an object to be photographed in the finder frame after acquiring a photographing parameter used by a user having a social relationship with the end user;
judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not;
if the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
Optionally, as shown in fig. 5, the apparatus further comprises:
the second eliminating unit 450 is configured to, after acquiring shooting parameters used by a user who has a social relationship with a terminal user, read standard shooting parameters automatically set by the terminal according to an object to be shot in the finder frame;
and eliminating the shooting parameters of which the difference value with the standard shooting parameters is larger than a preset threshold value from the obtained shooting parameters.
Optionally, as shown in fig. 5, the apparatus further comprises:
a correcting unit 460, configured to perform weighted calculation on the acquired shooting parameters and shooting parameters of a picture that has been taken by the terminal user, to obtain corrected shooting parameters;
wherein the terminal user has taken a picture by screening a retained picture from a plurality of repeatedly taken pictures.
The device for controlling the camera to shoot can acquire shooting parameters used by a user who has a social relationship with a terminal user, sets the acquired shooting parameters as the shooting parameters of the terminal camera, and controls the camera to execute shooting operation according to the shooting parameters. Compared with the mode of using fixed shooting parameters, the method and the device have the advantages that the social attributes of the user are utilized, a way for the user to use the shooting parameters used by other users is provided for reference, the selection modes of the shooting parameters are enriched for the small and white users, the user can repeat the trace of other people and the length of a user who can draw energy, and a more satisfactory picture is shot.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 600 for controlling camera shooting according to an exemplary embodiment. For example, the apparatus 600 may be provided as a server. Referring to fig. 6, the apparatus 600 includes a processor 622, which further includes one or more processors, and memory resources, represented by memory 632, for storing instructions, such as applications, that are executable by the processor 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processor 622 is configured to execute instructions to perform the methods provided by the embodiments illustrated in fig. 1 and 3 described above.
The apparatus 600 may also include a power component 626 configured to perform power management of the apparatus 600, a wired or wireless network interface 650 configured to connect the apparatus 600 to a network, and an input/output (I/O) interface 658. The apparatus 600 may operate based on an operating system stored in the memory 632, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 632 comprising instructions, executable by the processor 622 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a server, enable the server to perform the method provided by the embodiments of fig. 1 and 3 described above.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method as provided in the embodiments of figures 1 and 3 above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for controlling shooting of a camera is characterized by comprising the following steps:
determining photos uploaded by users having social relationships with end users in a social platform;
acquiring shooting parameters from the attribute file of the photo;
reading standard shooting parameters automatically set by the terminal according to an object to be shot in a view frame, wherein the standard shooting parameters are a group of shooting parameters predefined according to different shooting objects;
the shooting parameters with the difference value larger than a preset threshold value from the standard shooting parameters are removed from the obtained shooting parameters, and the shooting parameters with the difference value not larger than the preset threshold value from the standard shooting parameters are reserved;
setting the reserved shooting parameters as the shooting parameters of the terminal camera;
and controlling the terminal camera to execute shooting operation by using the set shooting parameters.
2. The method of claim 1, wherein the uploaded photos of the users having a social relationship with the end user comprise:
the friends of the terminal user upload photos in the social platform; or,
a photo uploaded to the social platform by a user having a same-class attribute tag as the end user; or,
a photo that friends are praised in the social platform; or,
and the terminal user concerns the photos released by the public account.
3. The method of claim 1, wherein after obtaining the shooting parameters from the property file of the photograph, the method further comprises:
identifying an object to be shot in a viewing frame;
judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not;
if the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
4. The method of claim 1, further comprising:
carrying out weighted calculation on the reserved shooting parameters and the shooting parameters of the pictures shot by the terminal user to obtain corrected shooting parameters;
wherein the terminal user has taken a picture by screening a reserved picture from a plurality of repeatedly taken pictures.
5. An apparatus for controlling camera shooting, the apparatus comprising:
the determining module is used for determining photos uploaded by users having social relations with the terminal users in the social platform;
the acquisition module is used for acquiring shooting parameters from the attribute file of the photo;
the second eliminating unit is used for reading standard shooting parameters automatically set by the terminal according to an object to be shot in a view frame, wherein the standard shooting parameters are a group of shooting parameters predefined according to different shooting objects, shooting parameters with the difference value larger than a preset threshold value from the standard shooting parameters are eliminated from the obtained shooting parameters, and shooting parameters with the difference value not larger than the preset threshold value from the standard shooting parameters are reserved;
the setting unit is used for setting the reserved shooting parameters as the shooting parameters of the terminal camera;
and the control unit is used for controlling the terminal camera to execute shooting operation by using the set shooting parameters.
6. The apparatus of claim 5, wherein the uploaded photos of the users having social relationships with the end user comprise:
the friends of the terminal user upload photos in the social platform; or,
a photo uploaded to the social platform by a user having a same-class attribute tag as the end user; or,
a photo that friends are praised in the social platform; or,
and the terminal user concerns the photos released by the public account.
7. The apparatus of claim 5, further comprising:
the first removing unit is used for identifying an object to be shot in a view frame after acquiring shooting parameters from the attribute file of the photo;
judging whether the object to be shot and the shot object in the picture corresponding to the shooting parameters belong to the same kind of object or not;
if the judgment result is yes, the shooting parameters are reserved, otherwise, the shooting parameters are removed.
8. The apparatus of claim 5, further comprising:
the correcting unit is used for carrying out weighted calculation on the reserved shooting parameters and the shooting parameters of the pictures shot by the terminal user to obtain corrected shooting parameters;
wherein the terminal user has taken a picture by screening a reserved picture from a plurality of repeatedly taken pictures.
9. An apparatus for controlling camera shooting, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method steps of any one of claims 1 to 4.
10. A computer-readable storage medium having instructions stored thereon, which when executed by a processor implement the method steps of any of claims 1 to 4.
CN201810343830.2A 2018-04-17 2018-04-17 Method and device for controlling camera to shoot and computer readable storage medium Active CN108540722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810343830.2A CN108540722B (en) 2018-04-17 2018-04-17 Method and device for controlling camera to shoot and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810343830.2A CN108540722B (en) 2018-04-17 2018-04-17 Method and device for controlling camera to shoot and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108540722A CN108540722A (en) 2018-09-14
CN108540722B true CN108540722B (en) 2020-08-11

Family

ID=63480441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810343830.2A Active CN108540722B (en) 2018-04-17 2018-04-17 Method and device for controlling camera to shoot and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108540722B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3846439A4 (en) * 2018-10-15 2021-09-15 Huawei Technologies Co., Ltd. Intelligent photographing method and system, and related device
JP2022039702A (en) 2020-08-28 2022-03-10 キヤノン株式会社 Imaging apparatus, control method of imaging apparatus, and program
CN114860120A (en) * 2021-02-04 2022-08-05 华为技术有限公司 Execution method and device for control operation, storage medium and control
WO2024128490A1 (en) * 2022-12-15 2024-06-20 Samsung Electronics Co., Ltd. Systems and methods for adjusting camera configurations in a user device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731599A (en) * 2012-10-16 2014-04-16 北京千橡网景科技发展有限公司 Photographing method and camera
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN105847413A (en) * 2016-05-10 2016-08-10 珠海市魅族科技有限公司 Camera parameter processing method, apparatus and system, and server
CN107682627A (en) * 2017-09-28 2018-02-09 努比亚技术有限公司 A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271467A1 (en) * 2014-03-20 2015-09-24 Neal Weinstock Capture of three-dimensional images using a single-view camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731599A (en) * 2012-10-16 2014-04-16 北京千橡网景科技发展有限公司 Photographing method and camera
CN105574006A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Method and device for establishing photographing template database and providing photographing recommendation information
CN105847413A (en) * 2016-05-10 2016-08-10 珠海市魅族科技有限公司 Camera parameter processing method, apparatus and system, and server
CN107682627A (en) * 2017-09-28 2018-02-09 努比亚技术有限公司 A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108540722A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108540722B (en) Method and device for controlling camera to shoot and computer readable storage medium
JP5123914B2 (en) Method and apparatus for automatically capturing and managing images
CN101910936B (en) Guided photography based on image capturing device rendered user recommendations
Yin et al. Socialized mobile photography: Learning to photograph with social context via mobile devices
US20130027571A1 (en) Camera having processing customized for identified persons
CN106664366B (en) Image processing apparatus, photographic device and image processing method
WO2017016069A1 (en) Photographing method and terminal
US20130027569A1 (en) Camera having processing customized for recognized persons
US8913150B2 (en) Dynamic image capture utilizing prior capture settings and user behaviors
US9558428B1 (en) Inductive image editing based on learned stylistic preferences
KR102146855B1 (en) Photographing apparatus and method for sharing setting values, and a sharing system
CN107424117B (en) Image beautifying method and device, computer readable storage medium and computer equipment
CN112702521A (en) Image shooting method and device, electronic equipment and computer readable storage medium
JP2009055088A (en) Photographic support system
CN105812670B (en) A kind of method and terminal taken pictures
CN106815803A (en) The processing method and processing device of picture
CN106657798A (en) Photographing method for intelligent terminal
CN110581950B (en) Camera, system and method for selecting camera settings
CN111294502A (en) Photographing method, device with photographing function, equipment and storage medium
CN114466133B (en) Photographing method and device
US9888161B2 (en) Generation apparatus and method for evaluation information, electronic device and server
CN111757012A (en) Image processing method based on combination of individual and photographic aesthetics
CN116600190A (en) Photographing control method and device for mobile phone and computer readable storage medium
CN111083348A (en) Mobile terminal, photographing method thereof and computer storage medium
CN113256523A (en) Image processing method and apparatus, medium, and computer device

Legal Events

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