A photographing method, apparatus, electronic device, chip and storage medium
By pre-capturing images using a larger focal length parameter and analyzing composition strategies during the photography process, the challenge of automated intelligent composition in photography is solved, improving photo quality and user experience.
Patent Information
- Application Number
- CN202411836286.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2044-12-12
AI Technical Summary
In existing technologies, it is difficult to achieve automated intelligent composition during the photography process, resulting in insufficient photo quality and user experience.
By pre-capturing images using a focal length parameter larger than the current shooting parameters, analyzing the images to obtain composition strategies, and displaying them to the user in the preview screen, the user can shoot according to the strategies.
It enables automated and intelligent composition for taking photos, improving photo quality and the user's photography experience.
Smart Images

Figure CN119653227B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of image processing technology, specifically to the field of image detection and image enhancement, and particularly to a method, apparatus, electronic device, chip, and storage medium for taking pictures. Background Technology
[0002] Image aesthetics, also known as computer aesthetics, is a technique that uses computer algorithms and data processing capabilities, combined with human creativity and aesthetic ability, to create works with aesthetic value. It covers many aspects such as composition, color, light, tone, and texture, 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, and enhance image clarity and color, making photography more convenient and fun, improving photo quality and aesthetic effects, and promoting the popularization and development of photographic art. Summary of the Invention
[0004] This disclosure aims to at least partially address one of the technical problems in the related art.
[0005] The first aspect of this disclosure provides a method for taking pictures, including:
[0006] Determine the second shooting parameters based on the first shooting parameters corresponding to the current preview screen;
[0007] Based on the second shooting parameters, a first image is acquired, wherein 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 parameters;
[0008] The first image is parsed to obtain the composition strategy corresponding to the first image;
[0009] The composition strategy is displayed in the preview screen;
[0010] In response to the user's confirmation, a third image is acquired based on the composition strategy.
[0011] A second aspect of this disclosure provides a photographing device, comprising:
[0012] The first determining module is used to determine the second shooting parameters based on the first shooting parameters corresponding to the current preview screen;
[0013] The first acquisition module is used to acquire a first image based on the second shooting parameters, wherein 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 parameters.
[0014] The second determining module is used to parse the first image to obtain the composition strategy corresponding to the first image;
[0015] A display module is used to display 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 the user's confirmation operation.
[0017] A third aspect of this disclosure provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the photographing method as proposed in the first aspect of this disclosure.
[0018] A fourth aspect of this disclosure provides a chip, which includes a processing circuit and an interface circuit; wherein the interface circuit is used to acquire instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the photographing method proposed in the first aspect of this disclosure.
[0019] A fifth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the photographing method as described in the first aspect of this disclosure.
[0020] The photographing method, apparatus, electronic device, chip, and storage medium disclosed herein have the following beneficial effects:
[0021] In this embodiment, an image is pre-acquired using shooting parameters with a focal length greater than the current shooting parameters. The pre-acquired image is then analyzed to obtain a composition strategy, which is recommended to the user for taking photos. This enables automated intelligent composition for photography, helping users capture better-composed photos, ensuring image quality, and improving the user's photography experience.
[0022] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description
[0023] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:
[0024] Figure 1 This is a schematic flowchart illustrating a photographing method provided in one embodiment of the present disclosure.
[0025] Figure 2 This is a schematic flowchart illustrating a photographing method provided in another embodiment of the present disclosure;
[0026] Figure 3 This is a schematic flowchart illustrating a photographing method provided in another embodiment of the present disclosure;
[0027] Figure 4 This is a schematic flowchart illustrating a photographing method provided in another embodiment of the present disclosure;
[0028] Figure 5 This is a schematic diagram of the structure of a photographing device provided in an embodiment of the present disclosure;
[0029] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown;
[0030] Figure 7 This is a schematic diagram of the structure of a chip proposed in an embodiment of this disclosure. Detailed Implementation
[0031] Embodiments of this disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this disclosure, and should not be construed as limiting this disclosure.
[0032] The following description, with reference to the accompanying drawings, describes the photographing method, apparatus, electronic device, chip, and storage medium according to embodiments of the present disclosure.
[0033] Figure 1 This is a schematic flowchart of a photographing method provided in an embodiment of the present disclosure.
[0034] This disclosure illustrates the example of the photographing method being configured in a photographing device. This photographing device can be applied to any electronic device, enabling the electronic device to perform functions such as providing the best composition scheme during shooting, cropping the image after shooting, and enhancing its quality.
[0035] like Figure 1 As shown, the method of taking a picture may include the following steps:
[0036] Step 101: Determine the second shooting parameters based on the first shooting parameters corresponding to the current preview screen.
[0037] In this embodiment of the disclosure, when an electronic device with camera function (such as a mobile phone) selects any lens (such as a wide-angle lens, a telephoto lens, etc.) to prepare to take a picture, the interface of the electronic device can display the current preview screen, that is, the screen captured by the current lens. The first shooting parameter corresponding to the preview screen is the shooting parameter of the currently selected lens.
[0038] In this embodiment, the second shooting parameter can be determined by adjusting the first shooting parameter. Since the second shooting parameter is used to help users select the optimal composition for taking photos online, it should be able to capture a clearer subject compared to the first shooting parameter. Therefore, the second shooting parameter should satisfy conditions such as the focal length value in the second shooting parameter being greater than the focal length value in the first shooting parameter.
[0039] Step 102: Acquire the first image based on the second shooting parameters.
[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 parameters.
[0041] Understandably, the smaller shooting range of the first image ensures clearer details of the subject in the captured image, making it easier to analyze the shooting scene and determine the best shooting composition.
[0042] In this embodiment of the disclosure, after determining the second shooting parameters, the camera can be made to take a picture with the second shooting parameters and acquire the first image.
[0043] It should be noted that, because telephoto lenses have a longer focal length than regular lenses, they have characteristics such as a relatively smaller angle of view and a sharper subject. Therefore, in this disclosure, the second shooting parameters can also be the shooting parameters of a telephoto lens. A first image can be acquired by using a telephoto lens to take a picture.
[0044] Step 103: Analyze the first image to obtain the composition strategy corresponding to the first image.
[0045] In this embodiment, the first image can be input into a model for analysis. The model analyzes the scene and subject in the first image to determine which composition will produce a better photograph, thus obtaining a composition strategy output by the model. Alternatively, existing image cropping schemes can be used, such as using computer aesthetic scoring to select the window with the highest aesthetic score from numerous sliding windows for cropping, to complete the analysis of the first image and determine the highest-scoring cropping scheme as the corresponding composition strategy for the first image. Alternatively, a preset composition strategy corresponding to the type of subject in the first image, such as people, food, or architecture, 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 YOLOv5 deep learning algorithm, which can output multiple candidate boxes and the confidence score of each candidate box. The confidence score is used to represent the model's aesthetic score of the image within the candidate box. Then, the model can select the candidate box with the highest confidence score as the best composition box from the multiple candidate boxes, and output the composition strategy corresponding to the first image based on the position of the best composition box in the first image.
[0047] Optionally, a composition strategy may include at least one of the following: the position of the composition frame, the position of the subject, the positional relationship between the subjects, and the shooting mode.
[0048] The composition frame is the frame area recommended for users to take photos. It can be a square border, and the composition frame position is the position of the composition frame in the current preview screen. The position of the subject refers to the position information of the subject relative to the composition frame, such as the lower left corner of the composition frame.
[0049] It should be noted that when the frame contains two or more subjects, the composition strategy can also include the positional relationship between the subjects, describing how the multiple subjects should be positioned in the shot, such as a person on the left side of a tree. Furthermore, the shooting mode in the composition strategy can be any of the following: portrait mode, flash mode, sports mode, etc., and the shooting mode can be determined by the type of subject being photographed.
[0050] In this embodiment of the disclosure, by generating a composition strategy based on at least one of the composition frame position, the position of the subject being photographed, the positional relationship between the subjects being photographed, and the shooting mode, the flexibility and reliability of the model in guiding the shooting composition can be improved, and the user experience can be optimized.
[0051] Step 104: Display the composition strategy in the preview screen.
[0052] In this embodiment, a composition strategy can be displayed in the preview screen, allowing users to intuitively obtain guidance on shooting composition. Specifically, when the composition strategy includes a composition frame position, a square border can be displayed at the corresponding position in the photo preview screen, making it easier for users to determine the effect of the photo taken using the composition strategy. Alternatively, if the composition strategy includes the position of the subject and the positional relationship between subjects, this can be displayed in the preview screen as text. Alternatively, if the composition strategy includes a shooting mode, text such as "Recommended to use... shooting mode" can be displayed in the preview screen.
[0053] Step 105: In response to the user's confirmation, acquire the third image based on the composition strategy.
[0054] In this embodiment of the disclosure, when the composition strategy is displayed on the preview screen, a control for determining whether to take a picture using that composition strategy can also be displayed. When this control is triggered, it can respond to the user's confirmation operation, and then take a picture using the composition strategy, thereby capturing a third image.
[0055] In this embodiment, firstly, second shooting parameters are determined based on the first shooting parameters corresponding to the current preview screen. Then, based on the second shooting parameters, a first image is acquired and analyzed to obtain the composition strategy corresponding to the first image. Afterward, the composition strategy is displayed on the preview screen, and in response to the user's confirmation, a third image is acquired based on the composition strategy. Thus, by using shooting parameters with a larger focal length than the current shooting parameters to pre-acquire an image, analyzing the pre-acquired image, and obtaining the composition strategy, the composition strategy is recommended to the user for taking photos. This enables automated intelligent composition for taking photos, helping users capture better-composed photos, ensuring image quality, and improving the user's photography experience.
[0056] Figure 2 This is a schematic flowchart illustrating a photographing method provided in an embodiment of the present disclosure, as shown below. Figure 2 As shown, the method of taking a picture may include the following steps:
[0057] Step 201: Determine the type of the subject being photographed in the preview screen.
[0058] The types of subjects being photographed can include one or more of the following: plants, buildings, people, etc.
[0059] In this embodiment of the disclosure, the type of each photographed object can be determined by identifying all objects in the preview screen. The types of all photographed objects in the preview screen may be the same or different.
[0060] Step 202: Determine the granularity of shooting parameter updates based on the type of the subject being photographed.
[0061] The granularity of shooting parameter updates can be either reducing the granularity of the shooting field of view or increasing the granularity of the focal length, etc.
[0062] It should be noted that different types of subjects vary in size and complexity of features, requiring adjustments to shooting parameters to ensure the subject is captured completely or clearly. For example, when photographing insects, the focal length in the shooting parameters needs to be significantly increased, resulting in a larger granularity of parameter updates.
[0063] Therefore, in this disclosure, a mapping relationship between different types of photographed objects and the granularity of shooting parameter updates can be preset. Thus, after determining the type of the current photographed object, the granularity of shooting parameter updates can be directly determined based on the mapping relationship.
[0064] Step 203: Based on the shooting parameter update granularity and the first shooting parameter, determine the second shooting parameter.
[0065] In this embodiment, by using different field-of-view reduction granularity or focal length increase granularity for different types of subjects, the shooting parameters are updated, thereby making the field-of-view range of the first image more accurate.
[0066] Step 204: Acquire the first image based on the second shooting parameters.
[0067] Step 205: Analyze the first image to obtain the composition strategy corresponding to the first image.
[0068] Step 206: Display the composition strategy in the preview screen.
[0069] For a detailed description of steps 204 to 206 above, please refer to other embodiments of this disclosure, which will not be repeated here.
[0070] Step 207: If no confirmation instruction for the composition strategy is received, but a shooting instruction is received, a second image is acquired based on the first shooting parameters.
[0071] In this embodiment of the disclosure, after the composition strategy is displayed on the preview screen, the user can also choose not to use the composition strategy and instead directly capture the current preview screen. Therefore, if no confirmation instruction for the composition strategy is received, but a capture instruction is received, the first capture parameters can be used to capture a second image.
[0072] Step 208: Associate and store the first image with the second image.
[0073] In this embodiment, the first image and the second image can be stored together for later offline enhancement of the second image using the first image. Alternatively, if the user did not use the recommended composition strategy when taking the photo, it may indicate that the first image does not meet the user's personal aesthetic preferences. In this case, the first image and the second image can be stored together as training data for the first model to update the parameters of the first model. This allows the updated first model to generate composition strategies that better meet the user's needs, thereby improving photo-taking efficiency.
[0074] In this embodiment, by acquiring a second image based on the first shooting parameters when no confirmation instruction for the composition strategy is received but a shooting instruction is received, and then associating and storing the first image and the second image, the shooting method provided by this disclosure is improved, providing conditions for subsequent enhancement of image quality and optimization of model parameters.
[0075] Figure 3 This is a flowchart illustrating a photographing method according to another embodiment of this disclosure. Figure 3 As shown, the method of taking a picture may include the following steps:
[0076] Step 301: In response to a cropping operation on any image, parse any image to obtain multiple candidate boxes corresponding to any image.
[0077] Any image can be any final captured image obtained by the method described in the above embodiments; that is, it can be the first image or the second image. Alternatively, it can be any image in the device's photo album.
[0078] Each candidate box represents a cropping method for the image.
[0079] In this embodiment of the disclosure, upon receiving a cropping instruction from a user for any image, the system can respond to the cropping operation by first parsing the image. Specifically, the image can be input into a model, which then parses the image to obtain multiple candidate boxes for cropping. Alternatively, multiple candidate boxes can be determined based on the subject and subject type in the image, etc., and this disclosure does not limit the scope of the discussion.
[0080] It should be noted that when using the model to analyze an image, the model can be used to crop regions of different shapes and sizes, with each region corresponding to a candidate bounding box. The model used in this case can have the same structural design as the model used to analyze the image during the shooting process in the above embodiment, but the model used to analyze the image after shooting can have a deeper number of network layers and a wider number of channels, resulting in better and more accurate cropping of the output bounding box, although it takes longer.
[0081] Step 302: Based on multiple candidate boxes and any image, determine the score corresponding to each candidate box.
[0082] In this embodiment of the disclosure, multiple candidate boxes and any image can 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 assessment can consist of a Visual Geometric Group Network (VGGNet) and a Mask Region-based Convolutional Neural Network (Mask R-CNN). After inputting multiple candidate boxes and any image into the model, the data is first processed through Mask R-CNN to obtain a segmentation map of each candidate box for any given image. Then, the segmentation map and the RGB image of any given image are input into VGGNet to obtain the aesthetic score corresponding to each candidate box.
[0084] Step 303: Crop any image based on the candidate box with the highest score to obtain the first optimized image corresponding to any image.
[0085] In this embodiment, by using a model to determine multiple cropping candidate boxes corresponding to the image, and by using the model to score the portion of the image corresponding to each cropping candidate box, the image is cropped using the candidate box with the highest score. This can crop out unimportant parts of the image, highlight the main subject of the image, improve the visual effect of the image and the efficiency of conveying information, and improve the image quality.
[0086] Figure 4 This is a flowchart illustrating a photographing method according to another embodiment of this disclosure. Figure 4 As shown, the method of taking a picture may include the following steps:
[0087] Step 401: In response to the enhancement operation for any image, determine the associated image corresponding to any image.
[0088] In this context, any image may be the first image or the second image acquired in the above embodiments, or it may be a cropped image. The associated image corresponding to any image may be another image stored in association with that image. For example, when any image is the first image, the associated image is the associated second image, or it may be the image before cropping that corresponds to any image.
[0089] In this embodiment, the user can select an image for quality enhancement as needed. In response to the enhancement operation for any image, since the associated image corresponding to any image contains the same subject as any image, the quality of the image selected by the user can be enhanced using the associated image corresponding to any image.
[0090] Step 402: Based on any image and its associated images, obtain the second optimized image corresponding to any image.
[0091] In this embodiment of the disclosure, any image and associated images can be input into a model for enhancing the features of the image, and the second optimized image corresponding to any image can be obtained from the model output.
[0092] It should be noted that the model used to enhance image features can be a U-shaped network (UNet) structure, capable of enhancing features such as edges, textures, and contrast in an image. Specifically, the model can extract and fuse features from any given image and related images, outputting a second optimized image corresponding to any given image.
[0093] In this embodiment, by utilizing a model and combining it with associated images of the image to be enhanced, the image enhancement result is obtained, which can further enhance the quality of the photo capture result and optimize the user experience.
[0094] To achieve the above embodiments, this disclosure also proposes a photographing device.
[0095] Figure 5 This is a schematic diagram of the photographing device provided in an embodiment of the present disclosure.
[0096] like Figure 5 As shown, the photographing device 500 may include:
[0097] The first determining module 501 is used to determine the second shooting parameters based on the first shooting parameters corresponding to the current preview screen;
[0098] The first acquisition module 502 is used to acquire a first image based on the second shooting parameters, wherein 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 parameters.
[0099] The second determining module 503 is used to parse the first image to obtain the composition strategy corresponding to the first image;
[0100] Display module 504 is used to display the composition strategy in the preview screen;
[0101] The second acquisition module 505 is used to acquire a third image based on the composition strategy in response to the user's confirmation operation.
[0102] Optionally, the first determining module 501 can be specifically used for:
[0103] Determine the type of subject being photographed in the preview image;
[0104] Determine the granularity of shooting parameter updates based on the type of the subject being photographed;
[0105] The second shooting parameters are determined based on the shooting parameter update granularity and the first shooting parameters.
[0106] Optionally, the composition strategy includes at least one of the following: the position of the composition frame, the position of the subject, the positional relationship between the subjects, and the shooting mode.
[0107] Optionally, the second acquisition module 505 can also be used for:
[0108] If no confirmation instruction for the composition strategy is received, but an instruction to take a picture is received, a second image is acquired based on the first shooting parameters;
[0109] The first image and the second image are stored together.
[0110] Optionally, the photographing device 500 may also include:
[0111] The third determining module is used to parse any image in response to a cropping operation on any image, and obtain multiple candidate boxes corresponding to any image.
[0112] The fourth determination module is used to determine the 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 candidate box with the highest corresponding score to obtain the first optimized image corresponding to any image.
[0114] Optionally, the photographing device 500 may also include:
[0115] The fifth determination module is used to determine the associated image corresponding to any given image in response to any enhancement operation.
[0116] The second processing module is used to obtain a second optimized image corresponding to any given image and its associated images.
[0117] The functions and specific implementation principles of the modules described in this embodiment can be found in the above method embodiments, and will not be repeated here.
[0118] The photographing device of this disclosure pre-captures an image using shooting parameters with a focal length greater than the current shooting parameters, analyzes the pre-captured image to obtain a composition strategy, and recommends the composition strategy to the user for taking photos. This enables automated intelligent composition for taking photos, helping users capture better-composed pictures, ensuring image quality, and improving the user's photography experience.
[0119] To implement the above embodiments, this disclosure also 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, it implements the photographing method proposed in the foregoing embodiments of this disclosure.
[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 merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0121] like Figure 6 As shown, the electronic device 12 is represented 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, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0122] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0123] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0124] 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. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. 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 embodiments of this disclosure.
[0125] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.
[0126] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with 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 foregoing embodiments.
[0128] To implement the above embodiments, this disclosure also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the photographing method proposed in the foregoing embodiments of this disclosure.
[0129] To implement the above embodiments, this disclosure also proposes a chip, which includes a processing circuit and an interface circuit; wherein the interface circuit is used to acquire instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the photographing method proposed in the foregoing embodiments of this disclosure.
[0130] Figure 7 This is a schematic diagram of the chip structure proposed in an embodiment of this disclosure. See also... Figure 7 The diagram shown is a schematic representation of the structure of chip 700, but is not limited thereto.
[0131] Chip 700 includes processing circuitry 701, which is configured to perform any of the above methods.
[0132] In some embodiments, chip 700 further includes one or more interface circuits 702. Optionally, interface circuit 702 is connected to memory 703, and interface circuit 702 can be used to receive signals from memory 703 or other devices, and interface circuit 702 can be used to send signals to memory 703 or other devices. For example, interface circuit 702 can read instructions stored in memory 703 and send the instructions to 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, the terms interface circuit, interface, transceiver pin, transceiver, etc., can be used interchangeably.
[0135] In some embodiments, chip 700 further includes one or more memories 703 for storing instructions. Optionally, all or part of the memories 703 may be located outside of chip 700.
[0136] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0137] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0138] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0139] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0140] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0141] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0142] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0143] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A photographing method, characterized by, The method comprises: determining the type of the photographed object contained in the current preview picture, determining the shooting parameter update granularity according to the type of the photographed object, and determining the second shooting parameter based on the shooting parameter update granularity and the first shooting parameter corresponding to the preview picture; collecting a first image based on the second shooting parameter, wherein the shooting range corresponding to the first image is smaller than the shooting range corresponding to a second image collected based on the first shooting parameter; analyzing the first image to obtain a composition strategy corresponding to the first image; displaying the composition strategy on the preview picture; collecting a third image based on the composition strategy in response to a confirmation operation of a user.
2. The method of claim 1, wherein, The composition strategy comprises at least one of the following: a composition frame position, a position of a photographed object, a position relationship between photographed objects, and a shooting mode.
3. The method of claim 1, wherein, After displaying the composition strategy on the preview picture, the method further comprises: collecting a second image based on the first shooting parameter in a case where no confirmation instruction for the composition strategy is received and a photographing instruction is received; storing the first image and the second image in association.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: in response to a cropping operation on any image, analyzing the any image to obtain a plurality of candidate boxes corresponding to the any image; determining a score corresponding to each candidate box based on the plurality of candidate boxes and the any image; cropping the any image based on a candidate box with the highest corresponding score to obtain a first optimized image corresponding to the any image.
5. The method of any one of claims 1-3, wherein, The method further comprises: in response to an enhancement operation on any image, determining an associated image corresponding to the any image; obtaining a second optimized image corresponding to the any image according to the any image and the associated image.
6. A photographing apparatus characterized by comprising: The device comprises: a first determination module configured to determine the type of the photographed object contained in the current preview picture, determine the shooting parameter update granularity according to the type of the photographed object, and determine the second shooting parameter based on the shooting parameter update granularity and the first shooting parameter corresponding to the preview picture; a first collection module configured to collect a first image based on the second shooting parameter, wherein the shooting range corresponding to the first image is smaller than the shooting range corresponding to a second image collected 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 configured to display the composition strategy on the preview picture; a second collection module configured to collect a third image based on the composition strategy in response to a confirmation operation of a user.
7. An electronic device, comprising: The chip comprises a processing circuit and an interface circuit; wherein the interface circuit is configured to obtain an instruction and send the instruction to the processing circuit, and the processing circuit is configured to execute the instruction to implement the photographing method according to any one of claims 1-5.
8. A chip, characterized by 9. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the photographing method in any one of claims 1-5.
Citation Information
Patent Citations
Auxiliary shooting method, terminal and storage medium
CN111770277A