Photographing method and device, electronic equipment, chip and storage medium
By pre-acquisitioning images and parsing composition strategies, automated intelligent composition for taking pictures is realized, solving the problem of poor composition in the existing technology, and improving imaging quality and user experience.
Patent Information
- Application Number
- CN202411836286.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-12-12
AI Technical Summary
The prior art is difficult to realize automated intelligent composition of taking photos, resulting in poor composition of photos taken by users and low imaging quality.
By pre-acquisitioning images using shooting parameters with a larger focal length than the current shooting parameters, the pre-acquisitioned images are parsed to obtain composition strategies, and the composition strategy is displayed on the preview screen, and the third image is acquired after confirmation by the user.
It realizes automatic intelligent composition for taking photos, helping users take photos with better composition, and improving imaging quality and user photography experience.
Smart Images

Figure CN119653227A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, specifically to the field of image detection and image enhancement, and in particular to a photographing method, device, electronic device, chip and storage medium. Background Art
[0002] Image aesthetics, also known as computer aesthetics, is a technology that uses computer algorithms and data processing capabilities, combined with human creativity and aesthetic ability, to create works with aesthetic value. It covers composition, color, light, tone, texture and other aspects, and has strong application value in many fields such as photography and design.
[0003] In the field of photography, computer aesthetics technology can identify the subject, optimize shooting parameters and composition, enhance image clarity and color, etc., making photography more convenient and interesting, improving photo quality and aesthetic effects, and promoting the popularization and development of photography art. Summary of the invention
[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.
[0005] The first embodiment of the present disclosure provides a photographing method, including:
[0006] Determining a second shooting parameter according to the first shooting parameter corresponding to the current preview image;
[0007] Based on the second shooting parameters, a first image is acquired, wherein a shooting range corresponding to the first image is smaller than a shooting range corresponding to a second image acquired based on the first shooting parameters;
[0008] Analyzing the first image to obtain a composition strategy corresponding to the first image;
[0009] Displaying the composition strategy on the preview screen;
[0010] In response to a confirmation operation of the user, a third image is acquired based on the composition strategy.
[0011] A second aspect of the present disclosure provides a photographing device, including:
[0012] A first determining module, used to determine a second shooting parameter according to a first shooting parameter corresponding to a current preview image;
[0013] A first acquisition module, configured to acquire a first image based on the second shooting parameter, wherein a shooting range corresponding to the first image is smaller than a shooting range corresponding to a second image acquired based on the first shooting parameter;
[0014] A second determination module, configured to analyze the first image to obtain a composition strategy corresponding to the first image;
[0015] A display module, used for displaying the composition strategy on the preview screen;
[0016] The second acquisition module is used to acquire a third image based on the composition strategy in response to a confirmation operation of the user.
[0017] The third aspect of the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the photo-taking method provided in the first aspect of the present disclosure is implemented.
[0018] The fourth aspect embodiment of the present disclosure proposes a chip, which includes a processing circuit and an interface circuit; wherein the interface circuit is used to obtain instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the photo-taking method proposed in the first aspect embodiment of the present disclosure.
[0019] The fifth aspect embodiment of the present disclosure proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the photographing method proposed in the first aspect embodiment of the present disclosure is implemented.
[0020] The photographing method, device, electronic device, chip and storage medium provided by the present disclosure have the following beneficial effects:
[0021] In the disclosed embodiment, by using a shooting parameter with a larger focal length than the current shooting parameter to pre-collect an image, analyzing the pre-collected image, obtaining a composition strategy, and recommending the composition strategy to the user for taking photos. Automatic intelligent composition for taking photos can be achieved, which helps the user take photos with better composition, helps ensure image quality, and improves the user's photo taking experience.
[0022] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a process of photographing a method provided by an embodiment of the present disclosure;
[0025] Figure 2 A schematic diagram of a process of photographing a method provided by another embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of a process of photographing a method provided by another embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of a process of photographing a method provided by another embodiment of the present disclosure;
[0028] Figure 5 A schematic diagram of the structure of a photographing device provided by an embodiment of the present disclosure;
[0029] Figure 6 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present disclosure is shown;
[0030] Figure 7 It is a schematic diagram of the structure of a chip proposed in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0032] The photographing method, device, electronic device, chip and storage medium of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0033] Figure 1 The present invention is a flowchart of a photographing method provided by an embodiment of the present invention.
[0034] The embodiment of the present disclosure takes the photographing method being configured in a photographing device as an example. The photographing device can be applied to any electronic device so that the electronic device can provide the best composition plan when photographing, and crop and enhance the quality of the image after photographing.
[0035] like Figure 1 As shown, the photographing method may include the following steps:
[0036] Step 101: Determine a second shooting parameter according to a first shooting parameter corresponding to the current preview image.
[0037] In the disclosed embodiment, when any lens (such as a wide-angle lens, a telephoto lens, etc.) is selected in an electronic device with a camera function (such as a mobile phone, etc.) to prepare to take a photo, the current preview screen, that is, the screen captured by the current lens, can be displayed in the interface of the electronic device, and the first shooting parameter corresponding to the preview screen is the shooting parameter of the currently selected lens.
[0038] In the embodiment of the present disclosure, the second shooting parameter may be a shooting parameter determined after adjustment based on the first shooting parameter. Since in the present disclosure, the second shooting parameter is a shooting parameter used to help the user select the optimal composition for shooting online, the second shooting parameter should be able to capture a clearer subject than the first shooting parameter, so the second shooting parameter and the first shooting parameter should satisfy that the focal length value in the second shooting parameter is greater than the focal length value in the first shooting parameter, etc.
[0039] Step 102: Capture a first image based on a second shooting parameter.
[0040] The shooting range corresponding to the first image is smaller than the shooting range corresponding to the second image acquired based on the first shooting parameter.
[0041] It is understandable that the shooting range corresponding to the first image is smaller, which can ensure that the details of the subject in the captured picture are clearer, making it easier to analyze the shot scene and determine the best shooting composition.
[0042] In the disclosed embodiment, after the second shooting parameter is determined, the camera may be allowed to shoot a photo using the second shooting parameter to acquire the first image.
[0043] It should be noted that, since the focal length of a telephoto lens is longer than that of a general lens, it has the characteristics of a relatively small viewing angle and a clear subject, so in the present disclosure, the second shooting parameter may also be a shooting parameter of the telephoto lens. The telephoto lens may be called to take a photo to acquire the first image.
[0044] Step 103: Analyze the first image to obtain a composition strategy corresponding to the first image.
[0045] In the disclosed embodiment, the first image can be input into the model for analysis, and the model analyzes the scene and the photographed object in the first image to determine which composition will produce a better photo effect, thereby obtaining a composition strategy output by the model. Alternatively, the existing image cropping scheme can be used, such as using computer aesthetic scoring to select the window with the highest aesthetic score from a number of sliding windows for cropping, etc., to complete the analysis of the first image, and determine the cropping scheme with the highest score as the composition strategy corresponding to the first image. Alternatively, the preset composition strategy corresponding to the type of subject in the first image, such as people, food, buildings, etc., can be determined.
[0046] It should be noted that when using the model to analyze the first image, the model can be a neural network based on the deep learning algorithm YOLOv5 structure, which can output multiple candidate boxes and the confidence corresponding to each candidate box. The confidence is used to represent the model's aesthetic score for the image in the candidate box. The model can then select the candidate box with the highest confidence among multiple candidate boxes as the best composition box, and output the composition strategy corresponding to the first image according to the position of the best composition box in the first image.
[0047] Optionally, the composition strategy may include at least one of the following: a composition frame position, a position of a photographed object, a positional relationship between photographed objects, and a photographing mode.
[0048] The composition frame is the frame range recommended for users to take photos, which can be a square frame, and the composition frame position is the position of the composition frame in the current preview screen. The position of the photographed object refers to the position information of the photographed object relative to the composition frame, for example, it can be the lower left corner of the composition frame, etc.
[0049] It should be noted that when the shooting picture contains two or more shooting objects, the composition strategy can also include the position relationship between the shooting objects to describe the position relationship in which the multiple shooting objects should be shot, such as a person on the left side of a tree, etc. In addition, the shooting mode in the composition strategy can be any one of the portrait mode, flash mode, sports mode, etc., and the shooting model can be determined by the type of the shooting subject.
[0050] In the disclosed embodiment, by generating a composition strategy based on at least one of the position of the composition frame, the position of the photographed object, the positional relationship between the photographed objects, and the shooting mode, the flexibility and reliability of the model in guiding the shooting composition can be improved, thereby optimizing the user experience.
[0051] Step 104: Display the composition strategy on the preview screen.
[0052] In the disclosed embodiments, the composition strategy may be displayed in the preview screen, so that the user can intuitively obtain guidance information on the shooting composition. Specifically, when the composition strategy includes the position of the composition frame, a square frame may be displayed at the corresponding position in the photo preview screen, so that the user can determine the effect of the photo taken with the composition strategy. Alternatively, when the composition strategy includes the position of the photographed object and the positional relationship between the photographed objects, it may be displayed in the preview screen in the form of text. Alternatively, when the composition strategy includes the shooting mode, words such as "recommended to use...shooting mode" may be displayed on the preview screen.
[0053] Step 105 : In response to a confirmation operation of the user, a third image is captured based on the composition strategy.
[0054] In the embodiment of the present disclosure, when the preview screen displays the composition strategy, a control for determining to take a photo with the composition strategy may also be displayed. When the control is triggered, the user's confirmation operation may be responded to, and then the composition strategy may be used to take a photo, thereby capturing the third image.
[0055] In the disclosed embodiment, first, the second shooting parameter is determined according to the first shooting parameter corresponding to the current preview screen. Then, based on the second shooting parameter, the first image is captured, and the first image is analyzed to obtain the composition strategy corresponding to the first image. Afterwards, the composition strategy is displayed on the preview screen, and in response to the user's confirmation operation, the third image is captured based on the composition strategy. Thus, by pre-capturing an image using a shooting parameter with a larger focal length than the current shooting parameter, parsing the pre-captured image, the composition strategy is obtained, and the composition strategy is recommended to the user for taking pictures. Automated intelligent composition for taking pictures can be achieved, which helps users take pictures with better composition, helps to ensure imaging quality, and improves the user's photo-taking experience.
[0056] Figure 2 A schematic diagram of a process of taking a photo provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the photographing method may include the following steps:
[0057] Step 201: determine the type of the photographed object contained in the preview image.
[0058] The type of the photographed object may include one or more of plants, buildings, people, etc.
[0059] In the embodiment of the present disclosure, the type of each photographed object may be determined by identifying all objects in the preview picture, and the types of all photographed objects included in the preview picture may be the same or different.
[0060] Step 202: Determine the updating granularity of the shooting parameters according to the type of the object being shot.
[0061] The updating granularity of the shooting parameters may be the reducing granularity of the shooting field of view, or the increasing granularity of the focal length, and so on.
[0062] It should be noted that, since different types of photographed objects have different sizes and feature complexity, different shooting parameters need to be adjusted to allow the photographed object to be completely photographed or the features of the photographed object to be clearly photographed. For example, when the photographed object is an insect, the focal length in the shooting parameters needs to be greatly increased, and the update granularity of the shooting parameters is relatively large.
[0063] Therefore, in the present disclosure, a mapping relationship between different types of photographed objects and the granularity of updating photographing parameters can be preset, so that after determining the type of the current photographed object, the granularity of updating the photographing parameters can be determined directly according to the mapping relationship.
[0064] Step 203: Determine a second shooting parameter based on the shooting parameter update granularity and the first shooting parameter.
[0065] In this embodiment, different granularities of reducing the field of view or increasing the focal length are used for different types of photographed objects to update the shooting parameters, thereby making the field of view of the acquired first image more accurate.
[0066] Step 204: Capture the first image based on the second shooting parameter.
[0067] Step 205: Analyze the first image to obtain a composition strategy corresponding to the first image.
[0068] Step 206: Display the composition strategy on the preview screen.
[0069] For detailed description of the above steps 204 to 206, reference can be made to other embodiments of the present disclosure and will not be repeated here.
[0070] Step 207 : if no confirmation instruction for the composition strategy is received and a photographing instruction is received, a second image is acquired based on the first photographing parameter.
[0071] In the disclosed embodiment, after the preview screen displays the composition strategy, the user can also choose not to use the composition strategy, but directly shoot the current preview screen. Therefore, when no confirmation instruction for the composition strategy is received and a shooting instruction is received, the first shooting parameter can be used to shoot and the second image can be acquired.
[0072] Step 208: store the first image and the second image in association with each other.
[0073] In the disclosed embodiment, the first image and the second image may be stored in association, so that the first image can be used to enhance the quality of the second image in the subsequent offline state. Alternatively, because the user did not use the recommended composition strategy to take a photo, it may indicate that the first image does not meet the user's personal aesthetic taste. In this case, the first image and the second image may be stored in association as training data for the first model to update the first model parameters, so that the updated first model can generate a composition strategy that better meets the user's needs, thereby improving the efficiency of taking photos.
[0074] In this embodiment, by capturing the second image based on the first shooting parameters and storing the first image in association with the second image when no confirmation instruction for the composition strategy is received and a shooting instruction is received, the shooting method provided by the present disclosure is made more perfect, providing conditions for subsequent enhancement of image quality and optimization of model parameters.
[0075] Figure 3 FIG. 1 is a flow chart of a photographing method provided by another embodiment of the present disclosure. Figure 3 As shown, the photographing method may include the following steps:
[0076] Step 301 , in response to a cropping operation on any image, any image is parsed to obtain a plurality of candidate frames corresponding to any image.
[0077] Among them, any image can be any final captured image obtained by the method of the above embodiment, that is, it can be the first image or the second image, or it can be any image in the device album.
[0078] Among them, each candidate box is a way to crop the image.
[0079] In the embodiment of the present disclosure, after receiving the cropping instruction of the user for any image, the cropping operation for the any image can be responded to, and the any image can be parsed first. Specifically, the any image can be input into the model, and the model can be used to parse the image to obtain multiple candidate frames for cropping the image output by the model. Alternatively, multiple candidate frames can be determined based on the subject and subject type in the any image, and the present disclosure does not limit this.
[0080] It should be noted that when the model is used to parse the image, the model can be used to crop regions of different shapes and sizes from the image, and each region corresponds to a candidate box. The model used at this time can have the same structural design as the model for parsing the image during the photo shooting process in the above embodiment, but the model for parsing the image after taking the photo can have a deeper network layer and a wider number of channels, and the cropping effect of the output box is better, more accurate and takes longer.
[0081] Step 302: Determine a score corresponding to each candidate box based on multiple candidate boxes and any image.
[0082] In the disclosed embodiment, multiple candidate boxes and any image may be input into a model for aesthetic quality evaluation to obtain a score corresponding to each candidate box output by the model.
[0083] It should be noted that the model used for aesthetic quality evaluation can be composed of a visual geometry group network VGGNet and a mask region convolutional neural network (Mask Region-based Convolutional Neural Network, Mask R-CNN). After multiple candidate boxes and any image are input into the model, the segmentation map of each candidate box for any image can be obtained by passing through Mask R-CNN, and then the segmentation map and the RGB image of any image are input into VGGNet to obtain the aesthetic score corresponding to each candidate box.
[0084] Step 303: crop any image based on the corresponding candidate frame with the highest score to obtain a first optimized image corresponding to any image.
[0085] In this embodiment, by using a model to determine multiple cropping candidate frames corresponding to an image, and using the model to score the partial image corresponding to each cropping candidate frame, the candidate frame with the highest score is used to complete the cropping of the image. This can crop out unimportant parts of the image, highlight the main body of the image, enhance the visual effect of the image and the efficiency of conveying information, and improve image quality.
[0086] Figure 4 FIG. 1 is a flow chart of a photographing method provided by another embodiment of the present disclosure. Figure 4 As shown, the photographing method may include the following steps:
[0087] Step 401: In response to an enhancement operation on any image, an associated image corresponding to any image is determined.
[0088] Among them, any image may be the first image or the second image collected in the above embodiment, or may be a cropped image. Then the associated image corresponding to the any image may be another image stored in association with the any image, for example, when any image is the first image, the associated image is the second image stored in association, or may be the image before cropping corresponding to any image.
[0089] In an embodiment of the present application, a user can select an image for quality enhancement as needed, and can respond to the enhancement operation on any image. Since the associated image corresponding to any image contains the same photographed object as any image, the associated image corresponding to any image can be used to enhance the quality of the image selected by the user.
[0090] Step 402: Obtain a second optimized image corresponding to any image according to any image and the associated images.
[0091] In the disclosed embodiment, any image and associated images may be respectively input into a model for enhancing image features to obtain a second optimized image corresponding to any image output by the model.
[0092] It should be noted that the model used to enhance image features can be a U-shaped network (UNet) structure, which can enhance features such as edges, textures, contrast, etc. in the image. Specifically, the model can extract and fuse features of any image and related images, and output a second optimized image corresponding to any image.
[0093] In this embodiment, by utilizing the model and combining the associated images of the image to be enhanced, the image enhancement result is obtained, which can further enhance the quality of the photographing result and optimize the user experience.
[0094] In order to implement the above embodiments, the present disclosure also proposes a photographing device.
[0095] Figure 5 A schematic diagram of the structure of a photographing device provided in an embodiment of the present disclosure.
[0096] like Figure 5 As shown, the photographing device 500 may include:
[0097] A first determining module 501, configured to determine a second shooting parameter according to a first shooting parameter corresponding to a current preview image;
[0098] A first acquisition module 502 is used to acquire a first image based on a second shooting parameter, wherein a shooting range corresponding to the first image is smaller than a shooting range corresponding to a second image acquired based on the first shooting parameter;
[0099] The second determination module 503 is used to analyze the first image and obtain a composition strategy corresponding to the first image;
[0100] Display module 504, used to display the composition strategy on the preview screen;
[0101] The second acquisition module 505 is used to acquire a third image based on the composition strategy in response to a confirmation operation of the user.
[0102] Optionally, the first determining module 501 may be specifically configured to:
[0103] Determining the type of subject included in the preview image;
[0104] Determine the updating granularity of the shooting parameters according to the type of the photographed object;
[0105] A second shooting parameter is determined based on the shooting parameter update granularity and the first shooting parameter.
[0106] Optionally, the composition strategy includes at least one of the following: a composition frame position, a position of a photographed object, a positional relationship between photographed objects, and a shooting mode.
[0107] Optionally, the second acquisition module 505 may also be used for:
[0108] When no confirmation instruction for the composition strategy is received and a photographing instruction is received, acquiring a second image based on the first photographing parameter;
[0109] The first image is associated with the second image and stored.
[0110] Optionally, the photographing device 500 may further include:
[0111] A third determination module is used to analyze any image in response to a cropping operation on any image to obtain a plurality of candidate frames corresponding to any image;
[0112] A fourth determination module, used to determine a score corresponding to each candidate box based on multiple candidate boxes and any image;
[0113] The first processing module is used to crop any image based on the corresponding candidate frame with the highest score to obtain a first optimized image corresponding to any image.
[0114] Optionally, the photographing device 500 may further include:
[0115] a fifth determining module, configured to determine an associated image corresponding to any image in response to an enhancement operation on any image;
[0116] The second processing module is used to obtain a second optimized image corresponding to any image according to any image and the associated images.
[0117] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0118] The photographing device of the disclosed embodiment uses a photographing parameter with a larger focal length than the current photographing parameter to pre-capture an image, analyzes the pre-captured image, obtains a composition strategy, and recommends the composition strategy to the user for photographing. Automatic intelligent composition for photographing can be achieved, which helps the user to take photos with better composition, helps to ensure image quality, and improves the user's photographing experience.
[0119] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the photographing method proposed in the above embodiments of the present disclosure is implemented.
[0120] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 6 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0121] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0122] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0123] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0124] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
[0125] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0126] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0127] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.
[0128] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the photographing method proposed in the above embodiments of the present disclosure is implemented.
[0129] In order to implement the above embodiments, the present disclosure also proposes a chip, which includes a processing circuit and an interface circuit; wherein the interface circuit is used to obtain instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the photo-taking method proposed in the above embodiments of the present disclosure.
[0130] Figure 7 is a schematic diagram of the structure of the chip proposed in the embodiment of the present disclosure. Figure 7 The structure of the chip 700 is shown, but is not limited to this.
[0131] The chip 700 includes a processing circuit 701 , and the processing circuit 701 is configured to execute any of the above methods.
[0132] In some embodiments, the chip 700 further includes one or more interface circuits 702. Optionally, the interface circuit 702 is connected to the memory 703, and the interface circuit 702 can be used to receive signals from the memory 703 or other devices, and the interface circuit 702 can be used to send signals to the memory 703 or other devices. For example, the interface circuit 702 can read instructions stored in the memory 703 and send the instructions to the processing circuit 701.
[0133] In some embodiments, the interface circuit 702 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 701 performs other steps.
[0134] In some embodiments, terms such as interface circuit, interface, transceiver pin, and transceiver may be used interchangeably.
[0135] In some embodiments, the chip 700 further includes one or more memories 703 for storing instructions. Optionally, all or part of the memory 703 may be outside the chip 700.
[0136] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0137] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0138] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0139] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0140] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0141] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0142] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0143] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A photographing method, characterized in that: include: Determining a second shooting parameter according to the first shooting parameter corresponding to the current preview image; Based on the second shooting parameters, a first image is acquired, wherein a shooting range corresponding to the first image is smaller than a shooting range corresponding to a second image acquired based on the first shooting parameters; Analyzing the first image to obtain a composition strategy corresponding to the first image; Displaying the composition strategy on the preview screen; In response to a confirmation operation of the user, a third image is acquired based on the composition strategy.
2. The method according to claim 1, characterized in that The determining the second shooting parameter according to the first shooting parameter corresponding to the current preview screen includes: Determining the type of the photographed object contained in the preview image; Determining a shooting parameter update granularity according to the type of the photographed object; The second shooting parameter is determined based on the shooting parameter update granularity and the first shooting parameter.
3. The method according to claim 1, characterized in that The composition strategy includes at least one of the following: a composition frame position, a position of a photographed object, a positional relationship between photographed objects, and a photographing mode.
4. The method according to claim 1, characterized in that After the preview screen displays the composition strategy, the method further includes: When no confirmation instruction for the composition strategy is received and a photographing instruction is received, acquiring a second image based on the first photographing parameter; The first image and the second image are stored in association with each other.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a cropping operation on any image, parsing the any image to obtain a plurality of candidate frames corresponding to the any image; Based on the multiple candidate boxes and the any one image, determine a score corresponding to each of the candidate boxes; The any image is cropped based on the corresponding candidate frame with the highest score to obtain a first optimized image corresponding to the any image.
6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to an enhancement operation on any image, determining an associated image corresponding to the any image; According to the any image and the associated image, a second optimized image corresponding to the any image is obtained.
7. A photographing device, characterized in that: The device comprises: A first determining module, used to determine a second shooting parameter according to a first shooting parameter corresponding to a current preview image; A first acquisition module, configured to acquire a first image based on the second shooting parameter, wherein a shooting range corresponding to the first image is smaller than a shooting range corresponding to a second image acquired based on the first shooting parameter; A second determination module, configured to analyze the first image to obtain a composition strategy corresponding to the first image; A display module, used for displaying the composition strategy on the preview screen; The second acquisition module is used to acquire a third image based on the composition strategy in response to a confirmation operation of the user.
8. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the photographing method as claimed in any one of claims 1 to 6 is implemented.
9. A chip, characterized in that: The chip includes a processing circuit and an interface circuit; wherein the interface circuit is used to obtain instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the photographing method as described in any one of claims 1-6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the photographing method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Automatic zoom shooting method, mobile terminal and computer readable storage medium
CN108200350A
Guiding method and device for photography composition
CN109196852A
Photographing composition method, terminal and storage medium
CN111277760A
Auxiliary shooting method, terminal and storage medium
CN111770277A
Shooting method and equipment
CN113497890A