Object distance adjustment method and device, storage medium, electronic equipment and chip

CN122802774APending Publication Date: 2026-09-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510337960.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-20
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

[0004]本公开提供一种物距调整方法、装置、存储介质、电子设备及芯片,主要目的在于改善目前用户不断调整拍摄距离的拍摄方式不仅浪费时间,还可能导致拍摄图像模糊、失真或构图不佳,影响拍摄效率和拍摄成果的质量的技术问题

Benefits of technology

[0032]根据本公开实施例的第五方面,提供一种计算机程序产品,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802774A_ABST
    Figure CN122802774A_ABST
Patent Text Reader

Abstract

The present disclosure relates to an object distance adjustment method and device, a storage medium, an electronic device and a chip. The method comprises: first obtaining a user's desired shooting parameter; then determining a target shooting distance between an object and a shooting lens according to the shooting parameter; and then guiding the user to adjust the position of the shooting lens based on the target shooting distance and the actual distance between the object and the shooting lens. By applying the technical solution of the present disclosure, the corresponding target shooting distance can be calculated according to the user's desired shooting parameter, and the user is guided to reach a position with a target shooting distance from the object, saving the user's shooting distance adjustment time, allowing the user to more accurately shoot photos that meet expectations, effectively avoiding image blurring, distortion or poor composition caused by improper distance, and improving shooting efficiency and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a method, apparatus, storage medium, electronic device and chip for adjusting object distance. Background Technology

[0002] With the development of current shooting technology, users' requirements for the quality of shooting results are also gradually increasing. However, many novice users find it difficult to compose shots because they don't know how to control the subject distance (the distance between the object and the shooting lens), or they find it difficult to use the desired focal length to shoot specific scenes due to environmental limitations. Different shooting scenes and needs have different requirements for subject distance. By precisely controlling the shooting distance, you can ensure the sharpness of the image and the composition effect.

[0003] Currently, it is difficult for users to intuitively determine the optimal shooting distance. They usually need to repeatedly adjust the shooting distance to achieve satisfactory results. However, for users with high-precision shooting needs, this shooting method is not only a waste of time, but may also lead to blurry, distorted, or poorly composed images, affecting shooting efficiency and the quality of shooting results. Summary of the Invention

[0004] This disclosure provides a method, apparatus, storage medium, electronic device, and chip for adjusting object distance. The main purpose is to improve the technical problem that the current shooting method, in which users constantly adjust the shooting distance, not only wastes time but may also lead to blurry, distorted, or poorly composed images, thus affecting shooting efficiency and the quality of shooting results.

[0005] According to a first aspect of the present disclosure, an object distance adjustment method is provided, comprising:

[0006] Obtain the shooting parameters desired by the user;

[0007] Based on the shooting parameters, determine the target shooting distance between the object and the shooting lens;

[0008] Based on the target shooting distance and the actual distance between the object and the shooting lens, the user is guided to adjust the position of the shooting lens.

[0009] Optionally, the shooting parameters include: sensor size, actual focal length, and object height;

[0010] Determining the target shooting distance between the object and the shooting lens based on the shooting parameters includes:

[0011] Determine the corresponding sensor conversion coefficient based on the sensor size;

[0012] Based on the sensor conversion coefficient, the actual focal length is converted into an equivalent focal length;

[0013] The target shooting distance is calculated based on the sensor size, the equivalent focal length, and the object height.

[0014] Optionally, guiding the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the shooting lens includes:

[0015] The actual distance between the object and the camera lens is measured in real time using a distance sensor;

[0016] Calculate the distance difference between the actual distance and the target shooting distance;

[0017] Based on the distance difference, the user is guided to adjust the position of the shooting lens.

[0018] Optionally, guiding the user to adjust the position of the shooting lens based on the distance difference includes:

[0019] If the actual distance is greater than the target shooting distance, the user is guided to move the shooting lens a corresponding distance closer to the object.

[0020] If the actual distance is less than the target shooting distance, the user is guided to move the camera lens away from the object by the corresponding distance.

[0021] Optionally, guiding the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the shooting lens includes:

[0022] The user is guided to move the camera lens by means of screen display and / or prompt sound, so that the distance between the object and the camera lens is equal to the target shooting distance.

[0023] Optionally, determining the target shooting distance between the object and the shooting lens based on the shooting parameters includes:

[0024] Based on the preset shooting mode, determine the correspondence between the points on the object and the points in the field of view;

[0025] Based on the correspondence, the target shooting distance between the object and the shooting lens is calculated.

[0026] According to a second aspect of the present disclosure, an object distance adjustment device is provided, comprising:

