Picture presentation method and device, electronic device, and storage medium

By recording the mapping relationship between the position of the camera module components and the field of view of the image, the change in the field of view is calculated and adjusted in reverse, thus solving the breathing effect problem caused by the camera module during focusing and improving the user experience.

CN122269130APending Publication Date: 2026-06-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-12-23
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

During image capture, the change in the position of the camera module components causes a change in focal length, resulting in a noticeable breathing effect in the preview interface, which affects the user's shooting experience.

Method used

By recording the mapping relationship between the position of the camera module components and the field of view of the image, the change in field of view is calculated during the focusing process and adjusted in reverse to ensure that the difference in field of view between the target image and the initial image in the preview interface does not exceed the preset range.

Benefits of technology

It effectively reduces or avoids the breathing effect, improving the user's shooting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122269130A_ABST
    Figure CN122269130A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a picture presentation method and device, electronic equipment and storage medium. The method comprises: based on initial image information collected by a camera module, displaying an initial image containing a target object in a preview interface, and recording an initial component position when the camera module collects the initial image information; adjusting the camera module to a target component position to make the target object clear, collecting target image information of the target object, and calculating a target position offset of the target component position compared with the initial component position; determining a target field of view angle change corresponding to the target position offset according to a pre-recorded mapping relationship between position offset and picture field of view angle change; and adjusting the field of view angle of a target image generated based on the target image information in the reverse direction according to the target field of view angle change, and displaying the adjusted target image in the preview interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of terminal technology, and in particular to a screen display method and apparatus, electronic device, and storage medium. Background Technology

[0002] When taking pictures, users need to focus on the subject first in order to obtain a clear image.

[0003] However, during the focusing process, the change in the position of the components in the camera module inevitably causes a change in the focal length of the camera module, which in turn changes the field of view of the captured image. This results in a noticeable breathing effect in the image displayed in the preview interface, affecting the user's shooting experience. Summary of the Invention

[0004] This disclosure provides a method and apparatus for displaying images, an electronic device, and a storage medium that can reduce or even avoid the breathing effect that occurs during image capture.

[0005] According to a first aspect of this disclosure, a method for presenting a screen is provided, comprising:

[0006] Based on the initial image information acquired by the camera module, the initial image containing the target object is displayed in the preview interface, and the initial component position when the camera module acquired the initial image information is recorded.

[0007] Adjust the camera module to the position of the target component that makes the target object clear in image, so as to acquire the target image information of the target object, and calculate the target position offset of the target component position relative to the initial component position;

[0008] Based on the pre-recorded mapping relationship between position offset and change in field of view, determine the change in target field of view corresponding to the target position offset;

[0009] Based on the change in the target field of view, the field of view of the target image generated based on the target image information is adjusted in reverse, and the adjusted target image is displayed in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0010] According to a second aspect of this disclosure, a screen display device is provided, comprising:

[0011] The display unit, based on the initial image information acquired by the camera module, displays the initial image containing the target object in the preview interface, and records the initial component position when the camera module acquired the initial image information;

[0012] The focusing unit adjusts the camera module to the position of the target component so that the target object is clearly imaged, in order to acquire the target image information of the target object and calculate the target position offset of the target component position relative to the initial component position;

[0013] The determining unit determines the target field of view change corresponding to the target position offset based on the pre-recorded mapping relationship between the position offset and the change in the field of view.

[0014] The adjustment unit adjusts the field of view of the target image generated based on the target image information in reverse according to the change in the target field of view, and displays the adjusted target image in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0015] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0016] processor;

[0017] Memory used to store processor-executable instructions;

[0018] The processor implements the method as described in the first aspect by running the executable instructions.

[0019] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first aspect.

[0020] In the technical solution disclosed herein, when an initial image containing the target object is acquired, the initial component position of the camera module when acquiring the corresponding image information can be recorded. After the focusing operation is completed, the target component position that makes the target object clear can be recorded. Based on this, the target position offset relative to the initial component position can be calculated. According to the mapping relationship between the pre-recorded position offset and the field of view of the screen, the target field of view change corresponding to the target position offset is determined. Based on the target field of view change, the field of view of the target image is adjusted in reverse so that the difference in field of view between the target image and the initial image displayed in the preview screen does not exceed a preset range.

