Shooting method, device, storage medium and electronic device
By obtaining the distance parameters of the subject to be photographed in the shooting interface and the shooting lens, and adjusting the area ratio in the shooting interface, the problem of changing the size of the subject during shooting is solved, and the effect of keeping the size of the subject unchanged when the relative shooting distance changes.
Patent Information
- Application Number
- CN202211231361.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-10-09
AI Technical Summary
During the process of shooting a moving object or a photographer, the relative distance between the lens and the subject changes in the relative distance, causing the size of the subject displayed on the framing screen to change, destroying the pre-conceived composition structure and affecting the user's shooting experience.
By obtaining the first and second distance parameters of the subject to be photographed from the shooting interface in the shooting interface, the area ratio of the subject to be photographed in the shooting interface is adjusted to keep the size of the subject unchanged.
It realizes that when the relative shooting distance is constantly changing, the size of the shooting object remains unchanged, which is conducive to rapid and continuous shooting according to the composition structure that was conceived in advance.
Smart Images

Figure CN115633249B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a shooting method, device, storage medium and electronic device. Background Art
[0002] As people's living standards improve, smartphones have become an indispensable communication tool for most people. The quality of photos taken by their built-in cameras has become higher and higher with the evolution of the products, and the scenarios in which users use mobile phones to take photos are very diverse.
[0003] However, during the shooting process, when the relative distance between the lens and the subject changes due to shooting a moving object or the movement of the photographer, the size of the subject displayed on the viewfinder screen will change, which will destroy the pre-conceived composition structure. Therefore, the size of the subject displayed on the viewfinder screen will change as the distance from the lens changes, which will affect the user's shooting experience. Summary of the invention
[0004] In view of the above problems, the present application provides a shooting method, device, storage medium and electronic device, so as to adjust the size of the object to be photographed in the shooting interface by comparing the changes in the distance between the object to be photographed in the shooting interface and the shooting lens, so that the size of the object to be photographed displayed on the shooting interface remains unchanged.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, including: obtaining a first distance parameter between an object to be photographed and a shooting lens in a shooting interface; obtaining a second distance parameter between the object to be photographed and the shooting lens; and adjusting an area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter to perform shooting.
[0006] In one embodiment, after obtaining the first distance parameter between the object to be photographed and the photographing lens in the photographing interface, the method further includes: determining a preset area ratio of the object to be photographed in the photographing interface.
[0007] In one embodiment, adjusting the area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter includes: determining the shooting area ratio of the object to be photographed in the shooting interface in the second distance parameter; when the second distance parameter is greater than or less than the first distance parameter, determining a focus parameter or an image cropping area based on the preset area ratio and the shooting area ratio; and adjusting the area ratio of the object to be photographed in the shooting interface based on the focus parameter or the image cropping area.
[0008] In one embodiment, adjusting the area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter includes: determining the shooting area ratio of the object to be photographed in the shooting interface in the second distance parameter; when the second distance parameter is equal to the first distance parameter, determining the image cropping area based on the preset area ratio and the shooting area ratio; and adjusting the area ratio of the object to be photographed in the shooting interface based on the image cropping area.
[0009] In one embodiment, the method further includes: acquiring a photographing object in the photographing interface; marking and determining the target photographing object to acquire the object to be photographed.
[0010] In one embodiment, determining the preset area ratio of the object to be photographed in the shooting interface includes: when the user determines the object to be photographed, obtaining a preset area ratio adjustment prompt; after the user confirms the adjustment prompt, setting the target preset area ratio.
[0011] In one embodiment, the marking determines the target photographing object to obtain the object to be photographed, including: when the target photographing objects include more than two, setting a sorting identifier for the target photographing objects; and determining at least two target photographing objects as the objects to be photographed based on the sorting identifier.
[0012] In a second aspect, an embodiment of the present application provides a shooting device, comprising: a first acquisition module, used to acquire a first distance parameter between an object to be shot and a shooting lens in a shooting interface; a second acquisition module, used to acquire a second distance parameter between the object to be shot and the shooting lens; and an adjustment module, used to adjust an area ratio of the object to be shot in the shooting interface based on the first distance parameter and the second distance parameter to perform shooting.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the processor is used to execute a computer program stored in the memory to implement the shooting method introduced in any implementation manner of the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing one or more programs, which can be executed by the electronic device as described in the third aspect to implement the shooting method as described in any implementation method of the first aspect.
[0015] A shooting method, device, storage medium and electronic device provided in the embodiments of the present application can obtain a first distance parameter between an object to be shot and a shooting lens in an interface and a second distance parameter whose size displayed on a viewfinder screen changes with the change in the distance of the object from the lens, and adjust the area ratio of the object to be shot in the shooting interface through the first distance parameter and the second distance parameter, so that the size of the object displayed on the screen remains unchanged at a set value, which is conducive to rapid and continuous shooting according to a pre-conceived composition structure.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Hereinafter, the present application will be described in more detail based on embodiments and with reference to the accompanying drawings.
[0018] Figure 1 A schematic diagram showing a process of a shooting method proposed in an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram of an implementation process of a shooting method proposed in an embodiment of the present application is shown;
[0020] Figure 3 A structural block diagram of a photographing device proposed in an embodiment of the present application is shown;
[0021] Figure 4 A structural block diagram of an electronic device for executing a photographing method according to an embodiment of the present application is shown;
[0022] Figure 5 A computer-readable storage medium for storing or carrying a shooting method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0024] In the related art, when shooting a moving object or the movement of the photographer causes the relative distance between the lens and the object to change, the size of the object displayed on the viewfinder screen will change, which will destroy the pre-conceived composition structure. The current operation is to spend time re-adjusting the focus and shooting again, which is not conducive to fast and continuous shooting according to the pre-conceived composition structure.
[0025] In view of the above problems and in consideration of the problems existing in the prior art, the applicant has proposed a shooting method, device, storage medium and electronic device in the embodiments of the present application, which obtains a first distance parameter between the object to be shot and the shooting lens in the shooting interface, and obtains a second distance parameter between the object to be shot and the shooting lens to determine the situation when the relative distance between the lens and the object changes due to the shooting of a moving object or the movement of the photographer, and adjusts the area ratio of the object to be shot in the shooting interface based on the first distance parameter and the second distance parameter to shoot, so as to achieve that the size of the object to be shot displayed on the scene screen remains unchanged at the set value, and when the relative shooting distance keeps changing, it is conducive to fast and continuous shooting according to the composition structure conceived in advance. Among them, the shooting method is described in detail in the subsequent embodiments.
[0026] In this embodiment, the shooting method can be applied to a smart phone or a smart device with a camera.
[0027] The shooting method involved in the embodiment of the present application can be applied to Figure 3 The photographing device 300 shown is similar to Figure 4 The electronic device 200 shown. The electronic device 200 may be one or more, and the embodiment of the present application does not specifically limit this, wherein the electronic device may be a smart device such as a mobile phone, a computer, etc.
[0028] The following will describe various embodiments of the present application in detail with reference to the accompanying drawings, taking a mobile phone as an example.
[0029] See also Figure 1 , Figure 1 A schematic flow chart of a photographing method provided in an embodiment of the present application, the method may include steps S110 to S130.
[0030] Step S110: obtaining a first distance parameter between the object to be photographed and the photographing lens in the photographing interface.
[0031] In an embodiment of the present application, the shooting interface may be a viewfinder interface previewed in a mobile phone shooting interface, and the shooting object may be a moving object subject selected in the shooting interface to be shot, for example, a moving object such as a person, a pet, a vehicle, etc., wherein the moving object subject may be one or more, and the present application does not limit it. In some embodiments, when the mobile phone system recognizes the features of the object, it may be used as the subject of the shooting picture. The first distance parameter may be a first distance parameter determined by the user when presetting the composition.
[0032] Step S120: obtaining a second distance parameter between the object to be photographed and the photographing lens.
[0033] In an embodiment of the present application, when the relative distance between the lens and the object changes due to shooting a moving object or the movement of the photographer, a second distance parameter between the object to be photographed and the shooting lens is obtained, wherein the second distance parameter can be a distance that is gradually approaching the object to be photographed, gradually moving away from the object to be photographed, or a distance that remains unchanged from the object to be photographed.
[0034] Step S130: adjusting the area ratio of the object to be photographed in the photographing interface based on the first distance parameter and the second distance parameter to perform photographing.
[0035] In an embodiment of the present application, the mobile phone camera module can detect changes in the first distance and the second distance between the photographed object and the lens after integrating the TOF lens, compare the current distance with the distance corresponding to the set display size, and then adjust the area ratio of the object to be photographed in the shooting interface to achieve the size of the photographed object displayed on the viewfinder screen remains unchanged at the set value, which is more conducive to shooting.
[0036] Considering that the display size set in the shooting picture changes, it is necessary to determine the display size that the device needs to adjust.
[0037] In some embodiments, the shooting method may further include step S112.
[0038] Step S112: Determine a preset area ratio of the object to be photographed in the photographing interface.
[0039] In the embodiment of the present application, after the user sets the composition structure, the user can set the area that the subject occupies in the screen preview interface, such as 40%, 50%, etc.
[0040] In some embodiments, step S130 adjusts the area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter, including steps S210 to S230.
[0041] Step S210: determining the shooting area ratio of the object to be shot in the shooting interface in the second distance parameter.
[0042] In an embodiment of the present application, the second distance parameter is obtained by obtaining the distance data between the lens and the photographed object for the second time through the TOF lens, and the system compares the difference between the two data to obtain the shooting area ratio of the photographed object in the shooting interface.
[0043] Step S220: When the second distance parameter is greater than or less than the first distance parameter, a focus parameter or an image cropping area is determined based on a preset area ratio and a shooting area ratio.
[0044] In an embodiment of the present application, when the distance of the second shooting becomes farther or closer than that of the first shooting, the focus parameter or the image cropping area can be determined by comparing the preset area ratio and the shooting area ratio.
[0045] For example, on one hand, in the preview composition initially set by the user in the first shooting, the area ratio of the subject being photographed in the screen shooting preview interface is 33%. When taking pictures through the shooting mode, if the initial position of the subject being photographed is less than the distance from the lens to the initial first shooting preview composition, the initial native value of the area ratio of the subject being photographed in the screen shooting preview interface is 50%. The system determines that the current native value (i.e., the shooting area ratio) is greater than the set value (i.e., the preset area ratio), and automatically adjusts the lens to the focal length corresponding to the ratio of 33%. On the other hand, after the subject is moved, it is 5 meters away from the lens. At this time, the initial native value of the area ratio of the subject being photographed in the screen shooting preview interface is 20%; the system determines that the current native value is less than the set value, and automatically adjusts the lens to the focal length corresponding to the ratio of 33%.
[0046] Step S230: adjusting the area ratio of the object to be photographed in the shooting interface based on the focus parameter or the image cropping area.
[0047] In the embodiment of the present application, the area ratio of the object to be photographed in the shooting interface can be adjusted by focusing or image cropping area, which is specifically used according to the adaptability of the system.
[0048] In this embodiment, after integrating the TOF lens, the mobile phone camera module can detect the distance between the subject and the lens, and compare the current distance with the distance corresponding to the set display size, so as to synchronously obtain data and upload it to the system. The system adjusts the size of the subject displayed on the viewfinder screen by automatically adjusting the focal length or image cropping, zooming in and out, so that the size of the subject displayed on the screen remains unchanged at the set value.
[0049] In some embodiments, step S130 adjusts the area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter, and also includes the step:.
[0050] Step S210: determining the shooting area ratio of the object to be shot in the shooting interface in the second distance parameter.
[0051] Step S240: when the second distance parameter is equal to the first distance parameter, determining the image cropping area based on the preset area ratio and the shooting area ratio.
[0052] In the embodiment of the present application, when the second distance parameter is equal to the first distance parameter, there is no need to adjust the shooting through the focal length. On the one hand, if the distance remains unchanged and the proportion of the shooting subject object in the screen shooting preview interface is the user-set value, no adjustment is required. On the other hand, if the distance remains unchanged, but there is a difference between the proportion of the shooting subject object in the screen shooting preview interface and the user-set value, adjustment is required.
[0053] Step S250: adjusting the area ratio of the object to be photographed in the shooting interface based on the image cropping area.
[0054] In some embodiments, the shooting method further includes steps S102 to S104.
[0055] Step S102: Acquire the shooting object in the shooting interface.
[0056] In an embodiment of the present application, the photo mode can be turned on, the person is displayed in the preview interface, and a preliminary alignment and composition is performed according to the photographer's ideas.
[0057] Step S104: Mark and determine the target shooting object to obtain the object to be shot.
[0058] In the embodiment of the present application, when the system recognizes the photographed subject in the preview interface, the subject can be surrounded by a prominent marking line.
[0059] It should be noted that the system prompts the photographer to set the proportion of the screen photo preview interface occupied by the subject object. After the photographer confirms the selection of the subject, he can set the proportion.
[0060] In some embodiments, step S112 of determining a preset area occupancy of the object to be photographed in the photographing interface may include steps S1122 to S1124.
[0061] Step S1122: When the user determines the object to be photographed, a preset area ratio adjustment prompt is obtained.
[0062] In the embodiment of the present application, it can be preset in the photo setting, and after confirming the photo subject object, the user is prompted whether to directly call the setting value in the system.
[0063] Step S1124: After the user confirms the adjustment prompt, the target preset area ratio is set.
[0064] In the embodiment of the present application, after the user confirms the manual setting, the currently required ratio can be set.
[0065] In this embodiment, the required adjustment ratio can be set according to user requirements.
[0066] In some embodiments, step S104 of marking and determining the target photographing object to obtain the object to be photographed may include steps S1042 to S1044.
[0067] Step S1042: when there are more than two target photographing objects, a sorting mark is set for the target photographing objects.
[0068] In an embodiment of the present application, the system may have a built-in algorithm, and when a set object (such as a person, an animal, a vehicle, etc.) appears in the shooting preview interface, the system begins to identify the object and mark it.
[0069] Step S1044: determining at least two target shooting objects as objects to be shot based on the sorting identifiers.
[0070] In an embodiment of the present application, the user is prompted to confirm or deny that the marked subject is the subject the user wants to photograph; when there are multiple set subjects in the shooting preview interface, multiple subjects need to be marked and numbered.
[0071] It should be noted that when there are multiple subjects to be set, the composition can be set through multiple themes, and the area and subsequent area ratio can be determined.
[0072] See also Figure 2 , Figure 2 The following is a schematic diagram of an implementation process of a shooting method. The exemplary implementation of the shooting method of the present application is as follows:
[0073] S1. All components of the smartphone are in normal working condition;
[0074] S2. Turn on the camera / video function of the mobile phone and point the camera toward the moving object to be photographed. The default focal length is 1x and the object can be previewed on the viewfinder screen.
[0075] S3. Select the active object to be photographed in the screen preview interface, such as a person, pet, vehicle or other active object. At this time, the system recognizes the characteristics of the object and marks the object as the subject of the shooting screen;
[0076] S4. At this time, the TOF lens obtains the distance data between the lens and the photographed object for the first time and uploads it to the system for storage;
[0077] S5. After the user sets the composition structure, the user sets the area of the subject in the screen preview interface, such as 40%, 50%, etc. This step can also be pre-set in the system as required, eliminating the selection operation when shooting;
[0078] S6. The TOF lens obtains the distance data between the lens and the object for the second time, and the system compares the difference between the two data;
[0079] S7. There are three situations when the distance changes when taking photos:
[0080] S71. The subject is far away from the lens: if the second time is farther away than the first time, the system calculates the corresponding focal length or uses the image cropping method to adjust the subject's area in the screen preview interface to a preset value;
[0081] S72. The distance between the subject and the lens remains unchanged: if the distance remains unchanged in the second shot compared to the first shot, the focal length remains unchanged, and the area occupied by the subject in the screen preview interface is adjusted to be reduced or enlarged to a preset value using a method of image cropping;
[0082] S73. The subject approaches the lens: if the second time is closer than the first time, the system calculates and matches the corresponding focal length or uses the image cropping method to adjust the subject's area in the screen preview interface to a preset value;
[0083] S8. In the three cases mentioned in S7, the system processes the original image according to different conditions;
[0084] S9. presenting the set picture on the viewfinder screen according to the area occupied by the subject in the screen preview interface set by the user.
[0085] S10. If the distance between the moving object to be photographed and the lens is constantly changing, repeat steps S4 to S9. End.
[0086] See also Figure 3 , Figure 3 This is a structural block diagram of a shooting device provided by the present application. The shooting device 300 includes: an acquisition module 310, a confirmation module 320 and a control module 330, wherein:
[0087] The first acquisition module 310 is used to acquire the user's setting operation on the device.
[0088] The second acquisition module 320 is used to determine the operation mode and function of the device.
[0089] The adjustment module 330 is used to adjust the area ratio of the object to be photographed in the shooting interface based on the first distance parameter and the second distance parameter to perform shooting.
[0090] It should be noted that the device embodiments in the present application correspond to each other with the aforementioned method embodiments. The specific principles in the device embodiments can be found in the contents of the aforementioned method embodiments and will not be repeated here.
[0091] In several embodiments provided in this embodiment, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0092] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0093] See also Figure 4 , Figure 4 The present application provides a structural block diagram of an electronic device 200 that can execute the above-mentioned shooting method. The electronic device 200 can be a smart phone, a tablet computer, a computer, a portable computer or other devices.
[0094] The electronic device 200 further includes a processor 202 and a memory 204. The memory 204 stores a program that can execute the contents of the aforementioned embodiments, and the processor 202 can execute the program stored in the memory 204.
[0095] Among them, the processor 202 may include one or more cores and message matrix units for processing data. The processor 202 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes various functions and processes data of the electronic device 200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 204, and calling data stored in the memory 204. Optionally, the processor 202 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 202 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modulation decoder. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modulation decoder may not be integrated into the processor, but may be implemented separately through a communication chip.
[0096] The memory 204 may include a random access memory (RAM) or a read-only memory (ROM). The memory 204 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 204 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., instructions for a user to obtain a random number), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (e.g., random numbers) created by the terminal during use, etc.
[0097] The electronic device 200 may also include a network module and a screen. The network module is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices, such as communicating with an audio playback device. The network module may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen may display interface content and perform data interaction.
[0098] Please refer to Figure 5 , Figure 5 The computer-readable storage medium 400 stores program code 410, which can be called by a processor to execute the method described in the above method embodiment.
[0099] The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program codes 410 that perform any method steps in the above method. These program codes 410 can be read from or written to one or more computer program products. The program codes 410 can be compressed, for example, in an appropriate form.
[0100] The embodiment of the present application further provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium 400. The processor of the computer device reads the computer instruction from the computer-readable storage medium 400, and the processor 202 executes the computer instruction, so that the computer device executes the shooting method described in the above various optional implementations.
[0101] In summary, the present application provides a shooting method, device, storage medium and electronic device, which obtains a first distance parameter between an object to be shot and a shooting lens in an interface and a second distance parameter whose size displayed on a viewfinder screen changes accordingly due to a change in the distance of the object from the lens, and adjusts the area ratio of the object to be shot in the shooting interface by the first distance parameter and the second distance parameter, so that the size of the object displayed on the screen remains unchanged at a set value, which is conducive to fast and continuous shooting according to a pre-conceived composition structure. After integrating a TOF lens, the distance between the object and the lens can be detected, and the current distance can be compared with the distance corresponding to the set display size, so that data can be synchronously acquired and uploaded to the system. The system adjusts the size of the object displayed on the viewfinder screen by automatically adjusting the focal length or image cropping, zooming in and out, etc., so that the size of the object displayed on the screen remains unchanged at the set value.
[0102] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A shooting method, It is characterized in that The method comprises: Obtaining a first distance parameter between the object to be photographed and the photographing lens in the photographing interface; Determine a preset area ratio of the object to be photographed in the photographing interface; Acquire a second distance parameter between the object to be photographed and the photographing lens; Adjusting the area ratio of the object to be photographed in the photographing interface based on the first distance parameter and the second distance parameter to perform photographing; specifically comprising: Determine a proportion of a shooting area of the object to be shot in the shooting interface in the second distance parameter; When the second distance parameter is equal to the first distance parameter, determining the image cropping area based on the preset area ratio and the shooting area ratio; The area ratio of the object to be photographed in the shooting interface is adjusted based on the image cropping area.
2. The photographing method according to claim 1, It is characterized in that The adjusting the area ratio of the object to be photographed in the photographing interface based on the first distance parameter and the second distance parameter includes: Determine a proportion of a shooting area of the object to be shot in the shooting interface in the second distance parameter; When the second distance parameter is greater than or less than the first distance parameter, determining a focus parameter or an image cropping area based on the preset area ratio and the shooting area ratio; The area ratio of the object to be photographed in the shooting interface is adjusted based on the focus parameter or the image cropping area.
3. The photographing method according to claim 1, It is characterized in that The method further comprises: Acquire a target photographing object in the photographing interface; The target photographing object is determined by marking to obtain the object to be photographed.
4. The photographing method according to claim 1, It is characterized in that The determining a preset area ratio of the object to be photographed in the photographing interface includes: When the user determines the object to be photographed, obtaining a preset area ratio adjustment prompt; After the user confirms the adjustment prompt, the preset area ratio is set.
5. The photographing method according to claim 3, It is characterized in that The marking determines the target photographing object to obtain the object to be photographed, including: When the target photographing objects include more than two, setting a sorting mark for the target photographing objects; At least two target shooting objects are determined as the objects to be shot based on the sorting identifier.
6. A photographing device, It is characterized in that The device comprises: A first acquisition module, used to acquire a first distance parameter between the object to be photographed and the photographing lens in the photographing interface; A second acquisition module, used to acquire a second distance parameter between the object to be photographed and the photographing lens; An adjustment module, used to determine a preset area ratio of the object to be photographed in the photographing interface, and to adjust the area ratio of the object to be photographed in the photographing interface based on the first distance parameter and the second distance parameter to perform photographing, specifically comprising: Determine a proportion of a shooting area of the object to be shot in the shooting interface in the second distance parameter; When the second distance parameter is equal to the first distance parameter, determining the image cropping area based on the preset area ratio and the shooting area ratio; The area ratio of the object to be photographed in the shooting interface is adjusted based on the image cropping area.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, and the program codes are called by one or more processors to execute the shooting method according to any one of claims 1 to 5.
8. An electronic device, It is characterized in that The electronic device includes a memory and a processor. The memory stores a program code that can be run on the processor. When the program code is executed by the processor, the shooting method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Shooting method and device, electronic equipment and readable storage medium
CN112738397A