[0027] The acquisition module is configured to acquire the shooting parameters expected by the user;

[0028] The determination module is configured to determine the target shooting distance between the object and the shooting lens based on the shooting parameters;

[0029] The adjustment module is configured to guide the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the shooting lens.

[0030] According to a third aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0031] According to a fourth aspect of the present disclosure, a communication device is provided, comprising: a transceiver; a memory; and a processor connected to the transceiver and the memory respectively, configured to control the transmission and reception of wireless signals of the transceiver by executing computer-executable instructions on the memory, and capable of implementing the method as described in the first aspect.

[0032] According to a fifth aspect of the present disclosure, a computer program product is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method described in the first aspect.

[0033] According to a sixth aspect of the present disclosure, a chip is provided, including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from a memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method described in the first aspect.

[0034] By employing the above technical solution, this disclosure provides a method, apparatus, storage medium, electronic device, and chip for adjusting object distance. Specifically, it first obtains the user's desired shooting parameters; then, based on the shooting parameters, it determines the target shooting distance between the object and the shooting lens; and finally, based on the target shooting distance and the actual distance between the object and the shooting lens, it guides the user to adjust the position of the shooting lens. Compared with current related technologies, this application calculates the corresponding target shooting distance based on the user's desired shooting parameters and guides the user to a position at the target shooting distance from the object, saving the user's shooting distance adjustment time. This allows the user to more accurately capture photos that meet expectations, effectively avoiding problems such as image blurring, distortion, or poor composition caused by improper distance, thus improving shooting efficiency and user experience.

[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0037] Figure 1 A schematic flowchart of an object distance adjustment method provided in an embodiment of this disclosure is shown;

[0038] Figure 2 A schematic flowchart of an object distance adjustment method provided in an embodiment of this disclosure is shown;

[0039] Figure 3 A flowchart illustrating an example provided by an embodiment of this disclosure is shown;

[0040] Figure 4 A schematic diagram of the structure of an object distance adjustment device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0041] Some embodiments of this disclosure will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted. It should be noted that, without conflict, the embodiments and features in the embodiments of this disclosure can be combined with each other.

[0042] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0043] Figure 1 This is a flowchart illustrating an object distance adjustment method according to some embodiments of the present disclosure, such as... Figure 1 As shown, it includes the following steps.

[0044] Step 101: Obtain the shooting parameters desired by the user.

[0045] The shooting parameters may include: sensor size, effective focal length (EFL), and object height.

[0046] In some examples, shooting parameters are primarily used to help users better control and optimize shooting results. These parameters affect the final photo quality and visual effect in different ways. For example, a larger sensor can usually capture more light information, thus providing better low-light performance and a shallower depth of field (background blur), while the actual focal length determines the extent to which the lens can magnify. For example, a telephoto lens can bring distant objects closer, while a wide-angle lens is suitable for capturing a wider scene. Similarly, the actual height of the object helps to better plan the composition in the photo, ensuring that the proportions of the subject and the environment are harmonious.

[0047] For example, by allowing users to input different shooting parameters (expected shooting values), the calculation method and distance guidance can be flexibly adjusted, solving the problem of needing different shooting parameters in different shooting scenarios. The shooting parameters in this embodiment can be flexibly adjusted according to different shooting needs (such as objects of different sizes or different shooting devices), adapting to a wide range of application scenarios, such as product photography, document scanning, and artistic creation.

[0048] Step 102: Determine the target shooting distance between the object and the shooting lens based on the shooting parameters.

[0049] In some embodiments, desired shooting parameters can be input according to actual conditions, and the target shooting distance between the object and the lens can be calculated according to the imaging principle. By precisely controlling the shooting distance, the clarity and composition effect of the image can be ensured, solving the problems of image blurring, distortion or poor composition caused by improper distance. It provides a professional-grade auxiliary tool for users who need high-precision shooting (such as photographers, engineers, designers, etc.) to help users better complete shooting tasks and improve work efficiency and result quality.

[0050] Step 103: Based on the target shooting distance and the actual distance between the object and the shooting lens, guide the user to adjust the position of the shooting lens.

[0051] For example, the target shooting distance can be displayed on the screen of the shooting device, and the actual distance can be monitored in real time. The user can be guided by voice or screen to adjust the position of the shooting lens so that the distance between the shooting lens and the object is equal to the target shooting distance, so as to achieve the imaging effect desired by the user.

[0052] For example, the combination of software algorithms and hardware sensors enhances the intelligent shooting assistance capabilities of shooting devices (such as mobile phones and cameras), thereby improving the devices' market competitiveness and user satisfaction. Simultaneously, automated calculations and intelligent guidance reduce manual operation and subjective judgment by users, simplifying the user operation process and reducing the hassle of repeatedly adjusting distances, thus improving shooting efficiency and user experience.