[0021] It should be understood that this method is equivalent to pre-recording the mapping relationship between the position of the components in the camera module and the field of view of the image. This allows the change in field of view caused by the focusing operation to be determined based on the position of the components before and after focusing during the focusing process. Then, the field of view can be adjusted in reverse based on the change in field of view to compensate for the change in field of view and weaken or even avoid the breathing effect caused by the change in field of view during the focusing process. Attached Figure Description

[0022] 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.

[0023] Figure 1 This is a flowchart illustrating a screen presentation method according to an exemplary embodiment of the present disclosure;

[0024] Figure 2 This is a flowchart illustrating a mapping relationship generation method according to an exemplary embodiment of this disclosure;

[0025] Figure 3 This is a schematic diagram illustrating a calibration object screen according to an exemplary embodiment of this disclosure;

[0026] Figure 4 This is a schematic diagram illustrating the change of encoder output value over time according to an exemplary embodiment of this disclosure;

[0027] Figure 5 This is a schematic diagram illustrating the change of scaling ratio as the encoded output value changes, as shown in an exemplary embodiment of this disclosure.

[0028] Figure 6 This is a block diagram illustrating a screen display device according to an exemplary embodiment of the present disclosure;

[0029] Figure 7 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent 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.

[0031] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0032] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0033] The "breathing effect" refers to the change in the lens's field of view when the focus distance is adjusted. This phenomenon typically occurs in some zoom lenses or certain prime lenses. For example, during the focusing process of a smartphone, as the focal length changes, the focus shifts from near to far or from far to near. At this time, the field of view in the preview image will expand or shrink accordingly, creating a visual sensation similar to breathing for the user.

[0034] Although focusing breathing does not affect the final image quality, it significantly impacts the user's shooting experience. Overcoming focusing breathing during the autofocus process is a problem that technicians urgently need to solve.

[0035] To address this, this disclosure proposes a method for image presentation to avoid the breathing effect that occurs when related technologies are focusing.

[0036] Figure 1 This embodiment of the present disclosure illustrates a screen presentation method. For example... Figure 1 As shown, the method may include the following steps:

[0037] Step 102: Based on the initial image information acquired by the camera module, display the initial image containing the target object in the preview interface, and record the initial component position when the camera module acquired the initial image information.

[0038] It should be understood that the breathing effect that occurs in devices equipped with camera modules during focusing is due to the fact that the camera module needs to adjust the position of its components during focusing, inevitably causing a change in the focal length. Since the field of view of an image is closely related to the focal length, changes in the focal length usually result in changes in the field of view of the captured image. In other words, changes in the field of view are closely related to the position of the components within the camera module.

[0039] In view of this, the present disclosure can pre-record the mapping relationship between the component's position offset and the change in field of view, and during the focusing process, record the component's position before and after focusing, so as to determine the change in the target field of view before and after focusing based on the component's target position offset and the pre-recorded mapping relationship. Based on this, when displaying the focused image, the present disclosure can reversely adjust the field of view of the generated target image based on the change in target field of view, so that the difference between the field of view of the final target image displayed in the preview interface and the field of view of the initial image displayed before focusing does not exceed a preset range.

[0040] It should be understood that this disclosure is equivalent to deriving the change in field of view caused by focusing based on the pre-recorded mapping relationship and the position offset recorded during focusing, and then adjusting the field of view of the acquired image in reverse according to the change in field of view, thereby reducing the change in field of view in the image before and after focusing, and weakening or even eliminating the breathing effect during focusing.

[0041] In this disclosure, in order to display an image in the preview screen of a camera application, the camera module can acquire initial image information before focusing, so as to display an initial image containing the target object in the preview interface. Specifically, to facilitate subsequent determination of the change in field of view before and after focusing, the initial component position of the camera module when acquiring the initial image information can be recorded.

