Image shooting method and device
By obtaining preview images and matching reference template images in the template library, including characters, background objects and reference lines, to guide users to take photos, the problem of cumbersome processes of shooting high-quality images is solved, and efficient image shooting is achieved.
Patent Information
- Application Number
- CN202311348608.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
The process of shooting high-quality images by non-photographic users is cumbersome and requires learning a lot of professional knowledge and aesthetic style.
Provide an image shooting method, by obtaining the preview image of the target scene, matching the reference template image in the preset template library, including character objects, background objects and reference lines. The similarity between the background objects and the preview image objects is greater than the threshold. The reference lines identify the character's position and posture and guide users to take pictures.
It achieves efficient shooting of high-quality images, simplifies the shooting process, and reduces the need for users to learn professional knowledge.
Smart Images

Figure CN119854620A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular to an image shooting method and device. Background Art
[0002] Image capture is an art of recording. Good images can express the photographer's feelings at the moment of capture through images. However, it is not easy for non-professional photographers to capture a high-quality image. Users need to first learn a lot of professional photography knowledge, such as the relationship between light, composition, exposure and shutter speed and image effects, and then establish their own aesthetics and style for images, and finally capture images. The process of capturing high-quality images is cumbersome. Summary of the invention
[0003] The embodiments of the present disclosure provide an image capturing method and device to efficiently capture high-quality images.
[0004] In a first aspect, an embodiment of the present disclosure provides an image capturing method, including:
[0005] Obtain a preview image shot for a target scene;
[0006] Determine at least one reference template image matching the preview image in a preset template library, the reference template image including a person object, a background object and a reference line, the similarity between the background object and the object in the preview image is greater than a similarity threshold, and the reference line is used to identify a reference position of the person object in the preview image and a reference posture of the person object;
[0007] At least one reference template image is displayed, where the reference template image is used to guide the user to capture an image with reference to a reference position and a reference posture.
[0008] In a second aspect, an embodiment of the present disclosure provides an image capturing device, including:
[0009] An acquisition unit, used for acquiring a preview image shot for a target scene;
[0010] a determination unit, configured to determine at least one reference template image matching the preview image in a preset template library, the reference template image comprising a human object, a background object, and a reference line, the similarity between the background object and the object in the preview image being greater than a similarity threshold, and the reference line being used to identify a reference position of the human object in the preview image and a reference posture of the human object;
[0011] The display unit is used to display at least one reference template image, where the reference template image is used to guide the user to capture images with reference to a reference position and a reference posture.
[0012] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0013] Memory stores computer-executable instructions;
[0014] At least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the image capturing method provided in the first aspect above.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image capturing method provided in the first aspect above is implemented.
[0016] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, the computer program product comprising computer execution instructions, and when a processor executes the computer execution instructions, the image capture method provided in the first aspect above is implemented.
[0017] The image shooting method and device provided by the present embodiment include: obtaining a preview image shot for a target scene; determining at least one reference template image matching the preview image in a preset template library, the reference template image including a human object, a background object and a reference line, the similarity between the background object and the object in the preview image is greater than a similarity threshold, the reference line is used to identify a reference position of the human object in the preview image and a reference posture of the human object; displaying at least one reference template image, the reference template image is used to guide a user to shoot an image with reference to a reference position and a reference posture. The present application can realize efficient shooting of high-quality images. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 A schematic diagram of an inventive concept provided for an embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0021] Figure 3 A flowchart of a method for capturing an image provided by an embodiment of the present disclosure;
[0022] Figure 4A flowchart of another image capturing method provided by an embodiment of the present disclosure;
[0023] Figure 5 A schematic diagram of target style selection provided in an embodiment of the present disclosure;
[0024] Figure 6 A schematic diagram of a shooting interface provided by an embodiment of the present disclosure;
[0025] Figure 7 A schematic diagram of a target shooting image provided by an embodiment of the present disclosure;
[0026] Figure 8 A structural block diagram of an image capturing device provided by an embodiment of the present disclosure;
[0027] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0029] In the related art, users adopt Figure 1 Method 1 for taking high-quality images is that the user first learns professional knowledge such as light, camera and composition, then establishes the relationship between these professional knowledge and image effects, and finally forms his own shooting type and takes pictures. However, this method has the problem of cumbersome shooting.
[0030] Based on the above problems, the image capturing method provided by the present disclosure is to adopt Figure 1 The second method is to first shoot an image with the style and effect of the template image based on the template image, and the user can learn some professional knowledge during the shooting process.
[0031] refer to Figure 2 , is an example diagram of an application scenario provided by an embodiment of the present disclosure. Figure 2 As shown, the user needs to take a photo of a person in the scene shown in the preview image, but the user is not a professional photographer, so the user only needs to get the preview image to get Figure 2 The reference template image shown includes a person object, and the user can refer to the position and posture of the person object to efficiently capture high-quality images.
[0032] The above application scenario is only one of the scenario examples, and the embodiment of the present disclosure can be applied to image capture in any scenario.
[0033] refer to Figure 3 , is a flow chart of the image capturing method provided by the embodiment of the present disclosure. Figure 3 As shown, the image capturing method specifically includes the following steps:
[0034] S301: Acquire a preview image shot for a target scene.
[0035] In the present disclosure, a user can hold a terminal, turn on the camera and shoot a target scene to obtain a preview image. When shooting a preview image, the user can be prompted to shoot a field of view that includes objects that may appear in the final image as much as possible, which is convenient for subsequent analysis. After shooting and obtaining the preview image, the preview image can be uploaded to a server for analysis, or analyzed locally on the terminal.
[0036] S302: Determine at least one reference template image matching the preview image in a preset template library.
[0037] The reference template image includes a person object, a background object and a reference line. The similarity between the background object and the object in the preview image is greater than a similarity threshold. The reference line is used to identify the reference position of the person object in the preview image and the reference posture of the person object.
[0038] In the present disclosure, the preset template library includes a plurality of template images, and these template images have corresponding attributes, such as the amount of interaction, type or photographer, and the person objects, background objects and reference lines contained in the template images.
[0039] Furthermore, the background object in the reference template image is an object other than a person, and the similarity threshold is preset. In the present disclosure, the more the types of the background object and the object in the preview image are the same, the greater the similarity. Figure 2 , the objects in the preview image include: clouds and grass. The background objects in the reference template image include grass, clouds and windmills, which have the same objects of clouds and grass, so it can be determined that the similarity is greater than the similarity threshold. In the present disclosure, the similarity between the background object and the object in the preview image can also be determined by other methods, which are not limited here.
[0040] In addition, the reference line can identify the reference position and reference posture of the human object in the reference template image. Figure 2 The reference template image in FIG. 1 is a reference template image, wherein the dotted line in the reference template image is a reference line, which frames the person object and identifies the hand position, shoulder position and head position of the person object.
[0041] In the embodiment of the present disclosure, one or more reference template images may be determined. Each reference template image may contain part or all of the objects that appear in the preview image, such as Figure 2 The objects in the preview image are clouds and grass, and the reference template image also includes clouds and grass. The postures of the human objects in each reference template image are different.
[0042] Furthermore, the reference template image may also include object reference lines, which are used to identify the relative relationship between the person object and the background object and the relative relationship between the background objects, such as Figure 2 The mid-object guides are used to identify the relative relationship between the clouds and the grass.
[0043] S303: Display at least one reference template image.
[0044] Among them, when there are multiple reference template images, one of the reference template images can be displayed first, and when a user's switching operation (such as swiping up, down, left or right on the screen) is received, another reference template image is switched to display.
[0045] Further, the reference template image is used to guide the user to capture images with reference to the reference position and reference posture. It is understandable that when the user sees multiple reference template images, he can learn the reference position and reference posture of the human object in the reference template image, and then can imitate the reference template image to capture images.
[0046] In the present disclosure, the above steps may all be executed by the terminal, or S301 and S302 may be executed by the server, and S303 may be executed by the terminal.
[0047] This embodiment obtains a preview image shot for a target scene; determines at least one reference template image matching the preview image in a preset template library, the reference template image includes a human object, a background object, and a reference line, the similarity between the background object and the object in the preview image is greater than a similarity threshold, and the reference line is used to identify a reference position of the human object in the preview image and a reference posture of the human object; displays at least one reference template image, and the reference template image is used to guide a user to shoot an image with reference to a reference position and a reference posture. This application can achieve efficient shooting of high-quality images.
[0048] refer to Figure 4 , which is a flow chart of another image capturing method provided in an embodiment of the present disclosure.
[0049] like Figure 4 As shown, the image capturing method specifically includes the following steps:
[0050] S401, obtaining a preview image shot for a target scene.
[0051] The implementation process of this step refers to S301 and will not be repeated here.
[0052] S402: Obtain the target style selected by the user.
[0053] In the embodiment of the present disclosure, the order of S401 and S402 is not limited, and the order can be adjusted according to actual needs.
[0054] Among them, the user configures the target style and can perform the selected target style according to three steps. Figure 5 If the user selects the preset smart style as the mode, the subsequent type and photographer do not need to be selected. If the user selects the custom style as the mode, the user needs to select the type and photographer later, where the types include forest, scenery, portrait and check-in. If the user selects forest, scenery, etc., it is determined that the user wants to shoot natural landscape images, so a reference template image without human objects is provided to the user. The reference template image without human objects may include the same objects as the preview image, and the reference template image contains object reference lines between background objects for the user to refer to for shooting. If the user selects scenery, the reference template image can be obtained by further selecting the photographer to imitate and learn to shoot landscape images.
[0055] Furthermore, if the user selects the type as portrait and check-in, a reference template image containing a person object is recommended to the user. In addition, the user can also select the photographer, where Figure 5 A and B in the figure may represent specific photographers or types of photographers, and there is no limitation on this.
[0056] S403: Determine a plurality of template images matching the preview image in a preset template library.
[0057] The specific implementation process of this step refers to S302 and will not be repeated here.
[0058] Wherein, each template image has a corresponding style.
[0059] S404: Determine at least one reference template image that meets the target style among multiple template images.
[0060] In S403, a plurality of template images having high similarity to the object of the preview image are first determined, and then a template image that meets the target style is determined as a reference template image among the plurality of template images.
[0061] In the embodiment of the present disclosure, after the preview image is acquired, the preview image is first analyzed to obtain the object in the preview image, and then at least one reference template image is obtained in combination with the target style selected by the user. Furthermore, the person object in the reference template image can be extracted by image analysis, and then the reference line mark is performed on the person object in the reference template image. It can be seen that in the present disclosure, the reference line mark can be added in advance to the reference template image, or it can be added in real time, and the present disclosure does not limit this.
[0062] Among them, if the target style is a preset smart style, determining at least one reference template image that conforms to the target style includes: determining a template image whose interaction amount is greater than a preset threshold as at least one reference template image that conforms to the preset smart style, and the interaction amount includes: at least one of the likes amount, the collection amount and the forwarding amount.
[0063] In this disclosure, all user information is obtained with user authorization.
[0064] It can be understood that template images with a high number of likes, collections or reposts meet the preferences of most users, so these template images can be recommended to users as reference template images for reference.
[0065] In one embodiment, the target style includes: custom grids, the custom style includes: types and / or photographers, and the types include portraits or scenic spot check-ins.
[0066] In summary, users can select a custom style, and then select the type and / or photographer to obtain the reference template image they need. Figure 5 , the user selects a custom style, and then selects portrait and photographer A or A type. Then, among multiple template images, the template image whose style matches the portrait and the photographer is A or A type can be determined as a reference template image and recommended to the user.
[0067] S405, displaying a plurality of reference template images.
[0068] The specific implementation process of this step refers to S303 and will not be repeated here.
[0069] S406, responding to the user's triggering operation on the shooting control, switching to the shooting interface.
[0070] Among them, the current shooting picture and the target template image are displayed on the shooting interface, the target template image is displayed under the current shooting picture, the display transparency of the target template image is lower than the transparency threshold, and the target template image is one of the at least one reference template image.
[0071] Reference Figure 6, in the shooting interface, the brightness of the target template image is reduced, and the current shooting picture can be changed according to the movement of the camera. The current shooting picture is displayed on the target template image, and the target template image can assist the user in composing and shooting.
[0072] The person being photographed in the current shooting picture can accurately imitate the reference position and reference posture of the person object in the target template image, so that the user can shoot.
[0073] Further, refer to Figure 6 A shooting control is displayed on the shooting interface. The user touches the shooting control to take a photo of the current shooting screen.
[0074] In another embodiment, the current shooting picture may be displayed on the shooting interface, and the reference lines in the target template image may be displayed in the current shooting picture to assist shooting. In the target shooting image actually shot, there are no reference lines.
[0075] S407 , in response to a switching operation of the user on the shooting interface, switching the target template image to another reference template image among the multiple reference template images.
[0076] Among them, refer to Figure 6 A switch control is also displayed on the shooting interface, which can be used to slide or touch the switch control to switch the target template image. Other reference template images displayed on the shooting interface are also displayed under the current shooting screen with reduced brightness.
[0077] S408: Acquire the target image taken by the user.
[0078] Further, refer to Figure 6 A shooting control is displayed on the shooting interface. When the user touches the shooting control, the current shooting picture can be shot to obtain the target shooting image.
[0079] S409, determining a target position and a target posture of the photographed person in the target photographed image.
[0080] The target position is the image position of the photographed person in the target photographed image.
[0081] S410: If the target position and the reference position, and / or the target posture are different from the current posture, save the target captured image into a preset template library.
[0082] For example, refer to Figure 7 ,In the target shot image, the target position of the photographed person is different from the reference position of the reference person, and the target posture of the photographed person is different from the reference posture of the reference person.
[0083] Among them, saving the target captured image into the preset template library can enrich the preset module library.
[0084] Specifically, saving the target captured image to the preset template library includes: obtaining the shooting user identification of the target captured image; analyzing the shooting type of the target captured image; establishing a mapping relationship between the target captured image, the shooting user identification and the shooting type; and saving the mapping relationship to the preset template library.
[0085] The shooting type includes: a portrait type or a scenic spot check-in type. If the proportion of the human object in the image to the image is greater than or equal to a first preset value, the image is a portrait type. If the proportion of the human object in the image to the area of the image is less than a first preset value, or there is a scenic spot in the image, and the proportion of the scenic spot to the area of the image is greater than a second preset value, the image is a scenic spot check-in type.
[0086] Furthermore, a preset template library can be pre-built, and various types of images can be added as template images in the preset template library, such as scenic spot check-in images, idol imitation images, or creative collaboration images, etc. In addition, images taken by different professional photographers and images with high interaction volume on the Internet can be added as template images in the preset template library.
[0087] In the embodiment of the present disclosure, the user can select reference template images of different styles. After the user shoots a preview image, multiple reference template images can be determined based on the preview image and the target style selected by the user for the user to imitate and learn. In addition, during the user's shooting process, the determined target template image can be displayed on the shooting interface with reduced brightness for the user to imitate and learn more efficiently. Finally, the target shooting image shot by the user can also be used as a template image to enrich the preset template library. In summary, the present disclosure can achieve efficient shooting of high-quality images.
[0088] Corresponding to the image capturing method of the above embodiment, Figure 8 FIG. 8 is a structural block diagram of an image capturing device 80 provided in an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 8 As shown, the image capturing device 80 specifically includes: an acquisition unit 801, a determination unit 802 and a display unit 803, wherein:
[0089] An acquisition unit 801 is used to acquire a preview image shot for a target scene;
[0090] A determining unit 802 is used to determine at least one reference template image matching the preview image in a preset template library, the reference template image including a human object, a background object, and a reference line, the similarity between the background object and the object in the preview image is greater than a similarity threshold, and the reference line is used to identify a reference position of the human object in the preview image and a reference posture of the human object;
[0091] The display unit 803 is used to display at least one reference template image, where the reference template image is used to guide the user to capture an image with reference to a reference position and a reference posture.
[0092] In some embodiments, the determination unit 802 is specifically used to obtain a target style selected by a user; determine multiple template images matching the preview image in a preset template library; and determine at least one reference template image that meets the target style among the multiple template images.
[0093] In some embodiments, if the target style is a preset smart style, the determination unit 802 is specifically used to determine a template image whose interaction amount is greater than a preset threshold as at least one reference template image that conforms to the preset smart style when determining at least one reference template image that conforms to the target style, and the interaction amount includes: at least one of the likes amount, the collection amount, and the forwarding amount.
[0094] In some embodiments, the target style includes: custom grid, the custom style includes: type and / or photographer, and the type includes portrait or scenic spot check-in.
[0095] In some embodiments, a switching unit (not shown) is also included, which is used to respond to the user's triggering operation on the shooting control after displaying multiple reference template images, and switch to the shooting interface, wherein the current shooting screen and the target template image are displayed on the shooting interface, the target template image is displayed under the current shooting screen, the display transparency of the target template image is lower than the transparency threshold, and the target template image is one of the at least one reference template image.
[0096] In some embodiments, the switching unit is also used to, after switching to the shooting interface in response to a user's triggering operation on the shooting control, switch the target template image to another reference template image among multiple reference template images in response to a user's switching operation on the shooting interface.
[0097] In some embodiments, a storage module (not shown) is used to obtain a target image taken by a user after displaying at least one reference template image; determine the target position and target posture of the photographed person in the target image; if the target position and reference position, and / or the target posture are different from the current posture, save the target image to a preset template library.
[0098] In some embodiments, when the storage module saves the target captured image into a preset template library, it is specifically used to obtain the shooting user identification of the target captured image; analyze the shooting type of the target captured image; establish a mapping relationship between the target captured image, the shooting user identification and the shooting type; and save the mapping relationship into the preset template library.
[0099] The image capturing device provided in this embodiment can be used to execute the technical solution of the embodiment of the above-mentioned image capturing method. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0100] refer to Fig. 9 , which shows a schematic diagram of the structure of an electronic device 90 suitable for implementing the embodiment of the present disclosure, and the electronic device 90 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device 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.
[0101] like Fig. 9 As shown, the electronic device 90 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 91, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 92 or a program loaded from a storage device 98 to a random access memory (RAM) 93. Various programs and data required for the operation of the electronic device 90 are also stored in the RAM 93. The processing device 91, the ROM 92, and the RAM 93 are connected to each other via a bus 94. An input / output (I / O) interface 95 is also connected to the bus 94.
[0102] Typically, the following devices may be connected to the I / O interface 95: input devices 96 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 97 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 98 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 99. The communication device 99 may allow the electronic device 90 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 90 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0103] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 99, or installed from a storage device 98, or installed from a ROM 92. When the computer program is executed by the processing device 91, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0104] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0105] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0106] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0107] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0108] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a unit, a program segment or a part of a code, and the unit, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0109] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0110] The functions described above in this document may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), and so on. A pp li cat i on Specific Standard Parts), System on Chip (SOC, System on Chip), Complex Programmable Logic Devices (CPLD, Comp l ex Programmable Logic Device) and so on.
[0111] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM, Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0112] In a first aspect, according to one or more embodiments of the present disclosure, there is provided an image capturing method, comprising: acquiring a preview image captured for a target scene; determining at least one reference template image matching the preview image in a preset template library, the reference template image comprising a human object, a background object and a reference line, the similarity between the background object and the object in the preview image being greater than a similarity threshold, the reference line being used to identify a reference position of the human object in the preview image and a reference posture of the human object; and displaying at least one reference template image, the reference template image being used to guide a user to capture an image with reference to a reference position and a reference posture.
[0113] According to one or more embodiments of the present disclosure, determining at least one reference template image that matches the preview image in a preset template library includes: acquiring a target style selected by a user; determining multiple template images that match the preview image in the preset template library; and determining at least one reference template image that meets the target style among the multiple template images.
[0114] According to one or more embodiments of the present disclosure, if the target style is a preset smart style, determining at least one reference template image that conforms to the target style includes: determining a template image whose interaction amount is greater than a preset threshold as at least one reference template image that conforms to the preset smart style, and the interaction amount includes: at least one of the likes amount, the collection amount, and the forwarding amount.
[0115] According to one or more embodiments of the present disclosure, the target style includes: custom grids, the custom style includes: types and / or photographers, and the types include portraits or scenic spot check-ins.
[0116] According to one or more embodiments of the present disclosure, after displaying multiple reference template images, it also includes: responding to a user's triggering operation on a shooting control, switching to a shooting interface, wherein a current shooting screen and a target template image are displayed on the shooting interface, the target template image is displayed under the current shooting screen, the display transparency of the target template image is lower than a transparency threshold, and the target template image is one of at least one reference template image.
[0117] According to one or more embodiments of the present disclosure, displaying at least one reference template image includes: displaying multiple reference template images, responding to a user's triggering operation on a shooting control, and after switching to a shooting interface, further includes: responding to a user's switching operation on the shooting interface, switching a target template image to another reference template image among the multiple reference template images.
[0118] According to one or more embodiments of the present disclosure, after displaying at least one reference template image, it also includes: acquiring a target shot image taken by a user; determining a target position and a target posture of a photographed person in the target shot image; if the target position and the reference position, and / or the target posture are different from the current posture, saving the target shot image to a preset template library.
[0119] According to one or more embodiments of the present disclosure, saving the target captured image to a preset template library includes: obtaining a shooting user identifier of the target captured image; analyzing a shooting type of the target captured image; establishing a mapping relationship between the target captured image, the shooting user identifier, and the shooting type; and saving the mapping relationship to the preset template library.
[0120] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an image capturing device, including:
[0121] An acquisition unit, used for acquiring a preview image shot for a target scene;
[0122] a determination unit, configured to determine at least one reference template image matching the preview image in a preset template library, the reference template image comprising a human object, a background object, and a reference line, the similarity between the background object and the object in the preview image being greater than a similarity threshold, and the reference line being used to identify a reference position of the human object in the preview image and a reference posture of the human object;
[0123] The display unit is used to display at least one reference template image, where the reference template image is used to guide the user to capture images with reference to a reference position and a reference posture.
[0124] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0125] Memory stores computer-executable instructions;
[0126] At least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the image capturing method provided in the first aspect above.
[0127] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image capture method provided in the first aspect above is implemented.
[0128] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, the computer program product comprising computer execution instructions, and when a processor executes the computer execution instructions, the image capture method provided in the first aspect above is implemented.
[0129] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0130] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0131] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An image capturing method, comprising: Obtain a preview image shot for a target scene; Determine at least one reference template image matching the preview image in a preset template library, the reference template image comprising a person object, a background object, and a reference line, the similarity between the background object and the object in the preview image is greater than a similarity threshold, and the reference line is used to identify a reference position of the person object in the preview image and a reference posture of the person object; The at least one reference template image is displayed, where the reference template image is used to guide the user to capture an image with reference to the reference position and reference posture.
2. The image capturing method according to claim 1, wherein determining at least one reference template image matching the preview image in a preset template library comprises: Get the target style selected by the user; Determining a plurality of template images matching the preview image in the preset template library; Among the multiple template images, at least one reference template image that conforms to the target style is determined.
3. The image capturing method according to claim 2, wherein the target style comprises: Customized grid, the customized style includes: type and / or photographer, the type includes portrait or scenic spot check-in.
4. The image capturing method according to claim 1, after displaying the plurality of reference template images, further comprising: In response to the user's triggering operation on the shooting control, switch to the shooting interface, wherein the shooting interface displays the current shooting screen and the target template image, the target template image is displayed under the current shooting screen, the display transparency of the target template image is lower than the transparency threshold, and the target template image is one of the at least one reference template image.
5. The image capturing method according to claim 4, wherein displaying the at least one reference template image comprises: Displaying a plurality of reference template images, the step of responding to a user's triggering operation on a shooting control and switching to a shooting interface further comprises: In response to a switching operation of the user on the shooting interface, the target template image is switched to another reference template image among the multiple reference template images.
6. The image capturing method according to any one of claims 1 to 5, after displaying the at least one reference template image, further comprising: Obtain the target image taken by the user; Determining a target position and a target posture of a photographed person in the target photographed image; If the target position and the reference position, and / or the target posture and the current posture are different, the target captured image is saved in the preset template library.
7. The image capturing method according to claim 6, wherein the step of saving the target captured image to the preset template library comprises: Obtaining a user identification of the target captured image; Analyzing the shooting type of the target shot image; Establishing a mapping relationship between the target captured image, the capturing user identifier and the capturing type; The mapping relationship is saved in the preset template library.
8. An image capturing device, comprising: An acquisition unit, used for acquiring a preview image shot for a target scene; a determining unit, configured to determine at least one reference template image matching the preview image in a preset template library, the reference template image comprising a human object, a background object, and a reference line, the similarity between the background object and an object in the preview image being greater than a similarity threshold, and the reference line being used to identify a reference position of the human object in the preview image and a reference posture of the human object; The display unit is used to display the at least one reference template image, where the reference template image is used to guide the user to capture an image with reference to the reference position and reference posture.
9. An electronic device, comprising: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image capturing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the image capturing method according to any one of claims 1 to 7 is implemented.