[0053] In some embodiments, users only need to input their desired shooting value, and the system can automatically calculate and guide the user to adjust to the optimal shooting distance, thereby improving the automation and intelligence of the shooting process.

[0054] Compared with current related technologies, this embodiment first obtains the user's desired shooting parameters; then, based on the shooting parameters, it determines the target shooting distance between the object and the shooting lens; and finally, based on the target shooting distance and the actual distance between the object and the shooting lens, it guides the user to adjust the position of the shooting lens. By applying the technical solution of this embodiment, the corresponding target shooting distance can be calculated according to the user's desired shooting parameters, and the user can be guided to a position at the target shooting distance from the object. This saves the user's shooting distance adjustment time, allowing the user to more accurately take photos that meet expectations. It effectively avoids problems such as image blurring, distortion, or poor composition caused by improper distance, improving shooting efficiency and user experience.

[0055] To further illustrate, as Figure 1 The specific implementation process of the method shown in this embodiment is provided as follows: Figure 2 The specific method shown includes:

[0056] Step 201: Obtain the shooting parameters desired by the user.

[0057] In some examples, user-input shooting parameters may include: sensor length (assuming the phone is held upright), actual focal length, height of the object being photographed, etc.

[0058] Step 202: Determine the target shooting distance between the object and the shooting lens based on the shooting parameters.

[0059] For example, applying the method of this embodiment can help users better plan their shooting distance, thereby obtaining ideal imaging results. For instance, in portrait photography, photographers can control the degree of background blur by adjusting the shooting distance; in architectural photography, precise control of the shooting distance is required to ensure the correct proportions of the buildings, etc.

[0060] Optionally, the shooting parameters include: sensor size, actual focal length, and object height; correspondingly, step 202 may specifically include: determining the corresponding sensor conversion coefficient based on the sensor size; converting the actual focal length into an equivalent focal length based on the sensor conversion coefficient; and calculating the target shooting distance based on the sensor size, equivalent focal length, and object height.

[0061] For example, a sensor conversion factor can be used to convert the actual focal length of the shooting lens into the equivalent focal length of a 35mm sensor. Equivalent focal length = actual focal length * conversion factor. For instance, the conversion factor for a full-frame sensor is 1, for a 3 / 4-inch sensor it's 1.5, for a 1-inch sensor it's 1.2, and so on. The actual conversion factor can be determined based on the sensor size. Determining the conversion factor based on the sensor size, converting the actual focal length to the equivalent focal length, and calculating the target shooting distance based on these parameters helps to precisely control shooting settings to achieve the desired imaging effect.

[0062] In some examples, such as Figure 3 As shown, H is the object height, Ua is the object distance, Va is the image distance, which is the distance between the shooting lens and the charge-coupled device (CCD) or film, and L is the length of the sensor. The distance Ua can be calculated using the following formula (Formula 1): Ua = f + H * f / L, where f is the EFL value of the optical lens.

[0063]

[0064] Optionally, the method in this embodiment may further include: determining the correspondence between points on the object and points in the field of view according to a preset shooting mode; and calculating the target shooting distance between the object and the shooting lens based on the correspondence.

[0065] For example, such as Figure 3 As shown, a point on an object will form a corresponding point on the sensor through the camera lens. The projection height of the object on the sensor can be estimated by the user to determine how much space the object occupies in the image.

[0066] In some examples, different target shooting distances can be calculated based on different object heights. In these cases, it's recommended that the points corresponding to the head and feet of the object align with the top and bottom edges of the sensor's field of view, respectively. Shooting mode options can be added, such as top-to-bottom mode (the top of the object is at the top of the field of view (fov), and the bottom is at the bottom), half-body mode (the middle of the object is at the bottom of the fov, and the top is in the middle), wide-angle mode, telephoto mode, etc. Calculating the target shooting distance based on the correspondence between points on the object and points in the field of view not only helps users better control composition during photography but also ensures that users obtain the desired shooting results.

[0067] Step 203: Use a distance sensor to measure the actual distance between the object and the camera lens in real time.

[0068] In some examples, distance sensors (such as Time of Flight (ToF) sensors) can be combined to measure the distance between the user and the target object in real time, solving the problem that users cannot accurately judge the current distance during shooting. ToF sensors calculate distance by emitting light pulses and measuring their return time, featuring high accuracy and fast response.

[0069] Step 204: Calculate the distance difference between the actual distance and the target shooting distance.