[0042] Step 104: Adjust the camera module to the position of the target component that makes the target object clear in image, so as to acquire the target image information of the target object and calculate the target position offset of the target component position relative to the initial component position.

[0043] In this disclosure, after the initial image is displayed and the corresponding initial component position is recorded, the camera module can be adjusted to the target component position so that the target object is clearly imaged in order to complete the focusing. During this process, the target component position can be recorded and the target position offset relative to the initial component position can be calculated.

[0044] It is worth noting that any algorithm can be used for focusing during the focusing process. For example, CDAF (Contrast Detection Auto Focus) or PDAF (Phase Detection Auto Focus) algorithm can be used. The specific algorithm used can be determined by those skilled in the art according to actual needs, and this disclosure does not limit it.

[0045] Step 106: Based on the pre-recorded mapping relationship between position offset and change in field of view, determine the change in target field of view corresponding to the target position offset.

[0046] In this disclosure, once the target position offset is calculated, the target field of view change corresponding to the target position offset can be determined based on the pre-recorded mapping relationship between the position offset and the change in the field of view.

[0047] It should be noted that the mapping relationship pre-recorded in this disclosure can be: the change in the field of view of the image as the position of any focal length-related component changes. Correspondingly, the initial component position and target component position of the camera module recorded during focusing can be the position of any focal length-related component in the camera module.

[0048] In one embodiment, since a motor is typically installed in the camera module to drive the lens assembly within the camera module to change position, the aforementioned mapping relationship records the change in the field of view in the preview image as the position of the motor in the camera module changes. Correspondingly, the recorded initial and target component positions refer to the positions of the motor in the camera module before and after focusing. In this case, the focusing operation performed is to drive the motor from the initial component position to the target component position, so that the image captured by the camera module through the lens assembly is clear.

[0049] It should be understood that, since this embodiment records the position of the motor, the change in the target field of view during the process of the motor moving from the initial component position to the target component position can be determined based on the initial component position, the target component position, and the change process recorded in the above mapping relationship.

[0050] In another embodiment, the camera module may not focus by directly driving the entire lens assembly, but rather by using internal focusing. In this case, the motor position and the change in the field of view are not absolutely related. Therefore, considering that internal focusing focuses by changing the position of the movable lens unit included in the lens assembly, the mapping relationship described above can record the change process of the field of view of the preview image as the position of the movable lens unit changes. Correspondingly, the recorded initial component position and target component position refer to the positions of the movable lens unit before and after focusing. In this case, the focusing operation performed can be: adjusting the movable lens unit from the initial component position to the target component position so that the image captured by the camera module through the lens assembly is clear.

[0051] Similar to the previous embodiment, since this embodiment records the position of the movable lens unit, the initial component position and the target component position can be compared with the change process of the field of view angle with the position of the movable lens unit recorded in the above mapping relationship to determine the change in the target field of view angle generated during the process of the movable lens unit moving from the initial component position to the target component position.

[0052] Of course, the above examples are merely illustrative. The mapping relationship records the change process of the field of view angle as the position of which component changes, which can be determined by those skilled in the art according to actual needs. This disclosure does not impose any restrictions on this.

[0053] It should be noted that, since focusing is actually achieved by adjusting the output value of the camera module's encoder to control the corresponding focusing components, regardless of the focusing method, the above mapping relationship can also be recorded as the relationship between the field of view of the preview image and the output value of the camera module's encoder. Based on this, when acquiring initial image information, the initial output value at the time of capturing the initial image can be recorded. After focusing is completed, the target output value of the encoder when acquiring the target image information can be recorded. Correspondingly, the output difference between the target output value and the initial output value can be calculated as the aforementioned target position offset. Of course, this example is illustrative, and the specific form in which the relationship between the component position and the field of view is recorded can be determined by those skilled in the art according to actual needs; this disclosure does not impose any limitations on this.

