Display adjustment method and apparatus, and electronic device and computer storage medium
By acquiring and adjusting images in multiple terminal devices, and rotating correction processing is performed on the image according to preset rules determined by the terminal position, the problem of users needing manual adjustment when previewing images in multiple terminal devices is solved, and more automation and convenience is achieved preview effect.
Patent Information
- Application Number
- PCT/CN2024/109470
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-07
- Filing Date
- 2024-08-02
- Publication Date
- 2025-02-13
AI Technical Summary
When previewing images by multiple terminal devices, users need to actively adjust the screen to meet preview needs, resulting in cumbersome operations for users.
By acquiring the target image acquired by the first terminal and according to the preset image adjustment rules, the target image is adjusted according to the first position of the first terminal and/or the second position of the second terminal, and finally the adjusted The image is displayed to the second terminal for preview.
It reduces the manual adjustment operation of users when previewing images by multiple terminal devices, improves the degree of automation of preview effects, and facilitates users to preview.
Smart Images

Figure CN2024109470_13022025_PF_FP_ABST
Abstract
Description
Display adjustment method, device, electronic device and computer storage medium Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a display adjustment method, device, electronic device, and computer storage medium. Background Art
[0002] With the development of smart terminal hardware technology, the performance of smart terminals is getting better and better. Smart terminals can capture and shoot images in all directions and from multiple angles according to user needs. In addition, smart terminals are composed of at least two terminal devices. When displaying captured images, users are required to actively adjust the captured images on the screen to meet preview requirements.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a display adjustment method, device, electronic device, and computer storage medium, aiming to solve the problem of how to improve the preview effect of multiple terminal devices.
[0005] In one aspect, an embodiment of the present application provides a display adjustment method, comprising:
[0006] Acquire a target image captured by the first terminal;
[0007] Adjusting the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal;
[0008] The adjusted target image is displayed on the second terminal for preview.
[0009] In some embodiments of the present application, the display adjustment method includes:
[0010] Obtaining the first position of the first terminal;
[0011] The second terminal performs rotation correction processing on the target image according to the first posture of the first terminal, and the rotation angle includes: at least one of: 90°, 180° and 270°.
[0012] In some embodiments of the present application, the display adjustment method includes:
[0013] Obtaining a second posture of the second terminal;
[0014] The target image is subjected to rotation correction processing according to the first posture of the first terminal and the second posture of the second terminal, and the rotation angle includes at least one of 90°, 180° and 270°.
[0015] In some embodiments of the present application, the first posture includes at least one of a rotation of 90°, 180°, and 270°.
[0016] In some embodiments of the present application, the second posture of the second terminal includes at least one of a rotation of 90°, 180°, and 270°.
[0017] In some embodiments of the present application, the display adjustment method includes:
[0018] Acquiring a shooting mode of the target image;
[0019] If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the separate shooting mode;
[0020] If the shooting mode is an integrated shooting mode, a rotation correction process is performed on the target image according to a second image adjustment rule corresponding to the integrated shooting mode.
[0021] In some embodiments of the present application, if the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the separate shooting mode includes:
[0022] If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the first posture of the first terminal in the separate shooting mode;
[0023] The rotation angle of the first image adjustment rule includes at least one of 90°, 180° and 270°.
[0024] In some embodiments of the present application, if the shooting mode is an integrated shooting mode, performing rotation correction processing on the target image according to a second image adjustment rule corresponding to the integrated shooting mode includes:
[0025] If the shooting mode is an integrated shooting mode, determining a state of a display screen in the second terminal according to a first posture of the first terminal and a second posture of the second terminal;
[0026] The target image is subjected to rotation correction processing according to a second image adjustment rule corresponding to the state of the display screen in the second terminal.
[0027] In some embodiments of the present application, performing rotation correction processing on the target image according to the second image adjustment rule corresponding to the state of the display screen in the second terminal includes:
[0028] If the display screen in the second terminal is in a flip state, the target image is mirror-corrected according to the second image adjustment rule, wherein the flip state refers to the display screen being rotated beyond a first preset angle; the second image adjustment rule includes horizontal mirroring and vertical mirroring.
[0029] In some embodiments of the present application, displaying the adjusted target image on the second terminal for preview includes:
[0030] A transition animation is obtained, wherein the transition animation is composed of an initial target image, a target image in an intermediate state during adjustment, and the adjusted target image; the transition animation includes: a rotation transition animation and / or a mirror transition animation.
[0031] The transition animation is played on the display screen of the second terminal, and the last frame of the adjusted target image in the transition animation is frozen and displayed on the second terminal for preview.
[0032] In some embodiments of the present application, the first posture represents the tilt angle of the camera module in the first terminal when the target image is captured, and is obtained by processing the first sensor parameter collected by the first sensor in the first terminal;
[0033] The second posture represents a screen flip angle of the display screen in the second terminal when the target image is displayed, and is obtained by processing a second sensing parameter collected by a second sensor in the second terminal;
[0034] The first sensor includes an acceleration sensor and a gyroscope; the second sensor includes an acceleration sensor.
[0035] In some embodiments of the present application, obtaining the target image captured by the first terminal includes:
[0036] Acquire a target image through the first terminal;
[0037] The target image is rotated according to the first posture of the first terminal to obtain the target image in the positive orientation captured by the first terminal.
[0038] In some embodiments of the present application, before displaying the adjusted target image on the second terminal for preview, the method includes:
[0039] According to the second posture of the second terminal, the display interface on the display screen of the second terminal is rotated to obtain a display interface in a forward orientation, so as to display the adjusted target image on the display interface in the forward orientation.
[0040] In some embodiments of the present application, the first terminal and the second terminal are detachably connected;
[0041] The shooting mode for acquiring the target image includes:
[0042] Acquire the position status of the first terminal and the second terminal when the target image is captured;
[0043] If the first terminal and the second terminal are separately provided, determining that the shooting mode of the target image is a separate shooting mode;
[0044] If the first terminal and the second terminal are integrated, the shooting mode of the target image is determined to be an integrated shooting mode.
[0045] In some embodiments of the present application, the shooting mode for acquiring the target image includes:
[0046] Acquiring the power supply status of the first terminal and the second terminal when the target image is captured;
[0047] If the first terminal and the second terminal are in a power-off state, determining that the shooting mode of the target image is a separate shooting mode;
[0048] If the first terminal and the second terminal are in a power supply connection state, it is determined that the shooting mode of the target image is an integrated shooting mode.
[0049] In some embodiments of the present application, the shooting mode for acquiring the target image includes:
[0050] Acquiring a communication status between the first terminal and the second terminal when the target image is captured;
[0051] If the first terminal and the second terminal are connected via wireless communication, determining that the shooting mode of the target image is a separate shooting mode;
[0052] If the first terminal and the second terminal are connected via wired communication, it is determined that the shooting mode of the target image is an integrated shooting mode.
[0053] In a second aspect, an embodiment of the present application provides a display adjustment device, comprising:
[0054] An acquisition module, configured to acquire a target image captured by the first terminal;
[0055] an adjustment module, configured to adjust the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal;
[0056] The display module is configured to display the adjusted target image to the second terminal for preview.
[0057] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device including a first terminal and / or a second terminal;
[0058] The first terminal is a shooting terminal, the second terminal includes a display screen for displaying the adjusted target image, and the electronic device is configured with:
[0059] one or more processors;
[0060] Memory; and
[0061] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps in the above display adjustment method.
[0062] In a fourth aspect, an embodiment of the present application provides a computer storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the above-mentioned display adjustment method.
[0063] In an embodiment of the present application, a display adjustment method is provided. The display adjustment method is applied to an electronic device, and the electronic device includes at least two terminals. The method includes: acquiring a target image captured by a first terminal; adjusting the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal; and displaying the adjusted target image to the second terminal for preview. In the technical solution of the embodiment of the present application, the electronic device is composed of at least two terminal devices. When displaying a captured image, the target image is adjusted according to the preset image adjustment rule determined according to the first posture of the first terminal and / or the second posture of the second terminal; and the adjusted target image is displayed to the second terminal for preview. In a multi-terminal shooting scene, shooting and display are performed separately by two terminals, which reduces the user's manual image adjustment operations and facilitates user preview. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0065] FIG1 is a schematic diagram of a structural scenario of an electronic device to which a display adjustment method according to an embodiment of the present application is applied;
[0066] FIG2 is a schematic diagram of a structural scenario of a display terminal to which the display adjustment method according to an embodiment of the present application is applied;
[0067] FIG3 is a flow chart of an embodiment of a display adjustment method provided in an embodiment of the present application;
[0068] FIG4 is a flow chart of another embodiment of a display adjustment method provided in an embodiment of the present application;
[0069] FIG5 is a flow chart of another embodiment of a display adjustment method provided in an embodiment of the present application;
[0070] FIG6 is a flow chart of an embodiment of display interface adjustment of a display adjustment method provided in an embodiment of the present application;
[0071] FIG7 is a schematic diagram of an application scenario of an embodiment of a display adjustment method provided in an embodiment of the present application;
[0072] FIG8 is a schematic structural diagram of an embodiment of a display adjustment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0074] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0075] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to make and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that one of ordinary skill in the art will recognize that the invention can be practiced without these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
[0076] The display adjustment method of the present application is applied to an electronic device having a first terminal and a second terminal; wherein the first terminal can be a shooting terminal; the second terminal can be a display terminal, and the display terminal can be a smart device such as a mobile phone or a tablet computer having a wired communication interface and a wireless communication interface, or the display terminal can also be a remote control of the shooting terminal.
[0077] For example, referring to FIG. 1 , FIG. 1 is a schematic diagram of a structural scenario of an electronic device to which a display adjustment method according to an embodiment of the present application is applied. The display adjustment method according to an embodiment of the present invention is applied to an electronic device 100, which includes a first terminal 110 and a second terminal 120, wherein the first terminal 110 has at least two in-position states relative to the second terminal 120.
[0078] The electronic device 100 includes one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to execute the steps of the display adjustment method described in any of the following display adjustment method embodiments by the processor.
[0079] In one embodiment, the first terminal 110 may be a photographing terminal having a camera module for capturing images and a sensor for detecting a photographing posture; wherein:
[0080] Sensors include accelerometers and gyroscopes.
[0081] It should be noted that the camera module and sensor in the shooting terminal in the embodiments of this application do not constitute a limitation on the technical solution of this application. The functions and performance of the camera module and sensor can be customized according to different application requirements. For example, due to the compact space of small electronic devices, the camera module is usually required to be smaller and lighter; the camera module of monitoring electronic devices focuses more on long-term stable operation and long-distance monitoring capabilities; and the user demand for high-quality images of sports camera electronic devices usually requires a higher resolution camera module.
[0082] Referring to Figure 2, Figure 2 is a schematic diagram of a structural scenario of a display terminal to which the display adjustment method according to an embodiment of the present application is applied. In the embodiment of the present application, a display terminal 120 having a charging compartment is used as an example. The charging compartment may be provided with a mounting slot 121, within which a USB communication interface 122 is provided for communicating with and powering the photographing terminal 110. The display terminal is also provided with a display screen for displaying images captured by the photographing terminal 110.
[0083] The display terminal 120 can also serve as a controller for the camera terminal 110, sending control signals to the camera terminal 110, such as taking photos or recording videos. Both the camera terminal 110 and the display terminal 120 are equipped with a controller, a USB (Universal Serial Bus) interface 122, and a wireless communication module (not shown).
[0084] The first terminal 110 or the second terminal 120, or the first terminal 110 and the second terminal 120, in the above embodiments do not limit the embodiments of the present invention. In other embodiments, they may also be other devices that have at least two active states and require switching of communication links. As long as they do not affect the overall implementation of the technical solutions in the embodiments of the present invention, they can be regarded as equivalent replacements or derivatives of the technical solutions claimed in the embodiments of the present invention.
[0085] 3 , which is a flow chart of an embodiment of a display adjustment method according to an embodiment of the present application, the display adjustment method includes the following steps 101 to 103 :
[0086] 101. Acquire a target image captured by a first terminal.
[0087] In the embodiment of the present application, the display adjustment method is applied to an electronic device, and the type of the electronic device is not specifically limited. For example, the electronic device can be a shooting terminal, a display terminal, a server or other terminal that is communicatively connected to the shooting terminal and the display terminal.
[0088] The electronic device obtains the target image captured by the camera module in the shooting terminal, as well as the shooting posture associated with the target image. The shooting posture refers to the position and posture of the camera module in the shooting terminal when the target image is captured; the shooting posture is obtained by processing the sensing detection data of the gyroscope sensor in the shooting terminal.
[0089] 102. Adjust the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal;
[0090] The preset image adjustment rules in the electronic device refer to the preset image adjustment rules determined by the electronic device based on the shooting scene of the image, and at least one of the shooting posture of the shooting terminal and the display posture of the display terminal. For example, the preset image adjustment rules include: a first image adjustment rule corresponding to the shooting scene when the shooting terminal and the display terminal are separated; and a second image adjustment rule corresponding to the shooting scene when the shooting terminal and the display terminal are integrated; the first image adjustment rule is determined according to the shooting posture of the shooting terminal and the display posture of the display terminal, and the second image adjustment rule is determined according to the shooting posture of the shooting terminal.
[0091] In the embodiment of the present application, the electronic device adjusts the target image according to the preset image adjustment rules, specifically including: performing an image adjustment operation based only on the shooting posture of the shooting terminal. The image adjustment operation can be performed by the shooting terminal or by the display terminal. In this embodiment, the following are included:
[0092] Implementation method 1: The shooting terminal obtains its own shooting posture, and the shooting posture includes at least one of rotations of 90°, 180° and 270°; the shooting terminal performs rotation correction processing on the target image according to its own shooting posture, and the rotation angle includes: at least one of 90°, 180° and 270°.
[0093] Implementation method 2: The shooting terminal obtains its own shooting posture, which includes at least one of a rotation of 90°, 180° and 270°; the shooting terminal associates the shooting posture with the target image and sends it to the display terminal, and the display terminal performs rotation correction processing on the target image according to the shooting posture, and the rotation angle includes: at least one of 90°, 180° and 270°.
[0094] On the basis of the above embodiment, in the embodiment of the present application, the electronic device adjusts the target image according to the preset image adjustment rules, specifically including the image adjustment operation according to the shooting posture of the shooting terminal and the display posture of the display terminal. The image adjustment operation can be performed by the shooting terminal or the display terminal, that is,
[0095] Implementation method three: The display terminal obtains its own display posture and sends it to the shooting terminal. The display posture of the display terminal may include at least one of the display screen of the display terminal rotated 90°, 180° and 270°; the shooting terminal performs rotation correction processing on the target image according to the shooting posture and the display posture of the display terminal. The rotation angle includes: at least one of 90°, 180° and 270°.
[0096] Implementation method four: The display terminal obtains its own display posture, and the display posture of the display terminal includes at least one of 90°, 180° and 270° rotation of the display screen of the display terminal; the display terminal performs rotation correction processing on the target image according to the acquired shooting posture of the shooting terminal and its own display posture, and the rotation angle includes: at least one of 90°, 180° and 270°.
[0097] In other embodiments, the first posture and the second posture may also be other angles, such as 45 degrees. Through the above implementation, the picture previewed by the second terminal can be made more suitable for viewing, for example, the preview screen is an orthographic image.
[0098] 103. Display the adjusted target image on the second terminal for preview.
[0099] Acquire the adjusted target image and display the target image to the display terminal to facilitate the user to perform preview operations. In the technical solution of the embodiment of the present application, the electronic device is composed of at least two terminal devices. When displaying the captured image, the target image is adjusted according to the preset image adjustment rules determined by the first posture of the first terminal and / or the second posture of the second terminal; the adjusted target image is displayed to the second terminal for preview. In a multi-terminal shooting scene, shooting and display are performed separately through two terminals to facilitate user preview.
[0100] 4 , which is a flow chart of another embodiment of a display adjustment method according to an embodiment of the present application, the display adjustment method includes the following steps 201 to 204 :
[0101] 201. Acquire a target image captured by a first terminal.
[0102] The electronic device obtains the target image captured by the camera module in the shooting terminal, as well as the shooting posture associated with the target image. The shooting posture refers to the position and posture of the camera module in the shooting terminal when the target image is captured; the shooting posture is obtained by processing the sensing detection data of the gyroscope sensor in the shooting terminal.
[0103] The electronic device rotates the captured target image according to the shooting posture to obtain the target image in the positive orientation. In the embodiment of the present application, the captured target image is first rotated according to the shooting posture of the shooting terminal so that the target image is in a reference state. This makes it more convenient to further process the target image and meet the preview requirements of the display terminal.
[0104] 202. Acquire a shooting mode of the target image.
[0105] The shooting mode in the embodiment of the present application determines the basis for adjusting the target image. The shooting mode is used to feedback the relative position relationship between the shooting terminal and the display terminal when the target image is shot. The electronic device can further determine the image adjustment rules of the target image based on the shooting mode of the target image, thereby realizing the adjustment of the target image.
[0106] In one embodiment of the present application, the electronic device determines a shooting mode of a target image based on at least one of a position state, a power supply state, and a communication state of a shooting terminal and a display terminal, specifically including:
[0107] Method one for implementing shooting mode determination: the shooting terminal and the display terminal are detachably connected; the electronic device obtains the position status of the shooting terminal and the display terminal when capturing the target image, wherein the position status between the shooting terminal and the display terminal includes an integrated setting and a separate setting; if the shooting terminal and the display terminal are separately set, the electronic device determines that the shooting mode of the target image is a separate shooting mode; if the shooting terminal and the display terminal are integrated, the electronic device determines that the shooting mode of the target image is an integrated shooting mode.
[0108] A second implementation method for determining the shooting mode: the display terminal is provided with a charging compartment for supplying power to the shooting terminal, the power supply priority of the battery in the display terminal is higher than the power supply priority of the battery in the shooting terminal, and the electronic device obtains the power supply status of the shooting terminal and the display terminal when capturing the target image, wherein the power supply status between the shooting terminal and the display terminal includes a power supply connection state and a power supply disconnection state; if the shooting terminal and the display terminal are in a power supply disconnection state, the electronic device determines that the shooting mode of the target image is a separate shooting mode; if the shooting terminal and the display terminal are in a power supply connection state, the electronic device determines that the shooting mode of the target image is an integrated shooting mode.
[0109] The third implementation method for determining the shooting mode: the shooting terminal and the display terminal are both equipped with an adaptive communication transmission interface or electronic component, and the shooting terminal and the display terminal can transmit the target image through the communication transmission interface or electronic component. The electronic device obtains the communication status of the shooting terminal and the display terminal when the target image is captured, wherein the power supply status between the shooting terminal and the display terminal includes a wired communication status through the communication transmission interface or electronic component and a wireless communication status through a short-distance transmission method such as Bluetooth or a long-distance transmission method such as the network; if the shooting terminal and the display terminal are in a wireless communication state, the electronic device determines that the shooting mode of the target image is a separate shooting mode; if the shooting terminal and the display terminal are in a wired communication state, the electronic device determines that the shooting mode of the target image is an integrated shooting mode.
[0110] Furthermore, in this embodiment, the electronic device can combine the above three implementation methods to determine the shooting mode of the target image. For example, if the shooting terminal and the display terminal are separately set, the battery in the shooting terminal directly powers the shooting process, and the shooting terminal and the display terminal are connected via wireless communication, then the electronic device determines that the shooting mode of the target image is a split shooting mode; if the shooting terminal and the display terminal are integrated, the charging compartment in the display terminal charges or powers the shooting terminal, and the shooting terminal and the display terminal are directly connected via their own communication transmission interfaces or electronic components, then the electronic device determines that the shooting mode of the target image is an integrated shooting mode.
[0111] It should be noted that if the shooting modes of the target image determined by the above three methods are different, the electronic device will analyze the specific situation. For example, the electronic device can set different priorities. The shooting mode of the target image determined by implementation method one in the electronic device has the highest priority, the shooting mode of the target image determined by implementation method two has the second highest priority, and the shooting mode of the target image determined by implementation method three has the lowest priority.
[0112] 203. If the shooting mode is a separate shooting mode, the target image is adjusted according to a first image adjustment rule corresponding to the separate shooting mode, wherein the first image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal.
[0113] The electronic device obtains a first image adjustment rule corresponding to the split shooting mode, wherein the first image adjustment rule refers to an image adjustment rule determined according to the shooting posture of the shooting terminal and / or the display posture of the display terminal, that is,
[0114] In the embodiment of the present application, the shooting posture of the shooting terminal represents the tilt angle of the camera module in the shooting terminal when the target image is captured, and the shooting posture is obtained by processing the sensing parameters collected by the sensor in the shooting terminal; in the embodiment of the present application, the sensor in the shooting terminal includes at least: an acceleration sensor and a gyroscope, the acceleration sensor in the shooting terminal is used to detect the motion information of the shooting terminal, and the gyroscope is used to detect the rotation information of the camera module in the display terminal.
[0115] The display posture represents the screen flip angle of the display screen in the display terminal when the target image is displayed. The display position is obtained by processing the second sensing parameter collected by the second sensor in the display terminal; the second sensor includes: an acceleration sensor, which is arranged on the display screen of the display terminal.
[0116] In the technical solution of the present application, by comparing the acceleration information detected by the acceleration sensor in the shooting terminal with the acceleration information detected by the acceleration sensor in the display terminal, it is possible to determine whether the shooting terminal and the display terminal are in the same motion state. Furthermore, combined with the detection data of the gyroscope in the shooting terminal, it is possible to determine whether the display screen in the display terminal has flipped over.
[0117] For example, if the acceleration information detected by the acceleration sensor in the shooting terminal is different from the acceleration information detected by the acceleration sensor in the display terminal, the electronic device determines that the shooting mode of the target image is the split shooting mode; further, if the detection data of the gyroscope in the shooting terminal and the detection data of the acceleration legend in the display terminal are different, it is determined whether the display screen in the display terminal flips over.
[0118] For another example, if the acceleration information detected by the acceleration sensor in the shooting terminal is the same as the acceleration information detected by the acceleration sensor in the display terminal, and the detection data of the gyroscope and the detection data of the sensor are also the same, the electronic device determines that the shooting mode of the target image is the integrated shooting mode, and the display screen in the display terminal is not flipped; if the acceleration information detected by the acceleration sensor in the shooting terminal is the same as the acceleration information detected by the acceleration sensor in the display terminal, and the detection data of the gyroscope and the detection data of the sensor are different, the electronic device determines that the shooting mode of the target image is the integrated shooting mode, and the display screen in the display terminal is flipped.
[0119] It can be understood that in the embodiment of the present application, the electronic device can determine the shooting posture of the shooting terminal and the display posture of the display terminal through more or fewer sensor detection data, and the description of the sensors in the embodiment of the present application does not constitute a limitation on the display adjustment method.
[0120] After the electronic device obtains the shooting posture of the shooting terminal and the display posture of the display terminal, since there is no direct correlation between the positions of the shooting terminal and the display terminal in the split shooting mode, the electronic device may determine the first image adjustment rule based solely on the shooting posture of the shooting terminal, solely on the display posture of the display terminal, or based on the shooting posture of the shooting terminal and the display posture of the display terminal. Specifically:
[0121] Implementation method 1 for determining image adjustment rules: The electronic device determines that the shooting mode of the target image is a separated shooting mode based on the shooting posture of the shooting terminal and the display posture of the display terminal. The display screen of the display terminal does not have a flip cover. Therefore, the electronic device determines the first image adjustment rule based on the shooting posture of the shooting terminal.
[0122] The second implementation method for determining the image adjustment rule: the electronic device determines that the shooting mode of the target image is a separated shooting mode based on the shooting posture of the shooting terminal and the display posture of the display terminal, and the display screen of the display terminal is flipped. Therefore, the electronic device determines the first image adjustment rule based on the display posture of the display terminal.
[0123] A third implementation method for determining image adjustment rules: the electronic device determines that the shooting mode of the target image is a separated shooting mode based on the shooting posture of the shooting terminal and the display posture of the display terminal, and the display screen rotation angle of the display terminal is 90°. The electronic device first determines the initial rotation adjustment rule of the target image based on the shooting posture of the shooting terminal. Furthermore, the electronic device determines the secondary rotation adjustment rule of the target image based on the display posture of the display terminal. The electronic device associates the initial rotation adjustment rule and the secondary rotation adjustment rule as the first image adjustment rule.
[0124] The electronic device adjusts the target image according to the determined first image adjustment rule to obtain the adjusted target image. For example, the electronic device rotates the target image twice according to the first image adjustment rule determined in the third implementation method of image adjustment rule determination to obtain the adjusted target image.
[0125] For ease of understanding, in the embodiment of the present application, the electronic device adjusts the target image captured in the split shooting mode, specifically including:
[0126] If the shooting mode is a separate shooting mode, the target image is rotationally corrected according to the first image adjustment rule corresponding to the first posture of the first terminal in the separate shooting mode; wherein the rotation angle of the first image adjustment rule includes: at least one of: 90°, 180° and 270°.
[0127] That is, if the shooting mode is a separate shooting mode, the electronic device adjusts the target image according to the first image adjustment rule, specifically including: the electronic device adjusts the target image only according to the shooting posture of the shooting terminal; the electronic device adjusts the target image according to the display posture of the display terminal; or the electronic device adjusts the target image according to the shooting posture of the shooting terminal and the display posture of the display terminal. For example, the electronic device determines that the display screen of the display terminal is rotated based on the display posture of the display terminal in the separate shooting mode, and the electronic device determines the corresponding first image adjustment rule based on the rotation angle of the display screen, and performs rotation correction processing on the target image; wherein the rotation angle of the first image adjustment rule includes: at least one of: 90°, 180° and 270°.
[0128] 204 : Display the adjusted target image on the second terminal for preview.
[0129] The target image adjusted by the electronic device is displayed on the display terminal for preview. It should be noted that in the embodiment of the present application, the adjusted target image is only used for image preview on the display terminal, and the electronic device needs to save the target image in the positive orientation captured by the shooting terminal for later playback.
[0130] In the embodiment of the present application, after the electronic device obtains the target image and the shooting mode of the target image, the electronic device determines that the shooting terminal and the display terminal are set separately when shooting the target image. The electronic device determines the first image adjustment rule corresponding to the separate shooting mode according to the shooting posture of the shooting terminal and the display posture of the display terminal. Furthermore, the electronic device adjusts the target image according to the first image adjustment rule corresponding to the separate shooting mode, and displays the adjusted target image on the display terminal. Manual adjustment by the user is not required, and the user's preview needs are met in different situations of the shooting terminal and the display terminal.
[0131] Referring to Figure 5, Figure 5 is a flow chart of another embodiment of the display adjustment method in the embodiment of the present application. In the previous embodiment of the present application, the electronic device is described with respect to the target image being in the split shooting mode. In the present embodiment, after obtaining the shooting mode of the target image, if it is determined that the shooting mode of the target image is the integrated shooting mode, the embodiment of the present application includes steps 301 to 303:
[0132] 301: If the shooting mode is an integrated shooting mode, determine a state of a display screen in the second terminal according to a first posture of the first terminal and a second posture of the second terminal.
[0133] If the shooting mode is the integrated shooting mode, the electronic device obtains the relative position relationship between the shooting terminal and the display screen of the display terminal based on the shooting posture of the shooting terminal and the display posture of the display terminal, thereby determining the state of the display screen of the display terminal. In the embodiment of the present application, the state of the display screen includes at least two states: the display screen is not flipped open and the display screen is flipped open.
[0134] 302 : Perform rotation correction processing on the target image according to a second image adjustment rule corresponding to the state of the display screen in the second terminal.
[0135] The electronic device determines a second image adjustment rule for the target image based on the state of the display screen in the display terminal, wherein the second image adjustment rule is an image adjustment rule determined according to the flip angle of the display screen in the display terminal. For example, if the flip angle of the display screen in the display terminal is 90°, the electronic device determines that the second image adjustment rule is no processing; if the flip angle of the display screen in the display terminal is 161°, the electronic device determines that the second image adjustment rule is mirror correction processing.
[0136] For ease of understanding, in the embodiment of the present application, the electronic device can set the state of the display screen in the display terminal to two states: a flip state and an open state, wherein the flip state means that the display screen is rotated beyond a first preset angle. For example, the first preset angle can be 90°, 120°, 160° or other degrees. Conversely, the open state means that the display screen is rotated no more than the first preset angle.
[0137] If the display screen in the display terminal is in a flip-up state, the electronic device performs mirror correction processing on the target image according to a second image adjustment rule; wherein the second image adjustment rule includes horizontal mirroring and vertical mirroring.
[0138] 303: Display the adjusted target image on the second terminal for preview.
[0139] The target image adjusted by the electronic device is displayed on the display terminal for preview. It should be noted that in the embodiment of the present application, the adjusted target image is only used for image preview on the display terminal, and the electronic device needs to save the target image in the positive orientation captured by the shooting terminal for later playback.
[0140] In the embodiment of the present application, after the electronic device obtains the target image and the shooting mode of the target image, the electronic device determines that the shooting terminal and the display terminal are set as one when shooting the target image, and the electronic device determines the second image adjustment rule corresponding to the integrated shooting mode according to the shooting posture of the shooting terminal and the display posture of the display terminal. Then, the electronic device adjusts the target image according to the second image adjustment rule corresponding to the integrated shooting mode, and displays the adjusted target image on the display terminal. No manual adjustment by the user is required, and the user's preview needs are met in different situations of the shooting terminal and the display terminal.
[0141] 6 , which is a flow chart illustrating an embodiment of display interface adjustment of a display adjustment method provided in an embodiment of the present application. This embodiment is proposed based on the above-mentioned embodiment of the present application. This embodiment refines the steps of displaying the adjusted target image on the second terminal for preview. The embodiment of the present application includes steps 401 to 402:
[0142] 401. Acquire a transition animation, wherein the transition animation is composed of an initial target image, a target image in an intermediate state during adjustment, and the adjusted target image; the transition animation includes: a rotation transition animation and / or a mirror transition animation.
[0143] The electronic device obtains a target image in an initial positive orientation, a target image in an intermediate state during an adjustment process, and a target image after adjustment; the electronic device arranges the target image in an initial positive orientation, the target image in an intermediate state during an adjustment process, and the target image after adjustment in chronological order to form a transition animation. Since the image adjustment rules include rotation adjustment rules and mirror adjustment rules, the transition animation includes a rotation transition animation and / or a mirror transition animation.
[0144] 402 : Play the transition animation on the display screen of the second terminal, and freeze-frame the last frame of the adjusted target image in the transition animation and display it on the second terminal for preview.
[0145] The electronic device plays a transition animation on the display screen of the display terminal, and freezes and displays the adjusted target image in the last frame of the transition animation to the display terminal for preview, so that the user can understand the process information of the image adjustment.
[0146] This embodiment is proposed based on the above-mentioned embodiments of the present application. This embodiment is a refinement of step 204 or step 303 before displaying the adjusted target image on the second terminal for preview. This embodiment of the present application includes:
[0147] According to the second posture of the second terminal, the display interface on the display screen of the second terminal is rotated to obtain a display interface in a forward orientation, so as to display the adjusted target image on the display interface in the forward orientation.
[0148] Referring to Figure 7, Figure 7 is a schematic diagram illustrating an application scenario of an embodiment of the display adjustment method provided by an embodiment of the present application. Figure 7(a) shows that when the display screen of the display terminal is tilted upward by more than 160°, the display interface (including the GUI) on the display screen of the display terminal is rotated 180° clockwise, and the left and right mirror images become the target image for the selfie preview. Figure 7(b) shows the screen orientation in the untiled state, with the screen preview directly rotated and mirrored.
[0149] In the embodiment of the present application, the electronic device rotates the display interface on the display screen of the display terminal according to the display posture of the display terminal to obtain a display interface in the forward direction, so as to display the adjusted target image on the display interface in the forward direction, making it more convenient for users to preview.
[0150] Refer to FIG. 8 , which is a schematic structural diagram of an embodiment of a display adjustment device provided in an embodiment of the present application.
[0151] An embodiment of the present invention provides a display adjustment method and apparatus, including:
[0152] An acquisition module 501 is configured to acquire a target image captured by a first terminal;
[0153] An adjustment module 502 is configured to adjust the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal;
[0154] The display module 503 is configured to display the adjusted target image to the second terminal for preview.
[0155] In some embodiments of the present application, the display adjustment method and apparatus are further used to:
[0156] Acquire a first posture of the first terminal, where the first posture includes at least one of a rotation of 90°, 180°, and 270°;
[0157] The second terminal performs rotation correction processing on the target image according to the first posture of the first terminal, and the rotation angle includes: at least one of: 90°, 180° and 270°.
[0158] In some embodiments of the present application, the display adjustment method and apparatus are further used to:
[0159] Acquire a second posture of the second terminal, where the second posture of the second terminal includes at least one of a rotation of 90°, 180°, and 270°;
[0160] The target image is subjected to rotation correction processing according to the first posture of the first terminal and the second posture of the second terminal, and the rotation angle includes at least one of 90°, 180° and 270°.
[0161] In some embodiments of the present application, the display adjustment method and apparatus are further used to:
[0162] Acquiring a shooting mode of the target image;
[0163] If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the separate shooting mode;
[0164] If the shooting mode is an integrated shooting mode, rotation correction processing is performed on the target image according to a second image adjustment rule corresponding to the integrated shooting mode.
[0165] In some embodiments of the present application, the display adjustment device is further used to:
[0166] If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the first posture of the first terminal in the separate shooting mode;
[0167] The rotation angle of the first image adjustment rule includes at least one of 90°, 180° and 270°.
[0168] In some embodiments of the present application, the display adjustment device is further used to:
[0169] If the shooting mode is an integrated shooting mode, determining a state of a display screen in the second terminal according to a first posture of the first terminal and a second posture of the second terminal;
[0170] The target image is subjected to rotation correction processing according to a second image adjustment rule corresponding to the state of the display screen in the second terminal.
[0171] In some embodiments of the present application, the display adjustment device is further used to:
[0172] If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the first posture of the first terminal in the separate shooting mode;
[0173] The rotation angle of the first image adjustment rule includes at least one of 90°, 180° and 270°.
[0174] In some embodiments of the present application, the display adjustment device is further used to:
[0175] If the shooting mode is an integrated shooting mode, determining a state of a display screen in the second terminal according to a first posture of the first terminal and a second posture of the second terminal;
[0176] performing rotation correction processing on the target image according to a second image adjustment rule corresponding to the state of the display screen in the second terminal;
[0177] The adjusted target image is displayed on the second terminal for preview.
[0178] In some embodiments of the present application, the display adjustment device executes the second image adjustment rule corresponding to the state of the display screen in the second terminal to perform rotation correction processing on the target image, including:
[0179] If the display screen in the second terminal is in a flip state, the target image is mirror-corrected according to the second image adjustment rule, wherein the flip state refers to that the display screen is rotated beyond a first preset angle, and the second image adjustment rule includes horizontal mirroring and vertical mirroring.
[0180] In some embodiments of the present application, the display adjustment device is further used to:
[0181] A transition animation is obtained, wherein the transition animation is composed of an initial target image, a target image in an intermediate state during adjustment, and the adjusted target image; the transition animation includes: a rotation transition animation and / or a mirror transition animation.
[0182] The transition animation is played on the display screen of the second terminal, and the last frame of the adjusted target image in the transition animation is frozen and displayed on the second terminal for preview.
[0183] In some embodiments of the present application, the display adjustment device is further used to:
[0184] Acquire a first posture of the first terminal and a second posture of the second terminal;
[0185] The first posture represents the tilt angle of the camera module in the first terminal when the target image is captured, and is obtained by processing the first sensor parameter collected by the first sensor in the first terminal;
[0186] The second posture represents a screen flip angle of the display screen in the second terminal when the target image is displayed, and is obtained by processing a second sensing parameter collected by a second sensor in the second terminal;
[0187] The first sensor includes an acceleration sensor and a gyroscope; the second sensor includes an acceleration sensor.
[0188] In some embodiments of the present application, the acquisition module 501 in the display adjustment device is configured to:
[0189] Acquire a target image through the first terminal;
[0190] The target image is rotated according to the first posture of the first terminal to obtain the target image in the positive orientation captured by the first terminal.
[0191] In some embodiments of the present application, before the display adjustment device displays the adjusted target image on the second terminal for preview, the display adjustment device is further configured to:
[0192] According to the second posture of the second terminal, the display interface on the display screen of the second terminal is rotated to obtain a display interface in a forward orientation, so as to display the adjusted target image on the display interface in the forward orientation.
[0193] In some embodiments of the present application, the first terminal and the second terminal are detachably connected;
[0194] The display adjustment device is further used for:
[0195] Acquire the position status of the first terminal and the second terminal when the target image is captured;
[0196] If the first terminal and the second terminal are separately provided, determining that the shooting mode of the target image is a separate shooting mode;
[0197] If the first terminal and the second terminal are integrated, the shooting mode of the target image is determined to be an integrated shooting mode.
[0198] In some embodiments of the present application, the second acquisition module 502 in the display adjustment device is further configured to:
[0199] Acquiring the power supply status of the first terminal and the second terminal when the target image is captured;
[0200] If the first terminal and the second terminal are in a power-off state, determining that the shooting mode of the target image is a separate shooting mode;
[0201] If the first terminal and the second terminal are in a power supply connection state, it is determined that the shooting mode of the target image is an integrated shooting mode.
[0202] In some embodiments of the present application, the second acquisition module 502 in the display adjustment device is further configured to:
[0203] Acquiring a communication status between the first terminal and the second terminal when the target image is captured;
[0204] If the first terminal and the second terminal are connected via wireless communication, determining that the shooting mode of the target image is a separate shooting mode;
[0205] If the first terminal and the second terminal are connected via wired communication, it is determined that the shooting mode of the target image is an integrated shooting mode.
[0206] In the embodiment of the present application, the display adjustment device is provided in the electronic device, and the display adjustment device is used to obtain the target image captured by the first terminal; adjust the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal; and display the adjusted target image to the second terminal for preview. In the technical solution of the embodiment of the present application, the electronic device is composed of at least two terminal devices. When displaying the captured image, the target image is adjusted according to the preset image adjustment rule determined according to the first posture of the first terminal and / or the second posture of the second terminal; and the adjusted target image is displayed to the second terminal for preview. In a multi-terminal shooting scene, shooting and display are performed separately by two terminals, which is convenient for users to preview.
[0207] An embodiment of the present invention provides a computer-readable storage medium, which may include a read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk. A computer program is stored on the computer-readable storage medium, and the computer program is loaded by a processor to execute the steps of any of the display adjustment methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor can execute the aforementioned display adjustment method.
[0208] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above and will not be repeated here.
[0209] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to implement as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments and will not be repeated here.
[0210] The above is a detailed introduction to a display adjustment method provided in an embodiment of the present application. Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A display adjustment method, characterized in that: The display adjustment method comprises: Acquire a target image captured by the first terminal; Adjusting the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal; The adjusted target image is displayed to the second terminal for preview.
2. The display adjustment method according to claim 1, wherein: include: Obtaining the first position of the first terminal; The target image is subjected to rotation correction processing according to the first posture of the first terminal, and the rotation angle includes at least one of 90°, 180° and 270°.
3. The display adjustment method according to claim 2, wherein: include: Obtaining a second posture of the second terminal; The target image is subjected to rotation correction processing according to the first posture of the first terminal and the second posture of the second terminal, and the rotation angle includes at least one of 90°, 180° and 270°.
4. The display adjustment method according to claim 3, wherein: The first posture comprises at least one of a rotation of 90°, 180° and 270°; and / or The second posture of the second terminal includes at least one of a rotation of 90°, 180° and 270°.
5. The display adjustment method according to claim 1, wherein: Also includes: Acquire a shooting mode of the target image; If the shooting mode is a separate shooting mode, performing rotation correction processing on the target image according to a first image adjustment rule corresponding to the separate shooting mode; If the shooting mode is an integrated shooting mode, a rotation correction process is performed on the target image according to a second image adjustment rule corresponding to the integrated shooting mode.
6. The display adjustment method according to claim 5, wherein: The rotation angle of the first image adjustment rule includes at least one of 90°, 180° and 270°.
7. The display adjustment method according to claim 5, wherein: If the shooting mode is an integrated shooting mode, performing rotation correction processing on the target image according to a second image adjustment rule corresponding to the integrated shooting mode includes: If the shooting mode is an integrated shooting mode, determining a state of a display screen in the second terminal according to a first posture of the first terminal and a second posture of the second terminal; The target image is subjected to rotation correction processing according to a second image adjustment rule corresponding to the state of the display screen in the second terminal.
8. The display adjustment method according to claim 7, wherein: The performing rotation correction processing on the target image according to the second image adjustment rule corresponding to the state of the display screen in the second terminal includes: If the display screen in the second terminal is in a flip-cover state, mirror correction processing is performed on the target image according to the second image adjustment rule; The flip state refers to that the display screen is rotated beyond a first preset angle, and the second image adjustment rule includes horizontal mirroring and vertical mirroring.
9. The display adjustment method according to claim 1, wherein: The step of displaying the adjusted target image to the second terminal for previewing includes: Acquire a transition animation, wherein the transition animation is composed of an initial target image, a target image in an intermediate state during adjustment, and an adjusted target image; the transition animation includes: a rotation transition animation and / or a mirror transition animation; The transition animation is played on the display screen of the second terminal, and the last frame of the adjusted target image in the transition animation is frozen and displayed on the second terminal for preview.
10. The display adjustment method according to claim 1, wherein: The method comprises: Acquire a first posture of the first terminal and a second posture of the second terminal; The first posture represents the tilt angle of the camera module in the first terminal when the target image is captured, and is obtained by processing the first sensing parameter collected by the first sensor in the first terminal; The second posture represents a screen flip angle of the display screen in the second terminal when the target image is displayed, and is obtained by processing a second sensing parameter collected by a second sensor in the second terminal; Wherein, the first sensor includes: an acceleration sensor and a gyroscope; the second sensor includes: an acceleration sensor.
11. The display adjustment method according to claim 1, wherein: The acquiring of the target image captured by the first terminal includes: Acquire a target image through a first terminal; The target image is rotated according to the first posture of the first terminal to obtain the target image in the positive orientation captured by the first terminal.
12. The display adjustment method according to any one of claims 1 to 11, characterized in that: Before displaying the adjusted target image to the second terminal for preview, the method includes: According to the second posture of the second terminal, the display interface on the display screen of the second terminal is rotated to obtain a display interface in a forward orientation, so as to display the adjusted target image on the display interface in the forward orientation.
13. The display adjustment method according to claim 5, wherein: The first terminal and the second terminal are detachably connected; the shooting mode for acquiring the target image includes: Acquire the position status of the first terminal and the second terminal when the target image is captured; If the first terminal and the second terminal are separately provided, determining that the shooting mode of the target image is a separate shooting mode; If the first terminal and the second terminal are integrated, the shooting mode of the target image is determined to be an integrated shooting mode.
14. A display adjustment method and device, characterized in that: include: An acquisition module, used to acquire a target image captured by the first terminal; An adjustment module, configured to adjust the target image according to a preset image adjustment rule, wherein the preset image adjustment rule is determined according to the first posture of the first terminal and / or the second posture of the second terminal; The display module is used to display the adjusted target image to the second terminal for preview.
15. An electronic device, characterized in that: The electronic device includes a first terminal and / or a second terminal; The first terminal is a shooting terminal, the second terminal is a display terminal, and includes a display screen for displaying the adjusted target image. The electronic device is configured with: one or more processors; Memory; as well as One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the steps in the display adjustment method according to any one of claims 1 to 13.
16. A computer storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the display adjustment method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Display adjustment method and device, electronic equipment and computer storage medium
CN117241136A
Digital camera
JP2009139606A
Image capturing device, image capturing system, image capturing method, and program device
US20140340559A1
Image adjustment system, image adjustor, and image adjustment method
US20210329223A1
In-vehicle camera device
WO2012060214A1