Shooting method, terminal device and computer readable storage medium
By detecting application properties and dynamically setting the photo mode, the problem that the image attributes cannot directly meet the needs when the photo function is started by different applications or the same application, and the flexible setting and operation simplification of image attributes are achieved.
Patent Information
- Application Number
- CN202010303000.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-16
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-04-16
AI Technical Summary
When the photo-taking function is activated by different applications or the same application, the acquired image attributes cannot directly meet the needs, and the user needs to edit it multiple times to meet the requirements, which is cumbersome.
By detecting the application properties of the application, dynamically set the photo mode so that different applications can obtain pictures that meet specific needs when starting the photo function, including setting attributes such as pixels, sizes, and contrast.
It realizes that different applications can obtain pictures that meet the needs when starting the photo function, simplifying the operation process and avoiding users from editing multiple images.
Smart Images

Figure CN111491099B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal technology, and in particular to a shooting method, a terminal device and a computer-readable storage medium. Background Art
[0002] Currently, whether the camera function is started in different applications or in the same application, pictures with the same picture attributes are uniformly obtained by starting the same preset camera mode, and pictures can be quickly obtained, wherein the picture attributes include the length and width dimensions of the picture and the pixel size of the picture. However, the obtained pictures cannot be used directly to a large extent, resulting in the user needing to perform secondary or multiple edits on the pictures to obtain pictures that meet the needs, and the operation is cumbersome, wherein the editing methods include cropping, resizing, adjusting the resolution, and adjusting the format.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is a shooting method, a terminal device and a computer-readable storage medium, which aims to solve the problem that when the photo-taking function is started in different applications or in the same application, pictures with the same image attributes obtained by starting the same preset photo-taking mode cannot be used directly, and the pictures need to be re-edited to obtain pictures that meet the requirements, which is cumbersome to operate.
[0005] To achieve the above object, the present invention provides a shooting method, which comprises:
[0006] Open an application with a camera function;
[0007] detecting application properties of the application;
[0008] The photographing mode of the photographing function of the application program is set to the first photographing mode according to the application attribute.
[0009] Optionally, after the step of opening an application with a camera function, the shooting method includes:
[0010] After receiving the camera function instruction triggered by the application, starting the camera function;
[0011] After starting the camera function, executing the step of setting the camera mode of the camera function of the application program to the first camera mode according to the application attribute;
[0012] Alternatively, when starting the camera function, the step of setting the camera mode of the camera function of the application program to the first camera mode according to the application attribute is performed.
[0013] Optionally, the step of setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute includes:
[0014] Obtaining functional attributes of the camera function;
[0015] The photographing mode of the photographing function of the application program is set to a first photographing mode according to the application attribute and the function attribute.
[0016] Optionally, the step of setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute includes:
[0017] Get reference images;
[0018] Obtaining photographing parameters of the reference image;
[0019] The photographing mode of the photographing function of the application program is set to a first photographing mode according to the application attribute and the photographing parameter.
[0020] Optionally, the application is a social communication application, and the reference picture includes at least one of a picture in a chat record and a picture in a sharing record.
[0021] Optionally, the step of setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute includes:
[0022] Get the current environment parameters;
[0023] The photographing mode of the photographing function of the application program is set to a first photographing mode according to the application attribute and the environmental parameter.
[0024] Optionally, the application includes a plurality of photographing functions, and at least one of the plurality of photographing functions is different from a first photographing mode activated by other photographing functions.
[0025] Optionally, when the photographing attributes of the first photographing mode are different, the photographing modes corresponding to the first photographing mode are different, wherein the photographing attributes include at least one of the following: pixels of the photographed photo, the size of the photographed photo, the aspect ratio of the photographed photo, the number of photographing times, the photographing time, contrast, color saturation, hue and sharpness.
[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a shooting program stored in the memory and executable on the processor, and when the shooting program is executed by the processor, the various steps of the shooting method described above are implemented.
[0027] In addition, to achieve the above-mentioned purpose, the present invention further provides a computer-readable storage medium, wherein a shooting program is stored on the computer-readable storage medium, and when the shooting program is executed by the processor, each step of the shooting method described above is implemented.
[0028] The shooting method proposed in the present invention detects application attributes of an application with a camera function, such as the application name and application type. When the application attributes are different, the first shooting mode set corresponding to the application may be different, that is, different shooting modes can be set for different applications in a targeted manner, so that different applications with a camera function can obtain pictures that meet the usage requirements of different applications according to the set shooting modes when starting the shooting function. The operation is simple, and diversified settings can be implemented for the shooting modes of starting the shooting function of different applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a structural block diagram of a terminal device involved in each embodiment of the shooting method of the present invention;
[0030] Figure 2 is a schematic diagram of a process of a first embodiment of a photographing method of the present invention;
[0031] Figure 3 is a schematic flow chart of a second embodiment of a photographing method of the present invention;
[0032] Figure 4 is a schematic diagram of a flow chart of a third embodiment of a photographing method of the present invention;
[0033] Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a photographing method according to the present invention.
[0034] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0036] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0037] The terminal device may be implemented in various forms. For example, the terminal device described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc.
[0038] It will be understood by those skilled in the art that, in addition to the elements specifically for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type mobile terminals.
[0039] Please refer to Figure 1 , Figure 1 1 is a block diagram of a terminal device involved in each embodiment of the shooting method of the present invention. The terminal device may include: a memory 101, a processor 102, and a display unit 103. Those skilled in the art will understand that Figure 1 The structural block diagram of the terminal device shown does not constitute a limitation of the terminal device. The terminal device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them, the memory 101 stores a central control system and a shooting program. The processor 102 is the control center of the terminal device. The processor 102 executes the shooting program stored in the memory 101 to implement the steps of each embodiment of the shooting method of the present invention. The display unit 103 includes a display panel, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., for displaying an interface browsed by the user. The display unit 103 can be integrated with a touch panel. When the touch panel detects a touch operation of a finger on or near it, it is transmitted to the processor 102 to determine the type of touch event, and then the processor 102 implements the function corresponding to the type of touch event.
[0040] Based on the structural block diagram of the above terminal device, various embodiments of the shooting method of the present invention are proposed.
[0041] The present invention provides a shooting method, please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a photographing method of the present invention. In this embodiment, the photographing method includes the following steps:
[0042] Step S10, opening an application with a camera function;
[0043] It should be noted that applications with camera functions can be divided into dedicated camera applications and non-dedicated camera applications. Among them, dedicated camera applications are applications mainly used for taking pictures or modifying and beautifying pictures, such as Meitu Xiuxiu and Meiyan Camera; while non-dedicated camera applications are applications with main functions and attached camera functions, wherein non-dedicated camera applications include at least one of social communication applications, leisure and entertainment applications, and security applications, that is, each application can be classified according to its function, for example, QQ and WeChat are social communication applications, e-books, games and music players are leisure and entertainment applications, and antivirus software is a security application. In addition, when the non-dedicated camera application turns on the camera function, the camera function can be turned on through the function interface in the application to enter the camera mode, wherein the function interface is one or more, which can be a chat interface, an avatar change interface or a sharing interface, different function interfaces turn on different camera functions, and the corresponding camera modes of at least one camera function and other camera functions in different camera functions can be the same or different. For example, when the non-dedicated camera application software is WeChat, the camera function can be turned on through the WeChat chat interface to enter the camera mode to send pictures to the chat message recipient, or enter the video mode to record a short video and send the short video to the chat message recipient; the camera function can also be turned on through the change avatar interface to enter the camera mode to take an avatar; the camera function can also be turned on through the share circle of friends interface to enter the camera mode to take photos for sharing. It is easy to understand that the opening of the application can be triggered by receiving a click on the application icon corresponding to the application, or the opening of the application can be triggered by a preset touch condition, and this embodiment does not limit this.
[0044] Step S20, detecting the application attributes of the application;
[0045] Step S30: setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute.
[0046] It should be noted that application attributes include but are not limited to application name and application type. Among them, application type includes dedicated photography type and non-dedicated photography type. It can be understood that the dedicated photography type may correspond to a dedicated photography application software, and the non-dedicated photography type may correspond to a non-dedicated photography application software. The application attributes of the application can be detected by monitoring the startup information of the application when the application is opened, and then obtaining the application name and the application type corresponding to the application name, wherein the correspondence between the application and application attributes such as the application name and the application type has been set in advance.
[0047] In actual application, the first photographing mode can be set through photographing attributes, wherein the photographing attributes include at least one of the following: the pixels of the photographed photo, the size of the photographed photo, the aspect ratio of the photographed photo, the number of shots, the shooting time, contrast, color saturation, hue and sharpness. It can be understood that when the photographing attributes of the first photographing mode are different, the photographing modes corresponding to the first photographing mode are different, wherein the pictures obtained by shooting in different photographing modes are different. Optionally, the application includes multiple photographing functions, and at least one of the multiple photographing functions may be the same as or different from the first photographing mode opened by other photographing functions. For example, when at least one of the multiple photographing functions is different from the first photographing mode opened by other photographing functions, taking WeChat as an example of the application, the photographing function can be started through WeChat through at least one functional interface of the chat interface, the avatar changing interface and the sharing interface, wherein different functional interfaces correspond to starting different photographing functions, and the first photographing mode corresponding to starting the photographing function in the chat interface is different from the first photographing mode corresponding to starting the photographing function in the avatar changing interface, and the first photographing mode corresponding to starting the photographing function in the sharing interface is different from at least one of the first photographing modes.
[0048] The camera mode of the camera function of the application is set to the first camera mode according to the application attributes, and the corresponding application attributes include but are not limited to the application name and the application type. The camera mode of the camera function of the application can be set to the first camera mode according to the application name, that is, different camera modes can be set for different applications, wherein the application name and the first camera mode can be set in advance by the user; the frequently used camera mode corresponding to the application name can also be obtained, and the frequently used camera mode is used as the first camera mode corresponding to the application name, and the first camera mode can be set through the camera attributes, wherein the camera attributes include at least one of the following: pixels of the taken photos, size of the taken photos, aspect ratio of the taken photos, number of shots, shooting time, contrast, color saturation, hue and sharpness, which are not limited; the camera function of the application can also be set according to the application type. The camera mode of the camera function of the application can be set to the first camera mode, that is, different application names can be set to the same camera mode when the application type is the same; the camera mode of the camera function of the application can also be set to the first camera mode according to the application name and the application type, wherein the first camera mode can be set through the camera attributes, and the priority of the application name and the application type can be compared. The application attribute with a high priority can set one or more of the camera attributes. For example, when the priority of the application type is higher than the priority of the application name, the camera mode of the camera function of the application can be directly set to the first camera mode according to the application type; the camera attributes corresponding to the application name and the application type can also be allocated in advance, that is, the application name can correspond to a part of the camera attributes, and the application type can correspond to a part of the camera attributes. This embodiment does not limit this.
[0049] Optionally, step S20 includes:
[0050] After receiving a camera function instruction triggered by an application, start the camera function;
[0051] After starting the camera function, execute step S30; or,
[0052] When the camera function is started, step S30 is executed.
[0053] It should be noted that the photo function instruction can be triggered by clicking a photo function button or key, or by a preset touch gesture. After the photo function instruction is triggered by the application, the photo function can be started by directly starting the photo function by triggering the corresponding icon of the dedicated photo application software; the photo function can also be started by triggering the function interface in the non-dedicated photo application software to enter the photo mode, where the function interface is one or more, which can be a chat interface, an avatar change interface, or a sharing interface. It is understandable that step S30 can also be performed before the photo function is started, that is, the photo mode of the photo function of the application is set to the first photo mode according to the application attributes, and the first photo mode can be directly started when the photo function is started by the photo function instruction.
[0054] In the technical solution disclosed in the present embodiment, by detecting the application attributes of an application with a photographing function, such as the application name and the application type, when the application attributes are different, the first photographing mode set corresponding to the application may be different, that is, different photographing modes can be set for different applications in a targeted manner, so that when different applications with a photographing function start the photographing function, pictures that meet the usage requirements of different applications can be obtained according to the set photographing modes. The operation is simple, and diversified settings can be implemented for photographing modes that start the photographing function of different applications.
[0055] Based on the above first embodiment, a second embodiment of the photographing method of the present invention is proposed. Please refer to Figure 3 , Figure 3 1 is a flow chart of a second embodiment of the photographing method of the present invention. In this embodiment, the photographing function is started, and step S30 includes:
[0056] Step S31, obtaining the functional attributes of the camera function;
[0057] Step S32: setting the photographing mode of the photographing function of the application program to a first photographing mode according to the application attribute and the function attribute.
[0058] It should be noted that the application attributes include but are not limited to the application name and application type. The functional attributes of the camera function include at least one of chatting, changing avatars, and sharing. The functional attributes of the camera function can be obtained by obtaining the interface that calls the camera function process, and determining the functional attributes of the camera function by obtaining the interface attribute information of the interface, wherein the interface attribute information includes but is not limited to the application name, camera function, and application type.
[0059] According to the application attributes and function attributes, the function mode of the camera function of the application is set to the first camera mode. In fact, the different camera functions under different applications can be distinguished by the application attributes and function attributes, and different camera functions under the same application can also be distinguished. In the actual application process, the corresponding relationship between the application attributes and function attributes and the camera mode of the camera function can be set in advance by the user; it can also be output when receiving the camera function instruction triggered by the application, and the camera mode selection interface can be output by detecting that the user selects the target camera mode in the camera mode selection interface, and then the camera mode of the camera function is set by the target camera mode; it can also be set by setting reference pictures for the application attributes and function attributes in advance, such as setting reference pictures for different functions of the same application, and then setting the camera mode of the camera function by obtaining the camera parameters of the reference pictures, that is, setting the camera attributes of the camera mode by the camera parameters. This embodiment does not limit the specific implementation of this step.
[0060] For ease of understanding, we take WeChat as an example. The camera function in WeChat can be started from the chat interface, the avatar change interface, or the Moments sharing interface. In actual application, when the camera function is started through the chat interface, the user needs to send the taken photos directly to the chat object. Different chat objects have different requirements for photos, including but not limited to colleagues, friends, relatives and classmates. For example, compared with the pictures used by work partners to communicate about work in the chat dialog box, when the chat object is an ordinary friend, the pictures shared in the chat dialog box only need to ensure that the pictures are clear and visible, which is conducive to saving traffic. Optionally, when the camera function is started through the chat dialog box, the camera mode of the camera function can be set according to the chat reference photo in the identity information by obtaining the identity information of the chat object, wherein the identity information includes but is not limited to the name of the chat object and the chat reference photo, and the chat reference picture can be a picture in the chat record or a picture pre-set by the user. In addition, the chat objects can be pre-divided into chat levels, and then the camera mode of the camera function can be set according to the chat level. For example, the chat level between colleagues is higher than that between friends. It should be noted that the higher the chat level, the higher the quality requirement of the picture taken by the corresponding camera mode, such as high resolution of the picture.
[0061] In actual application, when starting the photo function by changing the avatar interface, since the image requirements and output display position of the required avatar are fixed, the photo mode can be set directly according to the image requirements of the avatar, such as obtaining the pixel size, length and width dimensions, contrast and color saturation of the avatar image to set the photo properties of the photo mode, so as to directly obtain the avatar image that meets the requirements, avoiding the user to perform secondary or multiple edits on the taken avatar, such as cropping, resizing, adjusting resolution and adjusting format, so as to obtain the avatar image in one go to meet the image usage requirements. In addition, the output display position coordinates of the avatar image can be pre-set to realize the output of the taken avatar image to the preset display position coordinates for display. Optionally, after detecting the user's instruction to confirm the avatar image, the step of outputting the taken avatar image to the preset display position coordinates for display is executed.
[0062] In actual application, when directly taking pictures for sharing, the pictures in the sharing record can be directly obtained as reference pictures, and then the shooting parameters of the reference pictures, such as the pixel size of the picture, the length and width of the picture, and the color saturation of the picture, are obtained, and the shooting attributes of the shooting mode are set to obtain the first shooting mode, and then shooting is performed according to the first shooting mode; when the sharing type is in the form of picture puzzles or splicing, the picture shooting parameters of the picture splicing can be obtained, such as the number of picture splicing and the picture size of at least one picture in the picture splicing, and the number of shooting times can be obtained through the number of picture splicing, and then the shooting attributes of the shooting mode can be set according to the picture shooting parameters. When the number of shooting times of the shooting attribute is multiple times, pictures can be taken at preset time intervals to obtain multiple pictures, or the next preset shooting mode can be automatically entered after detecting that a picture has been taken.
[0063] Optionally, after receiving the camera function instruction triggered by the application, the camera function is started; after starting the camera function, step S32 is executed; when starting the camera function, step S32 is executed. It should be noted that the camera function instruction can be triggered by clicking the camera function button or key, or by a preset touch gesture. After the camera function instruction is triggered by the application, the camera function can be started directly by triggering the corresponding icon of the dedicated camera application software; the camera function can also be turned on and enter the camera mode by triggering the function interface in the non-dedicated camera application software, where the function interface is one or more, which can be a chat interface, an avatar change interface or a sharing interface.
[0064] In the technical solution disclosed in this embodiment, when the application starts the camera function, by obtaining the functional attributes of the camera function, different camera functions of the same application can be determined through the application attributes and the functional attributes, and different first camera modes are set for different camera functions to directly obtain the image requirements that meet each camera function in the application. The operation is simple and convenient, and the user does not need to perform secondary or multiple edits on the taken pictures. In addition, when the same application starts different camera functions, the camera modes corresponding to the different camera functions can be set in a targeted manner to enable different camera functions to obtain pictures that meet the use requirements of the application according to the set camera modes, and to achieve diversified settings for the camera modes corresponding to different camera functions in the application.
[0065] Based on the above first embodiment, a third embodiment of the photographing method of the present invention is proposed. Please refer to Figure 4 , Figure 4 FIG. 1 is a flow chart of a third embodiment of the photographing method of the present invention. In this embodiment, step S30 includes:
[0066] Step S33, obtaining a reference picture;
[0067] Step S34, obtaining photographing parameters of the reference image;
[0068] Step S35: setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute and the photographing parameter.
[0069] It should be noted that the photographing parameters of the reference image can be used as a reference value for setting the photographing attributes of the photographing mode. The photographing mode obtained by setting the photographing attributes by the photographing parameters of the reference image can obtain a picture with similar picture attributes to the reference image when shooting using the photographing mode, wherein the picture attributes include but are not limited to pixel size, length and width dimensions, resolution, picture format, contrast, and color saturation. It is understandable that the reference image can be pre-associated with the application, and the photographing parameters can be obtained by obtaining the reference image corresponding to the application, and then the photographing mode is set by the application attributes and the photographing parameters to obtain the first photographing mode, i.e., the photographing mode of the photographing function of the application. Optionally, when the application is a social communication application such as WeChat or Weibo, the reference image includes at least one of the pictures in the chat record and the pictures in the sharing record. The photographing parameters of the reference image include at least one of the pixel size of the photographed photo, the size of the photographed photo, the length and width ratio of the photographed photo, the number of shots, the shooting time, the contrast, the color saturation, the hue, and the sharpness. To obtain the photographing parameters of the reference image, the Exchangeable Image File (EXIF) information of the reference image can be directly read, and the parameter information of the reference image, that is, the image attributes and photographing parameters of the image, can be read from the EXIF information. EXIF information is a format specially set for digital photos. Such a format can be used to record the attribute information of digital photos, such as the shooting time, color space, image size, image resolution, image format, image pixels, etc. of the photo, which is not limited here.
[0070] The camera mode of the camera function of the application is set to the first camera mode according to the application attributes and the camera parameters, wherein the first camera mode is set through the camera attributes, and the application attributes and the camera parameters can be prioritized in advance, and then by comparing the priorities of the application attributes and the camera parameters, the application attributes or the camera parameters with high priorities can be used to set one or more attributes in the camera attributes; the camera attributes corresponding to the application attributes and the camera parameters can also be allocated in advance, that is, the application attributes are corresponding to a part of the attributes in the camera attributes, and the camera parameters can be corresponding to another part of the attributes in the camera attributes, which is not limited in this embodiment. Optionally, step S35 includes setting the camera mode of the camera function of the application to the first camera mode according to the application attributes, the function attributes and the camera parameters, and the specific implementation principle is similar to step S35, i.e., setting the camera mode of the camera function of the application to the first camera mode according to the application attributes and the camera parameters, and will not be repeated here.
[0071] In the technical solution disclosed in this embodiment, the photographing mode of the photographing function of the application, namely the first photographing mode, is set by combining the application attributes of the application and the photographing parameters of the reference picture. While obtaining pictures that meet the usage requirements of different applications according to the set first photographing mode, the probability of obtaining pictures that can be adapted to the usage requirements of the photographing function of different applications is further improved.
[0072] Based on the above first embodiment, a fourth embodiment of the photographing method of the present invention is proposed. Please refer to Figure 5 , Figure 5 FIG. 4 is a flow chart of a fourth embodiment of the photographing method of the present invention. In this embodiment, step S30 includes:
[0073] Step S36, obtaining current environmental parameters;
[0074] Step S37: setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute and the environmental parameter.
[0075] It should be noted that the current environmental parameters include at least one of location information, ambient light information, time information, weather information and season information. The current environmental parameters can be obtained by obtaining the current location information through a GPS (Global Positioning System) positioning module, the current ambient light information can be obtained through a light sensing device such as a light sensor, the current season information and time information can be determined by obtaining the date and specific time point, and optionally, the current time information, weather information and season information can also be obtained in real time through the network.
[0076] The photographing mode of the photographing function of the application is set to the first photographing mode according to the application attributes and the environmental parameters, wherein the first photographing mode is set by the photographing attributes, and the application attributes and the environmental parameters can be prioritized in advance, and then by comparing the priorities of the application attributes and the environmental parameters, the application attributes or the environmental parameters with high priorities are used to set one or more attributes of the photographing attributes; the photographing attributes corresponding to the application attributes and the environmental parameters can also be allocated in advance, that is, the application attributes are corresponding to a part of the attributes in the photographing attributes, and the environmental parameters can be corresponding to another part of the attributes in the photographing attributes, which is not limited in this embodiment. Optionally, step S37 includes setting the photographing mode of the photographing function of the application to the first photographing mode according to the application attributes, the functional attributes and the environmental parameters; or, step S37 includes setting the photographing mode of the photographing function of the application to the first photographing mode according to the application attributes, the functional attributes, the photographing parameters of the reference picture and the environmental parameters. The specific implementation principle is similar to step S37, i.e., setting the photographing mode of the photographing function of the application to the first photographing mode according to the application attributes and the environmental parameters, and will not be repeated here.
[0077] In the technical solution disclosed in this embodiment, the photographing mode of the photographing function of the application, namely the first photographing mode, is set by combining the application attributes and environmental parameters of the application. While obtaining pictures that meet the usage requirements of different applications according to the set first photographing mode, the shooting quality of the pictures is improved.
[0078] The present invention also provides a terminal device, which includes a memory, a processor, and a shooting program stored in the memory and executable on the processor. When the shooting program is executed by the processor, the steps of the shooting method in any of the above embodiments are implemented.
[0079] The present invention also provides a computer-readable storage medium, on which a shooting program is stored. When the shooting program is executed by a processor, the steps of the shooting method in any of the above embodiments are implemented.
[0080] In the embodiments of the terminal device and computer-readable storage medium provided by the present invention, all technical features of the above-mentioned embodiments of the shooting method are included, and the expansion and explanation content of the specification are basically the same as those of the above-mentioned embodiments of the shooting method, which will not be repeated here.
[0081] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0082] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a mobile terminal (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present invention.
[0084] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A shooting method, characterized in that: The shooting method comprises: Open an application with a camera function; detecting application properties of the application; The method of setting a photographing mode of a photographing function of the application to a first photographing mode according to the application attributes comprises: obtaining a reference picture; obtaining photographing parameters of the reference picture, wherein the reference picture is associated with the application; and setting the photographing mode of the photographing function of the application to the first photographing mode according to the application attributes and the photographing parameters.
2. The shooting method according to claim 1, characterized in that: After the step of opening an application with a camera function, the shooting method includes: After receiving the instruction of the camera function triggered by the application, starting the camera function; After starting the camera function, executing the step of setting the camera mode of the camera function of the application program to the first camera mode according to the application attribute; Alternatively, when starting the camera function, the step of setting the camera mode of the camera function of the application program to the first camera mode according to the application attribute is performed.
3. The shooting method according to claim 2, characterized in that: The step of setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute comprises: Obtaining functional attributes of the camera function; The photographing mode of the photographing function of the application program is set to a first photographing mode according to the application attribute and the function attribute.
4. The shooting method according to claim 1, characterized in that: The application is a social communication application, and the reference picture includes at least one of a picture in a chat record and a picture in a sharing record.
5. The shooting method according to claim 1 or 2, characterized in that: The step of setting the photographing mode of the photographing function of the application program to the first photographing mode according to the application attribute comprises: Get the current environment parameters; The photographing mode of the photographing function of the application program is set to a first photographing mode according to the application attribute and the environmental parameter.
6. The shooting method according to claim 1, characterized in that: The application includes a plurality of photographing functions, and at least one of the plurality of photographing functions is different from a first photographing mode opened by other photographing functions.
7. The shooting method according to claim 6, characterized in that: When the photographing attributes of the first photographing mode are different, the photographing modes corresponding to the first photographing mode are different, wherein the photographing attributes include at least one of the following: pixels of the photographed photo, size of the photographed photo, aspect ratio of the photographed photo, number of photographing times, photographing time, contrast, color saturation, hue and sharpness.
8. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and a shooting program stored in the memory and executable on the processor, wherein the shooting program implements the steps of any one of the shooting methods of claims 1 to 7 when executed by the processor.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a shooting program, and when the shooting program is executed by the processor, the steps of the shooting method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method of calling underlayer effect mode of shooting function of mobile terminal, and mobile terminal
CN104967784A
Photographing parameter setting method and mobile terminal
CN107395976A