[0054] Step 108: Based on the change in the target field of view, the field of view of the target image generated based on the target image information is adjusted in reverse, and the adjusted target image is displayed in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0055] In this disclosure, after determining the change in the target field of view, the field of view of the target image acquired based on the target image information can be adjusted in reverse based on the change, so that the difference in field of view between the target image displayed in the preview interface and the initial image in the preview screen does not exceed a preset range.

[0056] In one embodiment, since some devices prioritize cropping the captured image according to the size of the preview screen in the camera application before displaying it, this embodiment can crop the target image generated from the captured target image information based on a determined change in the target field of view, ensuring that the difference in the field of view between the cropped image and the initial image in the preview interface does not exceed a preset range. In other words, in this embodiment, the captured image is further cropped based on the determined change in the field of view, so that the difference in the field of view between the cropped image displayed in the preview interface and the initial image displayed in the preview interface does not exceed a preset range. For example, in most cases, if the determined change in the target field of view indicates that the field of view of the image has increased, the cropping size of the target image can be reduced based on this change, so that after the cropped image is filled into the preview screen, the difference in the field of view between it and the initial image does not exceed a preset range.

[0057] In another embodiment, if the determined change in the target field of view indicates that the field of view decreases after focusing, then the target image generated based on the target image information can be filled with content according to the change in the target field of view and the initial image, so that the difference in the field of view between the filled image and the initial image in the preview interface does not exceed a preset range. In other words, this embodiment fills in the missing part of the image due to the change in the field of view based on the change in the field of view, avoiding excessive changes in the field of view of the image in the preview interface.

[0058] Of course, the above-mentioned reverse adjustment methods are all illustrative. How to specifically adjust the target image in reverse according to the change in the field of view so that the field of view displayed in the preview interface does not exceed the preset range can be determined by those skilled in the art according to actual needs. For example, the field of view can also be corrected by adjusting the degree of distortion of the target image through the distortion function provided by some software so that the difference between the field of view of the corrected target image and the field of view of the initial image does not exceed the preset range. This disclosure does not limit this.

[0059] In this disclosure, the pre-recorded mapping relationship can be obtained based on a pre-captured detection video. For example, at least two reference objects can be placed, and the camera modules can continuously capture images of these at least two objects to obtain the detection video. During the capture of the detection video, the focusing component in the camera module can continuously change its position, causing the focal length of the lens component of the camera module to change from a maximum value to a minimum value or vice versa. After the detection video is captured, the field of view of the image captured by the focusing component at the corresponding position can be determined based on the physical distance between the at least two reference objects in each image frame.

[0060] It should be noted that after capturing the aforementioned detection video, in order to determine the field of view of the image captured by the focusing component at the phase position based on the physical distance of the reference object in each image, it is necessary to first determine the position of the focusing component when capturing each image frame. Then, through the correspondence between the position of the focusing component and the image frame, the correspondence between the position of the focusing component and the field of view determined according to the corresponding image frame can be determined. After determining the size of the field of view of the image when the focusing component is in each position, a curve of the image field of view changing with the position of the focusing component can be plotted as the aforementioned pre-recorded mapping relationship.

[0061] Of course, this example is only illustrative. The specific method for obtaining the above mapping relationship and the form in which the mapping relationship is recorded can be determined by those skilled in the art based on actual needs. For example, it can also be calculated and set by technicians based on the lens parameters of the camera module and the screen parameters of the camera application. The recorded mapping relationship can also be in the form of tables, lists, etc. This disclosure does not limit this.

[0062] It should be emphasized that the implementing entity of the technical solution disclosed herein can be any type of electronic device. For example, the electronic device can be a mobile terminal such as a smartphone or tablet computer, or a fixed terminal such as a smart TV or PC (personal computer). It should be understood that any electronic device with image capturing capabilities can be used as the electronic device in this disclosure. The specific type of electronic device used as the implementing entity of the technical solution disclosed herein can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on this.