[0070] For example, by calculating the difference (ΔD) between the actual distance and the target shooting distance, users can understand how far they need to move to reach the desired shooting distance, which helps ensure that the size, proportion, and sharpness of objects in the photo meet expectations.

[0071] Step 205: Based on the distance difference, guide the user to adjust the position of the shooting lens.

[0072] In some examples, by incorporating a distance sensor, the distance between the user and the target object can be measured in real time, and the user can be guided to adjust the shooting distance to the target through screen display and prompts, which greatly reduces shooting errors and ensures the clarity and quality of the captured images.

[0073] Optionally, step 205 may specifically include: if the actual distance is greater than the target shooting distance, then guiding the user to move the shooting lens a corresponding distance closer to the object; if the actual distance is less than the target shooting distance, then guiding the user to move the shooting lens a corresponding distance away from the object.

[0074] For example, displaying the calculated target shooting distance on the screen can help users reach the corresponding location more accurately for shooting. It can also be combined with a ToF sensor to measure the current distance and then guide the user to gradually approach the calculated target shooting distance, allowing the user to accurately capture the desired image.

[0075] For example, if the actual distance is greater than the target shooting distance (ΔD > 0), the application can prompt the user via screen display or voice: "Please move the lens towards the object by approximately ΔD millimeters." If the actual distance is less than the target shooting distance (ΔD < 0), the application can prompt the user via screen display or voice: "Please move the lens away from the object by approximately |ΔD| millimeters." As the user gradually adjusts the position according to the prompts, the application remeasures the current distance and updates the prompt information after each adjustment until the target shooting distance is reached. By combining the calculated target shooting distance with the real-time measurement results from the ToF sensor, the application can effectively guide the user to precisely adjust the lens position, thereby achieving the desired shooting effect. This method not only improves shooting accuracy but also enhances the user experience, making the photography process more intelligent and convenient.

[0076] Optionally, the method in this embodiment may further include: guiding the user to move the camera lens through screen display and / or prompt sound, so that the distance between the object and the camera lens is equal to the target shooting distance.

[0077] For example, by displaying information on the screen of the shooting device and providing prompts, the system dynamically guides the user to adjust to the optimal shooting distance, solving the problem that users find it difficult to maintain the optimal distance during shooting. This includes: displaying the current distance and the target distance in real time; providing visual or auditory feedback; and guiding the user step by step to adjust the shooting lens to the optimal position through voice or image, so that the distance between the object and the shooting lens is equal to the target shooting distance, ensuring that the captured photos meet the desired effect.

[0078] Compared with current related technologies, this embodiment can calculate the corresponding target shooting distance based on the user's desired shooting parameters and guide the user to a position at the target shooting distance from the object. This saves the user's shooting distance adjustment time, allowing the user to take photos that meet expectations more accurately. It can effectively avoid problems such as image blurring, distortion, or poor composition caused by improper distance, thus improving shooting efficiency and user experience.

[0079] Figure 4 This is a block diagram illustrating an object distance adjustment device according to some embodiments of the present disclosure. (Refer to...) Figure 4 The device includes: an acquisition module 31, a determination module 32, and an adjustment module 33.

[0080] The acquisition module 31 is configured to acquire the shooting parameters expected by the user;

[0081] The determining module 32 is configured to determine the target shooting distance between the object and the shooting lens based on the shooting parameters;

[0082] The adjustment module 33 is configured to guide the user to adjust the position of the shooting lens based on the target shooting distance and the actual distance between the object and the shooting lens.

[0083] In some embodiments, the shooting parameters include: sensor size, actual focal length, and object height. Accordingly, the determining module 32 is specifically configured to: determine the corresponding sensor conversion coefficient based on the sensor size; convert the actual focal length into an equivalent focal length based on the sensor conversion coefficient; and calculate the target shooting distance based on the sensor size, the equivalent focal length, and the object height.

[0084] In some embodiments, the adjustment module 33 is specifically configured to use a distance sensor to measure the actual distance between the object and the shooting lens in real time; calculate the distance difference between the actual distance and the target shooting distance; and guide the user to adjust the position of the shooting lens based on the distance difference.

[0085] In some embodiments, the adjustment module 33 is further configured to, if the actual distance is greater than the target shooting distance, guide the user to move the shooting lens closer to the object by the corresponding distance; and if the actual distance is less than the target shooting distance, guide the user to move the shooting lens away from the object by the corresponding distance.

[0086] In some embodiments, the adjustment module 33 is further configured to guide the user to move the shooting lens through screen display and / or prompt sound, so that the distance between the object and the shooting lens is equal to the target shooting distance.

