US-12621558-B2 - Photographing method applied to a photographing apparatus having a scroll screen, electronic device, and non-transitory readable storage medium
Abstract
A photographing method includes receiving a first input performed by a user to the scroll screen; in response to the first input, obtaining a photographing parameter based on an unfolding parameter of the scroll screen, where the unfolding parameter is determined based on the first input; and performing photographing based on the photographing parameter, to obtain a target file, where the target file includes at least one of the following: an image or a video.
Inventors
- Yajie Tan
Assignees
- VIVO MOBILE COMMUNICATION CO., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20240430
- Priority Date
- 20211101
Claims (15)
- 1 . A photographing method, applied to a photographing apparatus having a scroll screen, wherein the method comprises: obtaining a target zoom range based on a current zoom ratio; receiving a first input performed by a user to the scroll screen; in response to the first input, obtaining a photographing parameter based on an unfolding parameter of the scroll screen, wherein the unfolding parameter is determined based on the first input; and performing photographing based on the photographing parameter, to obtain a target file, wherein the target file comprises at least one of following: an image or a video; wherein the obtaining the photographing parameter based on the unfolding parameter of the scroll screen comprises: determining a target zoom ratio based on the unfolding parameter of the scroll screen, wherein the target zoom ratio is a zoom ratio within the target zoom range; and the performing photographing based on the photographing parameter, to obtain the target file comprises: performing photographing based on the target zoom ratio, to obtain the target file.
- 2 . The method according to claim 1 , wherein the unfolding parameter comprises an unfolding ratio or an unfolding length.
- 3 . The method according to claim 1 , wherein before the performing photographing based on the photographing parameter, to obtain the target file, the method further comprises: receiving a second input performed by a user to the scroll screen; and in response to the second input, obtaining a target zoom region; and the performing photographing based on the photographing parameter, to obtain the target file comprises: performing photographing on a photographing object in the target zoom region based on the photographing parameter, to obtain the target file.
- 4 . The method according to claim 1 , wherein before the performing photographing based on the photographing parameter, to obtain the target file, the method further comprises: receiving a third input performed by a user to the scroll screen; and in response to the third input, obtaining a target zoom object; and the performing photographing based on the photographing parameter, to obtain the target file comprises: performing photographing on the target zoom object based on the photographing parameter, to obtain the target file.
- 5 . The method according to claim 1 , wherein before the receiving the first input performed by the user to the scroll screen, the method further comprises: receiving a fourth input performed by a user to a photographing preview interface; and in response to the fourth input, determining a zoom step; and the performing photographing based on the photographing parameter, to obtain the target file comprises: performing photographing based on the photographing parameter and the zoom step, to obtain the target file.
- 6 . An electronic device, comprising: a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: obtaining a target zoom range based on a current zoom ratio; receiving a first input performed by a user to a scroll screen of the electronic device; in response to the first input, obtaining a photographing parameter based on an unfolding parameter of the scroll screen, wherein the unfolding parameter is determined based on the first input; and performing photographing based on the photographing parameter, to obtain a target file, wherein the target file comprises at least one of following: an image or a video; wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: determining a target zoom ratio based on the unfolding parameter of the scroll screen, wherein the target zoom ratio is a zoom ratio within the target zoom range; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing based on the target zoom ratio, to obtain the target file.
- 7 . The electronic device according to claim 6 , wherein the unfolding parameter comprises an unfolding ratio or an unfolding length.
- 8 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a second input performed by a user to the scroll screen; and in response to the second input, obtaining a target zoom region; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing on a photographing object in the target zoom region based on the photographing parameter, to obtain the target file.
- 9 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a third input performed by a user to the scroll screen; and in response to the third input, obtaining a target zoom object; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing on the target zoom object based on the photographing parameter, to obtain the target file.
- 10 . The electronic device according to claim 6 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a fourth input performed by a user to a photographing preview interface; and in response to the fourth input, determining a zoom step; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing based on the photographing parameter and the zoom step, to obtain the target file.
- 11 . A non-transitory readable storage medium, wherein the non-transitory readable storage medium stores a program or instructions, and the program or the instructions, when executed by a processor of an electronic device, cause the electronic device to perform: obtaining a target zoom range based on a current zoom ratio; receiving a first input performed by a user to a scroll screen of the electronic device; in response to the first input, obtaining a photographing parameter based on an unfolding parameter of the scroll screen, wherein the unfolding parameter is determined based on the first input; and performing photographing based on the photographing parameter, to obtain a target file, wherein the target file comprises at least one of following: an image or a video; wherein the program or the instructions, when executed by the processor, cause the electronic device to perform: determining a target zoom ratio based on the unfolding parameter of the scroll screen, wherein the target zoom ratio is a zoom ratio within the target zoom range; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing based on the target zoom ratio, to obtain the target file.
- 12 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a second input performed by a user to the scroll screen; and in response to the second input, obtaining a target zoom region; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing on a photographing object in the target zoom region based on the photographing parameter, to obtain the target file.
- 13 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a third input performed by a user to the scroll screen; and in response to the third input, obtaining a target zoom object; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing on the target zoom object based on the photographing parameter, to obtain the target file.
- 14 . The non-transitory readable storage medium according to claim 11 , wherein the program or the instructions, when executed by the processor, cause the electronic device to further perform: receiving a fourth input performed by a user to a photographing preview interface; and in response to the fourth input, determining a zoom step; and the program or the instructions, when executed by the processor, cause the electronic device to perform: performing photographing based on the photographing parameter and the zoom step, to obtain the target file.
- 15 . The non-transitory readable storage medium according to claim 11 , wherein the unfolding parameter comprises an unfolding ratio or an unfolding length.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a Bypass Continuation application of International Patent Application No. PCT/CN2022/127012, filed Oct. 24, 2022, and claims priority to Chinese Patent Application No. 202111284986.6, filed Nov. 1, 2021, the disclosures of which are hereby incorporated by reference in their entireties. BACKGROUND OF THE INVENTION Field of the Invention This application pertains to the field of photographing technologies, and in particular, to a photographing method, an electronic device, and a non-transitory readable storage medium. Description of Related Art With continuous development of electronic technologies, more applications are installed in a terminal device. However, a camera application in a terminal device has become one of essential applications in human life. SUMMARY OF THE INVENTION According to a first aspect, an embodiment of this application provides a photographing method, applied to a photographing apparatus having a scroll screen. The method includes: receiving a first input performed by a user to the scroll screen; in response to the first input, obtaining a photographing parameter based on an unfolding parameter of the scroll screen, where the unfolding parameter is determined based on the first input; and performing photographing based on the photographing parameter, to obtain a target file, where the target file includes at least one of the following: an image or a video. According to second aspect, an embodiment of this application provides a photographing apparatus. The photographing apparatus includes a scroll screen, and the apparatus further includes: a receiving module, configured to receive a first input performed by a user to the scroll screen; and an execution module, configured to: in response to the first input received by the receiving module, obtain a photographing parameter based on an unfolding parameter of the scroll screen, where the unfolding parameter is determined based on the first input; and perform photographing based on the photographing parameter, to obtain a target file, where the target file includes at least one of the following: an image or a video. According to a third aspect, an embodiment of this application provides an electronic device. The electronic device includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or the instructions are executed by the processor, steps of the method according to the first aspect are implemented. According to a fourth aspect, an embodiment of this application provides a non-transitory readable storage medium. The non-transitory readable storage medium stores a program or instructions, and when the program or the instructions are executed by a processor, the steps of the method according to the first aspect are implemented. According to a fifth aspect, an embodiment of this application provides a chip. The chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or instructions to implement the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic flowchart of a photographing method according to an embodiment of this application; FIG. 2 is a first schematic diagram of an interface applied to a photographing method according to an embodiment of this application; FIG. 3 is a second schematic diagram of an interface applied to a photographing method according to an embodiment of this application; FIG. 4 is a third schematic diagram of an interface applied to a photographing method according to an embodiment of this application; FIG. 5 is a fourth schematic diagram of an interface applied to a photographing method according to an embodiment of this application; FIG. 6 is a fifth schematic diagram of an interface applied to a photographing method according to an embodiment of this application; FIG. 7 is a schematic diagram of a structure of a photographing apparatus according to an embodiment of this application; FIG. 8 is a schematic diagram of a structure of an electronic device according to an embodiment of this application; and FIG. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of this application. DESCRIPTION OF THE INVENTION The following clearly describes technical solutions in embodiments of this application with reference to accompanying drawings in embodiments of this application. Apparently, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by a person of ordinary skill in the art based on embodiments of this application shall fall within the protection scope of this application. The terms “first”, “second”, and the like in this specification and claims of this application are used to distinguish between similar objects instead of d