[0063] As can be seen from the above technical solution, this disclosure can record the initial component position of the camera module when acquiring the corresponding image information when acquiring the initial image containing the target object. After the focusing operation is completed, the target component position that makes the target object clear can be recorded. Based on this, the target position offset of the target component position relative to the initial component position can be calculated. According to the mapping relationship between the pre-recorded position offset and the field of view of the screen, the target field of view change corresponding to the target position offset is determined. Based on the target field of view change, the field of view of the target image is adjusted in reverse so that the difference between the field of view of the target image and the initial image displayed in the preview screen does not exceed a preset range.

[0064] It should be understood that this method is equivalent to pre-recording the mapping relationship between the position of the components in the camera module and the field of view of the image. This allows the change in field of view caused by the focusing operation to be determined based on the position of the components before and after focusing during the focusing process. Then, the field of view can be adjusted in reverse based on the change in field of view to compensate for the change in field of view and weaken or even avoid the breathing effect caused by the change in field of view during the focusing process.

[0065] For ease of understanding, this technical solution will be described using a smartphone that "adjusts the position of the camera module by a motor to achieve focusing" as an example.

[0066] As mentioned above, the smartphone needs to pre-record the mapping relationship between the "motor position and the field of view of the captured image" so that the change in field of view can be determined based on this mapping relationship during the actual image capture process.

[0067] The following section will first introduce the process of obtaining the mapping relationship.

[0068] Figure 2 This is a flowchart illustrating a mapping relationship generation method as an exemplary embodiment of this disclosure. Figure 2 As shown, the method may include the following steps:

[0069] Step 201: Fix the smartphone position.

[0070] In this embodiment, the mapping relationship between the position of the focusing component and the field of view of the image is recorded through prior testing.

[0071] To eliminate interference from factors such as changes in phone position or orientation during the test, this embodiment prioritizes fixing the phone's position before video recording. For example, it can be fixed using a tripod to ensure that the phone's orientation and position do not change.

[0072] Step 202: Fix the two circular objects within the smartphone's camera range.

[0073] In this embodiment, two calibration objects are also required to calculate the field of view of the image in the captured video. Since the position of a circular object can be determined solely by its center, facilitating calculation and identification, this embodiment can place two circular objects at a certain distance from the smartphone. For example, the placement principle can be "so that the midpoint of the line connecting the two centers is located on the lens axis, and the connecting line is perpendicular to the axis." Of course, this example is merely illustrative, and the specific placement can be determined by those skilled in the art based on actual circumstances; this embodiment does not impose any limitations on this.

[0074] Step 203: Switch your smartphone to manual mode.

[0075] In this embodiment, after securing the phone and placing the object, the phone can be switched to manual mode so that the operator can manually adjust the camera module's focus. At this time, the captured image can be as follows: Figure 3 As shown.

[0076] Step 204: Start video recording and adjust the position of the focus component at fixed intervals during the recording process so that the focal length changes from the maximum value to the minimum value.

[0077] In this embodiment, in manual mode, after the operator activates the video recording function in the camera application, they can adjust the position of the focusing component at fixed intervals to change the focal length from its minimum to its maximum value. When the focusing component is a motor, since the motor's position is controlled by the encoder's output value, the encoder's output value can be changed at fixed intervals to adjust the focal length from its maximum to its minimum.

[0078] For example, if the encoder output value is marked as AF code, after starting video recording, the operator can adjust the manual adjustment controls in the camera application to continuously record video, starting from the maximum value and decreasing by 100 codes each time, until no further adjustment is possible. After each adjustment, a 2-second pause can be made to obtain a stable image. For instance, the encoder output value can be displayed as follows... Figure 4 As shown, the output value starts at 900 code and decreases by 100 code every 2 seconds until the output value is 0.

[0079] Step 205: Calculate the distance between the two centers of the circle in the image corresponding to each encoder output value in the captured video.

[0080] In this embodiment, after the video is captured, it contains images captured based on each encoder output value, and the content of each image captured based on each encoder output value is different. Based on this, the distance between the two centers of circles in the image corresponding to each encoder output value can be calculated.