[0087] In some embodiments, the determining module 32 is further configured to determine the correspondence between points on the object and points in the field of view according to a preset shooting mode; and to calculate the target shooting distance between the object and the shooting lens based on the correspondence.

[0088] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0089] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this disclosure can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented in hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can implement the described functionality using various methods for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this disclosure.

[0090] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, implements the functions of any of the above method embodiments.

[0091] This disclosure also provides a computer program product that, when executed by a computer, implements the functions of any of the above-described method embodiments. If a computer program is stored thereon, the computer program product, when executed by a computer's processor, implements the functions of any of the above-described method embodiments.

[0092] Based on the above, Figures 1 to 2 The method shown, and Figure 4 The virtual device embodiment shown also provides a chip including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the above-described... Figures 1 to 2 The method shown.

[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that this disclosure can be implemented using software plus necessary general-purpose hardware platforms, or it can be implemented in hardware. By applying the solution of this embodiment, the corresponding target shooting distance can be calculated according to the user's desired shooting parameters, and the user can be guided to a position at the target shooting distance from the object. This saves the user's shooting distance adjustment time, allowing the user to more accurately take photos that meet expectations. It can effectively avoid problems such as image blurring, distortion, or poor composition caused by improper distance, thus improving shooting efficiency and user experience.

[0094] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer programs. When a computer program is loaded and executed on a computer, it generates, in whole or in part, the flow or function according to the embodiments of this disclosure. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, a computer program can be transferred from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0095] Those skilled in the art will understand that the various numerical designations such as "first," "second," etc., used in this disclosure are merely for the convenience of description and are not intended to limit the scope of the embodiments of this disclosure, nor do they indicate the order of events.

[0096] At least one of the features described in this disclosure can also be described as one or more, and multiple features can be two, three, four or more, and this disclosure does not impose any limitations. In the embodiments of this disclosure, for a technical feature, the technical features in that technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no sequential order or size order among the technical features described by "first", "second", "third", "A", "B", "C" and "D".

[0097] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0098] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0099] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0100] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this disclosure can be achieved, and this is not limited herein.

[0101] Furthermore, it should be understood that the various embodiments described in this disclosure can be implemented individually or in combination with other embodiments, where the scheme allows.

[0102] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments claimed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0103] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0104] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A method for adjusting object distance, characterized in that, include: Obtain the shooting parameters desired by the user; Based on the shooting parameters, determine the target shooting distance between the object and the shooting lens; Based on the target shooting distance and the actual distance between the object and the shooting lens, the user is guided to adjust the position of the shooting lens.

2. The method according to claim 1, characterized in that, The shooting parameters include: sensor size, actual focal length, and object height; Determining the target shooting distance between the object and the shooting lens based on the shooting parameters includes: Determine the corresponding sensor conversion coefficient based on the sensor size; Based on the sensor conversion coefficient, the actual focal length is converted into an equivalent focal length; The target shooting distance is calculated based on the sensor size, the equivalent focal length, and the object height.

3. The method according to claim 1, characterized in that, The step of guiding the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the camera lens includes: The actual distance between the object and the camera lens is measured in real time using a distance sensor; Calculate the distance difference between the actual distance and the target shooting distance; Based on the distance difference, the user is guided to adjust the position of the shooting lens.

4. The method according to claim 3, characterized in that, The step of guiding the user to adjust the position of the shooting lens based on the distance difference includes: If the actual distance is greater than the target shooting distance, the user is guided to move the shooting lens a corresponding distance closer to the object. If the actual distance is less than the target shooting distance, the user is guided to move the camera lens away from the object by the corresponding distance.

5. The method according to claim 1, characterized in that, The step of guiding the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the camera lens includes: The user is guided to move the camera lens by means of screen display and / or prompt sound, so that the distance between the object and the camera lens is equal to the target shooting distance.

6. The method according to claim 1, characterized in that, Determining the target shooting distance between the object and the shooting lens based on the shooting parameters includes: Based on the preset shooting mode, determine the correspondence between the points on the object and the points in the field of view; Based on the correspondence, the target shooting distance between the object and the shooting lens is calculated.

7. A distance adjustment device, characterized in that, include: The acquisition module is configured to acquire the shooting parameters expected by the user; The determination module is configured to determine the target shooting distance between the object and the shooting lens based on the shooting parameters; The adjustment module is configured to guide the user to adjust the position of the camera lens based on the target shooting distance and the actual distance between the object and the shooting lens.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.

9. An electronic device, characterized in that, Includes the method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 6.

11. A chip, characterized in that, The device includes one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method according to any one of claims 1 to 6.