EP-4742690-A1 - PHOTOGRAPHING METHOD AND ELECTRONIC DEVICE
Abstract
Embodiments of this application provide an image shooting method and an electronic device. The method is applied to the electronic device. The electronic device includes a foldable screen, a front-facing camera, and a rear-facing camera. The foldable screen includes a first screen and a second screen. The front-facing camera and the first screen are on a same side, and the rear-facing camera and the first screen face away from each other. When the electronic device is in a folded state, the second screen and the rear-facing camera are on a same side. The method includes: when the electronic device is in a folded state, displaying a first image shooting preview interface through the first screen, where the first image shooting preview interface includes a first control and a second control, and the second control is used to control switching between the front-facing camera and the rear-facing camera; and in response to the first operation performed on the first control, controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying a second image shooting preview interface through the second screen, where the second image shooting preview interface includes an image obtained by using the rear-facing camera. This method can implement a rear selfie and improve image shooting quality.
Inventors
- YI, JIE
Assignees
- Honor Device Co., Ltd.
Dates
- Publication Date
- 20260513
- Application Date
- 20240813
Claims (20)
- An image shooting method, wherein the method is performed by an electronic device, the electronic device comprises a foldable screen, a front-facing camera, and a rear-facing camera, the foldable screen comprises a first screen and a second screen, the front-facing camera and the first screen are on a same side, the rear-facing camera and the first screen face away from each other, when the electronic device is in an unfolded state, the first screen and the second screen are on a same side, and when the electronic device is in a folded state, the second screen and the rear-facing camera are on a same side, and the method comprises: when the electronic device is in a folded state, the first screen is in a screen-on state, and the second screen is in a screen-off state, displaying a first image shooting preview interface through the first screen, wherein the first image shooting preview interface comprises a first control and a second control, and the second control is used to control switching between the front-facing camera and the rear-facing camera; receiving a first operation performed by a user on the first control; and in response to the first operation, controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying a second image shooting preview interface through the second screen, wherein the second image shooting preview interface comprises an image obtained by using the rear-facing camera.
- The method according to claim 1, wherein displaying the first image shooting preview interface through the first screen comprises: displaying a third image shooting preview interface through the first screen, wherein the third image shooting preview interface comprises the second control; receiving a second operation on the second control performed by the user on the third image shooting preview interface; and in response to the second operation, displaying the first image shooting preview interface through the first screen.
- The method according to claim 2, wherein the third image shooting preview interface further comprises an operation guide indicator, and the second operation is an operation, performed on the second control, of sliding toward the operation guide indicator.
- The method according to claim 3, wherein the operation guide indicator is displayed above the second control, and the second operation is a slide-up operation.
- The method according to any one of claims 2 to 4, wherein the third image shooting preview interface further comprises a camera setting control, and the method further comprises: in response to a third operation performed by the user on the camera setting control, displaying a camera setting interface through the first screen, wherein the camera setting interface comprises a first option, the first option is used to set a layout of the first control and the second control on an image shooting preview interface to a first manner or a second manner, and a current layout is the first manner; and displaying a fourth image shooting preview interface through the first screen in response to an operation of switching the layout to the second manner by using the first option and exiting the camera setting interface by the user, wherein the fourth image shooting preview interface comprises the first control and the second control that are displayed in a tiled manner.
- The method according to claim 5, wherein displaying a fourth image shooting preview interface through the first screen in response to an operation of switching the layout to the second manner by using the first option and exiting the camera setting interface by the user comprises: displaying a first pop-up window in response to a fourth operation performed by the user on the first option, wherein the first pop-up window comprises a second option corresponding to the first manner and a third option corresponding to the second manner, the second option is in a selected state, and the third option is in an unselected state; in response to a fifth operation performed by the user on the third option, displaying the second option in an unselected state, and displaying the third option in a selected state; and in response to closing the first pop-up window and exiting the camera setting interface by the user, displaying the fourth image shooting preview interface through the first screen.
- The method according to claim 1, wherein displaying the first image shooting preview interface through the first screen comprises: in response to starting a camera application in a folded state by the user for the first time, displaying the first image shooting preview interface, wherein the first image shooting preview interface further comprises an image obtained by using the rear-facing camera and first guide information, wherein the first guide information is used to guide the user to take a selfie by using the rear-facing camera.
- The method according to claim 7, wherein the method further comprises: in response to a sixth operation performed by the user on a blank area on the first image shooting preview interface, enabling the first guide information to disappear, and displaying a fifth image shooting preview interface through the first screen, wherein the fifth image shooting preview interface comprises an image obtained by using the rear-facing camera, the second control, second guide information, and a sliding guide animation, and the second guide information and the sliding guide animation are used to guide the user to perform a sliding operation on the second control.
- The method according to claim 8, wherein the method further comprises: in response to a seventh operation performed by the user on the second control on the fifth image shooting preview interface, displaying a sixth image shooting preview interface through the first screen, wherein the sixth image shooting preview interface displays an image obtained by using the front-facing camera, the second control, the second guide information, and the sliding guide animation.
- The method according to claim 1, wherein displaying the first image shooting preview interface through the first screen comprises: in response to an operation of starting a camera application by the user, displaying the first image shooting preview interface, wherein the first control and the second control are displayed on the first image shooting preview interface in a tiled manner.
- The method according to claim 10, wherein the first image shooting preview interface comprises an image obtained by using the rear-facing camera, and the method further comprises: in response to an eighth operation performed by the user on the second control on the first image shooting preview interface, displaying a seventh image shooting preview interface, wherein the seventh image shooting preview interface comprises an image obtained by using the front-facing camera, the first control, the second control, and a third control, and the first control and the second control are displayed on the seventh image shooting preview interface in a tiled manner; and in response to a ninth operation performed by the user on the third control, controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying the second image shooting preview interface through the second screen.
- The method according to claim 11, wherein the method further comprises: if it is detected that ambient light luminance is less than a preset threshold, displaying first guide information on the seventh image shooting preview interface, wherein the first guide information is used to guide the user to take a selfie by using the rear-facing camera.
- The method according to any one of claims 1 to 12, wherein controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying the second image shooting preview interface through the second screen in response to the first operation comprises: in response to the first operation, displaying a first flip guide interface through the first screen, wherein the first flip guide interface is used to guide the user to flip the electronic device; and after the first flip guide interface is displayed for first preset duration, controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying the second image shooting preview interface through the second screen.
- The method according to any one of claims 1 to 13, wherein an image shooting mode in the second image shooting preview interface is the same as an image shooting mode in the first image shooting preview interface.
- The method according to any one of claims 1 to 14, wherein the second image shooting preview interface further comprises third guide information, and the third guide information is used to guide the user to look at the rear-facing camera.
- The method according to any one of claims 1 to 15, wherein the electronic device further comprises a flash, the flash and the rear-facing camera are disposed on a same side, the second image shooting preview interface further comprises a flash switch, and the method further comprises: in response to an operation performed by the user on the flash switch, displaying an eighth image shooting preview interface through the second screen, wherein the eighth image shooting preview interface comprises an image obtained by using the rear-facing camera and a fourth control; and in response to an operation performed by the user on the fourth control, controlling the flash to always remain on, and controlling screen luminance of the second screen to be increased.
- The method according to any one of claims 1 to 16, wherein the second image shooting preview interface comprises a fifth control and a sixth control, and after displaying the second image shooting preview interface through the second screen, the method further comprises: in response to an operation performed by the user on the fifth control or the sixth control, displaying a second flip guide interface through the second screen, wherein the second flip guide interface is used to guide the user to flip the electronic device; and after the second flip guide interface is displayed for second preset duration, controlling the second screen to be turned off, controlling the first screen to be turned on, and displaying a ninth image shooting preview interface through the first screen, wherein the ninth image shooting preview interface comprises an image obtained by using the rear-facing camera and the second control.
- The method according to claim 17, wherein after controlling the second screen to be turned off, controlling the first screen to be turned on, and displaying the ninth image shooting preview interface through the first screen, the method further comprises: if a first function has not been enabled, displaying a second pop-up window through the first screen, wherein the second pop-up window is used for the user to select whether to enable the first function.
- The method according to claim 17 or 18, wherein after controlling the second screen to be turned off, controlling the first screen to be turned on, and displaying the ninth image shooting preview interface through the first screen, the method further comprises: if the layout of the first control and the second control on the image shooting preview interface has not been switched, displaying a third pop-up window through the first screen, wherein the third pop-up window is used for the user to select whether to switch the layout.
- The method according to any one of claims 1 to 19, wherein the method further comprises: when the second image shooting preview interface is displayed on the second screen, in response to unfolding the electronic device to an unfolded state by the user, controlling the first screen to be turned on, and displaying a tenth image shooting preview interface jointly through the first screen and the second screen, wherein the tenth image shooting preview interface comprises an image obtained by using the front-facing camera.
Description
This application claims priority to Chinese Patent Application No. 202311315610.6, filed with the China National Intellectual Property Administration on October 11, 2023 and entitled "IMAGE SHOOTING METHOD AND ELECTRONIC DEVICE", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application relates to the field of electronic technologies, and specifically, to an image shooting method and an electronic device. BACKGROUND With gradually increasing requirements for display quality and portability of mobile phones, foldable screen mobile phones are increasingly popular among users. The foldable screen mobile phone includes a front-facing camera and a rear-facing camera. Usually, when a selfie is taken by using the foldable screen mobile phone, only the front-facing camera can be used for image shooting, resulting in poor image shooting effect. SUMMARY This application provides an image shooting method, an apparatus, an electronic device, a chip, a computer-readable storage medium, and a computer program product. This can improve selfie effect and improve user experience. According to a first aspect, this application provides an image shooting method. The method is performed by an electronic device. The electronic device includes a foldable screen, a front-facing camera, and a rear-facing camera. The foldable screen includes a first screen and a second screen. The front-facing camera and the first screen are on a same side, and the rear-facing camera and the first screen face away from each other. When the electronic device is in an unfolded state, the first screen and the second screen are on a same side, or when the electronic device is in a folded state, the second screen and the rear-facing camera are on a same side. The method includes: when the electronic device is in a folded state, the first screen is in a screen-on state, and the second screen is in a screen-off state, displaying a first image shooting preview interface through the first screen, where the first image shooting preview interface includes a first control and a second control, and the second control is used to control switching between the front-facing camera and the rear-facing camera; receiving a first operation performed by a user on the first control; and in response to the first operation, controlling the first screen to be turned off, controlling the second screen to be turned on, and displaying a second image shooting preview interface through the second screen, where the second image shooting preview interface includes an image obtained by using the rear-facing camera. The electronic device may be an outward foldable screen device, for example, an outward foldable screen mobile phone. The first screen is also referred to as a primary screen, and the second screen is also referred to as a secondary screen. Optionally, the first screen and the first screen may be two parts of one foldable screen. The first control is a rear selfie control, and the second control is a flip camera control. Optionally, a layout (namely, a selfie entry manner) of the first control and the second control may be a tiled manner, or a sliding manner. If the layout of the first control and the second control is a sliding manner, the first image shooting preview interface may be an interface brought up by the user through sliding. If the layout of the first control and the second control may be a tiled manner, the first image shooting preview interface is an interface that can be directly displayed without the user operation. Optionally, the first image shooting preview interface may include an image obtained by using the rear-facing camera or an image obtained by using the front-facing camera. The second image shooting preview interface is an image shooting preview interface in a rear selfie scene. That is, a rear selfie scene may be accessed from a rear non-selfie scene in a folded state, or may be accessed from a front selfie scene in a folded state. Optionally, the first operation may be an operation of tapping the first control on the first image shooting preview interface. According to the image shooting method provided in the first aspect, when the electronic device is in a folded state, the first screen is in a screen-on state, and the second screen is in a screen-off state, the first image shooting preview interface is displayed. The first image shooting preview interface includes the first control. The user may trigger, by performing the first operation on the first control, an entry of a rear selfie function, that is, the first screen of the electronic device is turned off, the second screen is turned on, and the second image shooting preview interface in the rear selfie scene is displayed through the second screen. Because the second screen and the rear-facing camera are on the same side in a folded state, the user may capture, by using the rear-facing camera, a person or an object (that is, take a selfie) on a same sid