[0081] Step 206: Determine the field of view of the corresponding image based on the distance between the two centers of the circle in the image corresponding to each encoder output value.

[0082] In this embodiment, after determining the distance between the two centers, the field of view angle corresponding to the encoder output value can be calculated based on the distance.

[0083] Step 207: Plot the curve of the field of view as a function of the position of the focusing component.

[0084] In this embodiment, after determining the field of view size corresponding to each encoder output value, the relationship between the field of view and the encoder output value can be plotted as the above-mentioned mapping relationship.

[0085] Furthermore, in order to perform corresponding cropping operations based on the determined change in field of view, this embodiment can also determine the cropping ratio or scaling ratio corresponding to each field of view based on the image effect, so that the field of view of the cropped image after focusing is not significantly different from that of the image before focusing during subsequent actual shooting. For example, assuming that image A, which is taken based on the output value of 900code, is used as a reference, and the scaling ratio of image A is set to 1, the scaling ratio of the image taken at the output value of 800code can be determined based on the content of "image A taken at the output value of 900code" and "image B taken at the output value of 800code". For example, if the content of the image B cropped at a ratio of 0.9873 is the same as that of image A, then the cropping ratio corresponding to the position of 800code can be set to 0.9873. When the encoder output value is other values, the method for determining the cropping ratio or scaling ratio is similar, and will not be described in detail here.

[0086] It is important to emphasize that in the mapping relationship exemplified above, the recorded scaling ratio or cropping ratio is set relative to the output value of 900code. Therefore, in the actual cropping process, the cropping ratio needs to be converted. For example, assuming the cropping ratio of the output value of 700code is 0.9765, and the encoder output value before focusing is 800code, while the encoder output value after focusing is 700code, then the cropping ratio should be "0.9765 / 0.9873", which is 0.9890.

[0087] It should also be emphasized that, as described above, the field of view is an intermediate parameter between the encoder output value and the cropping ratio. Therefore, the mapping relationship between the encoder output value and the cropping ratio can be directly recorded, so that during actual focusing, the corresponding cropping ratio can be obtained directly from the encoder output value, and then the cropping operation can be performed. For example, the relationship between the encoder output value and the cropping ratio can be shown in Table 1 below.

[0088] AFcode 900 800 700 600 500 400 300 200 100 0 ScaleRation 1.0 0.9873 0.9765 0.9731 0.9577 0.9461 0.9353 0.9253 0.9158 0.9069

[0089] Table 1

[0090] Figure 5 As shown, where, Figure 5 In this context, ScaleRation refers to the scaling ratio or cropping ratio.

[0091] As can be seen from the above technical solution, this embodiment can pre-determine the mapping relationship between the position of the focusing component and the field of view of the image through experiments, and set the corresponding cropping ratio for various changes in the field of view. Based on this, in the actual focusing process, it is only necessary to determine the changes in the focusing component, and the image can be cropped according to the corresponding cropping ratio, thereby reducing the amount of change in the field of view of the image before and after focusing, and avoiding or weakening the breathing effect caused by focusing.

[0092] Figure 6 This is a block diagram illustrating a screen display device according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 6 The device includes a display unit 601, a focusing unit 602, a determining unit 603, and an adjustment unit 604.

[0093] The display unit 601 displays an initial image containing the target object in a preview interface based on the initial image information acquired by the camera module, and records the initial component position when the camera module acquires the initial image information.

[0094] The focusing unit 602 adjusts the camera module to the position of the target component so that the target object is clearly imaged, so as to acquire the target image information of the target object and calculate the target position offset of the target component position relative to the initial component position;

[0095] The determining unit 603 determines the target field of view change corresponding to the target position offset based on the pre-recorded mapping relationship between the position offset and the change in the field of view of the screen.

[0096] The adjustment unit 604 adjusts the field of view of the target image generated based on the target image information in reverse according to the change in the target field of view, and displays the adjusted target image in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0097] Optionally, the mapping relationship records: the change process of the field of view of the preview screen as the position of the motor of the camera module changes; the initial component position and the target component position are the positions of the motor before and after focusing, respectively;

[0098] The focusing unit 602 is further used to drive the motor to move from the initial component position to the target component position so that the image captured by the camera module through the lens component is clear.

[0099] Optionally, the lens assembly of the camera module includes a movable lens unit; the mapping relationship records the change process of the field of view of the preview image as the position of the movable lens unit changes;

[0100] The focusing unit 602 is further used to: adjust the movable lens unit from the initial component position to the target component position so that the image captured by the camera module through the lens component is clear.

[0101] Optionally, the mapping relationship records the relationship between the field of view of the preview screen and the output value of the encoder of the camera module.

[0102] The display unit 601 is further used to: record the initial output value of the encoder when capturing the initial image;

[0103] The focusing unit 602 is further used to: calculate the output difference between the target output value of the encoder and the initial output value when acquiring the target image information.

[0104] Optionally, the adjustment unit 604 is further used for:

[0105] Based on the change in the target field of view, the target image generated from the acquired target image information is cropped so that the difference in the field of view between the cropped image and the initial image in the preview interface does not exceed a preset range.

[0106] Optionally, the adjustment unit 604 is further used for:

[0107] When the change in the target field of view indicates that the field of view decreases after focusing, the target image generated based on the target image information is filled with content according to the change in the target field of view and the initial image, so that the difference in the field of view between the filled image and the initial image in the preview interface does not exceed a preset range.

[0108] Optionally, the mapping relationship is obtained based on pre-captured detection videos;

[0109] The focusing component in the camera module continuously changes position during the capture of the detection video, so that the focal length of the lens component of the camera module changes from the maximum value to the minimum value or from the minimum value to the maximum value.

[0110] The detection video is captured for at least two reference objects, and the physical distance between the at least two reference objects in each image frame is used to determine the field of view of the image acquired by the focusing component when it is in the corresponding position.

[0111] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0112] Accordingly, this disclosure also provides a screen presentation device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the screen presentation method as described in any of the above embodiments, for example, the method may include: displaying an initial image containing a target object in a preview interface based on initial image information acquired by a camera module, and recording the initial component position when the camera module acquires the initial image information; adjusting the camera module to a target component position that makes the target object clearly imaged, so as to acquire target image information of the target object, and calculating a target position offset of the target component position relative to the initial component position; determining a target field of view change corresponding to the target position offset based on a pre-recorded mapping relationship between the position offset and the change in the field of view; adjusting the field of view of the target image generated based on the target image information in reverse according to the target field of view change, and displaying the adjusted target image in the preview interface, so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0113] Accordingly, this disclosure also provides an electronic device, which includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The programs include instructions for implementing the image presentation method as described in any of the above embodiments. For example, the method may include: displaying an initial image containing a target object in a preview interface based on initial image information acquired by a camera module, and recording the initial component position when the camera module acquires the initial image information; adjusting the camera module to a target component position where the target object is clearly imaged, to acquire target image information of the target object, and calculating a target position offset of the target component position relative to the initial component position; determining a target field of view change corresponding to the target position offset based on a pre-recorded mapping relationship between the position offset and the change in the field of view; adjusting the field of view of the target image generated based on the target image information in reverse according to the target field of view change, and displaying the adjusted target image in the preview interface, so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

[0114] Figure 7 This is a block diagram illustrating an apparatus 700 for implementing a screen presentation method according to an exemplary embodiment. For example, apparatus 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0115] Reference Figure 7 The device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.

[0116] Processing component 702 typically controls the overall operation of device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0117] Memory 704 is configured to store various types of data to support the operation of device 700. Examples of this data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0118] Power supply assembly 706 provides power to various components of device 700. Power supply assembly 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700.

[0119] Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0120] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0121] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0122] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of device 700. For example, sensor assembly 714 may detect the on / off state of device 700, the relative positioning of components such as the display and keypad of device 700, changes in the position of device 700 or a component of device 700, the presence or absence of user contact with device 700, the orientation or acceleration / deceleration of device 700, and temperature changes of device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0123] Communication component 716 is configured to facilitate wired or wireless communication between device 700 and other devices. Device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0124] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0125] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of the device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0126] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0127] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0128] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for presenting a screen, characterized in that, include: Based on the initial image information acquired by the camera module, the initial image containing the target object is displayed in the preview interface, and the initial component position when the camera module acquired the initial image information is recorded. Adjust the camera module to the position of the target component that makes the target object clear in image, so as to acquire the target image information of the target object, and calculate the target position offset of the target component position relative to the initial component position; Based on the pre-recorded mapping relationship between position offset and change in field of view, determine the change in target field of view corresponding to the target position offset; Based on the change in the target field of view, the field of view of the target image generated based on the target image information is adjusted in reverse, and the adjusted target image is displayed in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

2. The method according to claim 1, characterized in that, The mapping relationship records the change process of the field of view of the preview screen as the position of the motor of the camera module changes; the initial component position and the target component position are the positions of the motor before and after focusing, respectively; Adjusting the camera module to the target component position so that the target object is clearly imaged includes: driving the motor to move from the initial component position to the target component position so that the image captured by the camera module through the lens component is clearly imaged.

3. The method according to claim 1, characterized in that, The camera module's lens assembly includes a movable lens unit; the mapping relationship records the change process of the field of view of the preview image as the position of the movable lens unit changes; Adjusting the camera module to the target component position so that the target object is clearly imaged includes: adjusting the movable lens unit from the initial component position to the target component position so that the image captured by the camera module through the lens component is clearly imaged.

4. The method according to claim 1, characterized in that, The mapping relationship records the relationship between the field of view of the preview screen and the output value of the encoder of the camera module. The recording of the initial component position when the camera module acquires the initial image information includes: recording the initial output value of the encoder when capturing the initial image; The calculation of the target position offset of the target component position relative to the initial component position includes: calculating the output difference between the target output value of the encoder and the initial output value when acquiring the target image information.

5. The method according to claim 1, characterized in that, The step of adjusting the field of view of the target image generated based on the target image information in reverse according to the change in the target field of view includes: Based on the change in the target field of view, the target image generated from the acquired target image information is cropped so that the difference in the field of view between the cropped image and the initial image in the preview interface does not exceed a preset range.

6. The method according to claim 1, characterized in that, The step of adjusting the field of view of the target image generated based on the target image information in reverse according to the change in the target field of view includes: When the change in the target field of view indicates that the field of view decreases after focusing, the target image generated based on the target image information is filled with content according to the change in the target field of view and the initial image, so that the difference in the field of view between the filled image and the initial image in the preview interface does not exceed a preset range.

7. The method according to claim 1, characterized in that, The mapping relationship is obtained based on pre-captured detection videos; The focusing component in the camera module continuously changes position during the capture of the detection video, so that the focal length of the lens component of the camera module changes from the maximum value to the minimum value or from the minimum value to the maximum value. The detection video is captured for at least two reference objects, and the physical distance between the at least two reference objects in each image frame is used to determine the field of view of the image acquired by the focusing component when it is in the corresponding position.

8. A screen display device, characterized in that, include: The display unit, based on the initial image information acquired by the camera module, displays the initial image containing the target object in the preview interface, and records the initial component position when the camera module acquired the initial image information; The focusing unit adjusts the camera module to the position of the target component so that the target object is clearly imaged, in order to acquire the target image information of the target object and calculate the target position offset of the target component position relative to the initial component position; The determining unit determines the target field of view change corresponding to the target position offset based on the pre-recorded mapping relationship between the position offset and the change in the field of view. The adjustment unit adjusts the field of view of the target image generated based on the target image information in reverse according to the change in the target field of view, and displays the adjusted target image in the preview interface so that the difference in field of view between the target image and the initial image in the preview interface does not exceed a preset range.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-7 by executing the executable instructions.

10. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-7.