Shooting control method and device, equipment and storage medium
By detecting the posture of the phone and the mode of the shooting module, switching to horizontal shooting mode when holding the phone vertically is realized, solving the problem of limited movement during horizontal shooting, and improving the flexibility and comfort of shooting.
Patent Information
- Application Number
- CN202311352540.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-18
AI Technical Summary
In horizontal shooting scenes, it is difficult to perform other actions at the same time when holding the phone, and long-term horizontal shooting is not as comfortable as vertical shooting, which reduces the flexibility of shooting on the phone.
By detecting whether the electronic device is in a vertical state and whether the shooting module is in a vertical shooting mode, when the conditions are met, the shooting module is controlled to switch from a vertical shooting mode to a horizontal shooting mode.
It realizes horizontal shooting when holding the electronic device upright, improving the shooting flexibility of the electronic device and the user's shooting experience.
Smart Images

Figure CN119854629A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to control technology, and in particular to a shooting control method, device, equipment and storage medium. Background Art
[0002] Currently, in a horizontal shooting scenario, if you hold the phone horizontally with both hands, you cannot free up one hand to do other things; if you hold the phone horizontally with one hand, it is inconvenient and uncomfortable compared to holding the phone vertically, especially for long-term continuous recording; this reduces the flexibility of the phone's shooting. Summary of the invention
[0003] The present application hopes to provide a shooting control method, device, equipment and storage medium.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, a shooting control method is provided, which is applied to an electronic device, and the shooting control method includes:
[0006] When receiving a horizontal shooting instruction, detecting whether the electronic device is in a vertical state, and detecting whether a shooting module of the electronic device is in a vertical shooting mode;
[0007] When the electronic device is in the vertical state and the shooting module is in the vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode.
[0008] In a second aspect, a shooting control device is provided, which is applied to an electronic device, and the shooting control device includes:
[0009] A detection unit, configured to detect whether the electronic device is in a vertical state and whether the camera module of the electronic device is in a vertical shooting mode when receiving a horizontal shooting instruction;
[0010] A control unit is used to control the shooting module to switch from the vertical shooting mode to the horizontal shooting mode when the electronic device is in the vertical state and the shooting module is in the vertical shooting mode.
[0011] In a third aspect, an electronic device is provided, comprising: a shooting module and an electrical control rotation module; and also comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the method of the first aspect when running the computer program.
[0012] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.
[0013] The present application provides a shooting control method, apparatus, device and storage medium. When a horizontal shooting instruction is received, if it is detected that the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode, thereby achieving the purpose of horizontal shooting when the electronic device is held vertically, and also improving the flexibility of shooting of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0015] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0016] Figure 1 This is a schematic diagram of a first process flow of a shooting control method in an embodiment of the present application;
[0017] Figure 2 This is a second flow chart of the shooting control method in the embodiment of the present application;
[0018] Figure 3 A schematic diagram of a camera module of an electronic device in an embodiment of the present application;
[0019] Figure 4 Schematic diagram of the third process of the shooting control method in the embodiment of the present application;
[0020] Figure 5 This is a schematic diagram of the composition structure of the shooting control device in an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the composition structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this embodiment and are not intended to limit this application.
[0024] In the following description, references to “some embodiments,” “this embodiment,” “this embodiment,” and examples, etc., describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0025] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the present embodiment described here can be implemented in an order other than that illustrated or described here.
[0026] In this embodiment, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, object A and / or object B may represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0027] The present application embodiment provides a shooting control method. Figure 1 FIG. 1 is a first flow chart of a shooting control method in an embodiment of the present application, which is applied to an electronic device such as Figure 1 As shown, the shooting control method may include:
[0028] Step 101: upon receiving a horizontal shooting instruction, detecting whether the electronic device is in a vertical state, and detecting whether the shooting module of the electronic device is in a vertical shooting mode.
[0029] The horizontal shooting instruction is used to instruct the user to shoot horizontally.
[0030] In a feasible method, by clicking on the camera application (Application, APP), jumping to the shooting page, a horizontal shooting mode switching button is provided on the shooting page, and by clicking on the horizontal shooting mode switching button, the electronic device receives the horizontal shooting instruction.
[0031] In another feasible method, the camera application is awakened by voice and jumps to the shooting page. The shooting page is provided with a horizontal shooting mode switch button. The horizontal shooting mode switch button is awakened by voice so that the electronic device receives the horizontal shooting instruction.
[0032] In some embodiments, detecting whether the electronic device is in a vertical state includes:
[0033] Acquire the posture information of the electronic device collected by a first gyroscope sensor (Gyroscope Sensor, Gsensor) of the electronic device;
[0034] Based on the posture information of the electronic device, it is detected whether the electronic device is in the vertical state.
[0035] In an embodiment of the present application, the first gyroscope sensor is a micro-electro-mechanical system (MEMS) device that can measure the posture information of the electronic device. The posture information of the electronic device may include the rotation angle and angular velocity, thereby inferring whether the electronic device is in a vertical state.
[0036] In some embodiments, the step of detecting whether the camera module of the electronic device is in a vertical shooting mode includes:
[0037] Acquiring posture information of the shooting module collected by a second gyroscope sensor of the electronic device;
[0038] Based on the posture information of the shooting module, it is detected whether the shooting module is in the vertical shooting mode.
[0039] In the embodiment of the present application, the second gyroscope sensor can measure the posture information of the shooting module, and the posture information of the shooting module can include the rotation angle and direction, so as to infer whether the shooting module is in the vertical shooting mode. The vertical shooting mode means that the shooting surface is perpendicular to the ground. The shooting module is a component including a camera and other related sensors for shooting images and videos. The camera includes at least a main camera, a telephoto camera and a wide-angle camera.
[0040] Step 102: When the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, control the shooting module to switch from the vertical shooting mode to the horizontal shooting mode.
[0041] That is to say, when the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode, thereby achieving the purpose of horizontal shooting when the electronic device is held vertically.
[0042] In some embodiments, in the horizontal shooting mode, the field of view angle of the shooting module in the horizontal direction is greater than the field of view angle in the vertical direction;
[0043] In the vertical shooting mode, the field of view angle of the shooting module in the horizontal direction is smaller than the field of view angle in the vertical direction.
[0044] Field of View (FOV) refers to the angle range in which the camera module can receive images in the imaging scene, and is often referred to as the field of view.
[0045] Here, the execution subject of steps 101 to 102 may be a processor of an electronic device. Here, the electronic device is a device with a shooting function. Exemplarily, the electronic device may be a smart phone.
[0046] In an embodiment of the present application, when a horizontal shooting instruction is received, if it is detected that the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode, thereby achieving the purpose of horizontal shooting when the electronic device is held vertically, and also improving the flexibility of shooting the electronic device.
[0047] In order to better reflect the purpose of this application, further examples are given based on the above embodiments of this application. Figure 2 Schematic diagram of the second process of the shooting control method in the embodiment of the present application, which is applied to electronic devices such as Figure 2 As shown, the shooting control method may include:
[0048] Step 201: upon receiving a horizontal shooting instruction, detecting whether the electronic device is in a vertical state, and detecting whether the shooting module of the electronic device is in a vertical shooting mode.
[0049] The horizontal shooting instruction is used to instruct the user to shoot horizontally.
[0050] In a feasible method, by clicking on the camera application, jumping to the shooting page, a horizontal shooting mode switching button is provided on the shooting page, and by clicking on the horizontal shooting mode switching button, the electronic device receives a horizontal shooting instruction.
[0051] In another feasible method, the camera application is awakened by voice and jumps to the shooting page. The shooting page is provided with a horizontal shooting mode switch button. The horizontal shooting mode switch button is awakened by voice so that the electronic device receives the horizontal shooting instruction.
[0052] In some embodiments, detecting whether the electronic device is in a vertical state includes:
[0053] Acquire posture information of the electronic device collected by a first gyroscope sensor of the electronic device;
[0054] Based on the posture information of the electronic device, it is detected whether the electronic device is in the vertical state.
[0055] In the embodiment of the present application, the first gyroscope sensor is a micro-electromechanical system device that can measure the posture information of the electronic device. The posture information of the electronic device may include the rotation angle and angular velocity, thereby inferring whether the electronic device is in a vertical state.
[0056] In some embodiments, the step of detecting whether the camera module of the electronic device is in a vertical shooting mode includes:
[0057] Acquiring posture information of the shooting module collected by a second gyroscope sensor of the electronic device;
[0058] Based on the posture information of the shooting module, it is detected whether the shooting module is in the vertical shooting mode.
[0059] In the embodiment of the present application, the second gyroscope sensor can measure the posture information of the shooting module, and the posture information of the shooting module can include the rotation angle and direction, so as to infer whether the shooting module is in the vertical shooting mode. The vertical shooting mode means that the shooting surface is perpendicular to the ground. The shooting module is a component including a camera and other related sensors for shooting images and videos. The camera includes at least a main camera, a telephoto camera and a wide-angle camera.
[0060] Step 202: When the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, a control instruction is sent to the electrical control rotation module of the electronic device, and the control instruction is used to control the shooting module connected to the electrical control rotation module to rotate ninety degrees, and the shooting module switches from the vertical shooting mode to the horizontal shooting mode.
[0061] In the embodiment of the present application, when the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, a control instruction is sent to the electrical control rotation module, the electrical control rotation module receives the control instruction and responds, and the electrical control rotation module rotates 90 degrees. Since the shooting module is connected to the electrical control rotation module, the shooting module will be driven to rotate 90 degrees during the process of the electrical control rotation module rotating 90 degrees, so that the shooting module switches from the vertical shooting mode to the horizontal shooting mode. The vertical shooting mode means that the shooting surface is perpendicular to the ground, and the horizontal shooting mode means that the shooting surface is parallel to the ground.
[0062] In some embodiments, in the horizontal shooting mode, the field of view angle of the shooting module in the horizontal direction is greater than the field of view angle in the vertical direction;
[0063] In the vertical shooting mode, the field of view angle of the shooting module in the horizontal direction is smaller than the field of view angle in the vertical direction.
[0064] Figure 3 is a schematic diagram of a shooting module of an electronic device in an embodiment of the present application, such as Figure 3As shown, a shooting module 31 is disposed at the upper right corner of the electronic device 30 , the dotted line frame is a schematic diagram of the shooting module before rotation, and the solid line frame is a schematic diagram of the shooting module after rotation of ninety degrees.
[0065] In the embodiment of the present application, the electrically controlled rotating module refers to controlling the mechanical rotating module through an electrical control system to achieve automation and efficiency of the mechanical rotating process. The electrically controlled rotating module may include an electric motor, a hydraulic motor, a cylinder, and the like.
[0066] In an embodiment of the present application, when a horizontal shooting instruction is received, if it is detected that the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, a control instruction is sent to the electrical control rotation module, and the electrical control rotation module is controlled to rotate ninety degrees, thereby driving the shooting module connected thereto to rotate ninety degrees, so that the shooting module switches from the vertical shooting mode to the horizontal shooting mode, thereby achieving the purpose of horizontal shooting when the electronic device is held vertically, that is, without the need for an electronic device stand, easy and long-term horizontal video recording can be achieved.
[0067] Based on the above embodiments of the present application, a shooting control method is also provided. Figure 4 FIG. 1 is a third flow chart of the shooting control method in the embodiment of the present application, which is applied to electronic devices such as Figure 4 As shown, the shooting control method may include:
[0068] Step 401: upon receiving a horizontal shooting instruction, detecting whether the electronic device is in a vertical state, and detecting whether the shooting module of the electronic device is in a vertical shooting mode.
[0069] The horizontal shooting instruction is used to instruct the user to shoot horizontally.
[0070] In a feasible method, by clicking on the camera application, jumping to the shooting page, a horizontal shooting mode switching button is provided on the shooting page, and by clicking on the horizontal shooting mode switching button, the electronic device receives a horizontal shooting instruction.
[0071] In another feasible method, the camera application is awakened by voice and jumps to the shooting page. The shooting page is provided with a horizontal shooting mode switch button. The horizontal shooting mode switch button is awakened by voice so that the electronic device receives the horizontal shooting instruction.
[0072] In some embodiments, detecting whether the electronic device is in a vertical state includes:
[0073] Acquire posture information of the electronic device collected by a first gyroscope sensor of the electronic device;
[0074] Based on the posture information of the electronic device, it is detected whether the electronic device is in the vertical state.
[0075] In the embodiment of the present application, the first gyroscope sensor is a micro-electromechanical system device that can measure the posture information of the electronic device. The posture information of the electronic device may include the rotation angle and angular velocity, thereby inferring whether the electronic device is in a vertical state.
[0076] In some embodiments, the step of detecting whether the camera module of the electronic device is in a vertical shooting mode includes:
[0077] Acquiring posture information of the shooting module collected by a second gyroscope sensor of the electronic device;
[0078] Based on the posture information of the shooting module, it is detected whether the shooting module is in the vertical shooting mode.
[0079] In the embodiment of the present application, the second gyroscope sensor can measure the posture information of the shooting module, and the posture information of the shooting module can include the rotation angle and direction, so as to infer whether the shooting module is in the vertical shooting mode. The vertical shooting mode means that the shooting surface is perpendicular to the ground. The shooting module is a component including a camera and other related sensors for shooting images and videos. The camera includes at least a main camera, a telephoto camera and a wide-angle camera.
[0080] Step 402: When the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, control the shooting module to switch from the vertical shooting mode to the horizontal shooting mode.
[0081] In some embodiments, controlling the shooting module to switch from the vertical shooting mode to the horizontal shooting mode includes:
[0082] A control instruction is sent to the electrical control rotation module of the electronic device, wherein the control instruction is used to control the shooting module connected to the electrical control rotation module to rotate ninety degrees, and the shooting module switches from the vertical shooting mode to the horizontal shooting mode.
[0083] In an embodiment of the present application, when the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, a control instruction is sent to the electrical control rotation module, the electrical control rotation module receives the control instruction and responds, and the electrical control rotation module rotates ninety degrees. Since the shooting module is connected to the electrical control rotation module, the shooting module will be driven to rotate ninety degrees during the process of the electrical control rotation module rotating ninety degrees, so that the shooting module switches from the vertical shooting mode to the horizontal shooting mode.
[0084] Step 403: When the electronic device is in a vertical state and the shooting module is in a horizontal shooting mode, control the shooting module to remain in the horizontal shooting mode.
[0085] It should be noted that when a horizontal shooting command is received, if the electronic device is in a vertical state and the shooting module is in the horizontal shooting mode, it means that the user may have mistakenly triggered the horizontal shooting command. In this case, the shooting module can be controlled to remain in the horizontal shooting mode.
[0086] In some embodiments, in the horizontal shooting mode, the field of view angle of the shooting module in the horizontal direction is greater than the field of view angle in the vertical direction;
[0087] In the vertical shooting mode, the field of view angle of the shooting module in the horizontal direction is smaller than the field of view angle in the vertical direction.
[0088] In some embodiments, controlling the shooting module to remain in the horizontal shooting mode includes:
[0089] No control instruction is sent to the electrical control rotation module, and the shooting module remains in the horizontal shooting mode.
[0090] In an embodiment of the present application, when the electronic device is in a vertical state and the shooting module is in a horizontal shooting mode, the electronic device does not send a control instruction to the electrical control rotation module, so that the electrical control rotation module does not rotate, and the shooting module connected to it does not rotate, and the shooting module remains in the horizontal shooting mode.
[0091] Based on this, the flexibility of electronic device shooting is improved, and the user's shooting experience is also improved.
[0092] In order to implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a shooting control device. Figure 5 Schematic diagram of the composition structure of the shooting control device in the embodiment of the present application. Figure 5 As shown, the shooting control device 50 includes:
[0093] The detection unit 501 is used to detect whether the electronic device is in a vertical state and whether the camera module of the electronic device is in a vertical shooting mode when receiving a horizontal shooting instruction;
[0094] The control unit 502 is used to control the shooting module to switch from the vertical shooting mode to the horizontal shooting mode when the electronic device is in the vertical state and the shooting module is in the vertical shooting mode.
[0095] In an embodiment of the present application, when a horizontal shooting instruction is received, if it is detected that the electronic device is in a vertical state and the shooting module is in a vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode, thereby achieving the purpose of horizontal shooting when the electronic device is held vertically, and also improving the flexibility of shooting the electronic device.
[0096] In some embodiments, the control unit 502 is also used to send a control instruction to the electrical control rotation module of the electronic device, and the control instruction is used to control the shooting module connected to the electrical control rotation module to rotate ninety degrees, and the shooting module switches from the vertical shooting mode to the horizontal shooting mode.
[0097] In some embodiments, the control unit 502 is further configured to control the shooting module to remain in the horizontal shooting mode when the electronic device is in the vertical state and the shooting module is in the horizontal shooting mode.
[0098] In some embodiments, the control unit 502 is further configured to not send a control instruction to the electrical control rotation module, and the shooting module remains in the horizontal shooting mode.
[0099] In some embodiments, the detection unit 501 is further used to obtain the posture information of the electronic device collected by the first gyroscope sensor of the electronic device;
[0100] Based on the posture information of the electronic device, it is detected whether the electronic device is in the vertical state.
[0101] In some embodiments, the detection unit 501 is further used to obtain the posture information of the shooting module collected by the second gyroscope sensor of the electronic device;
[0102] Based on the posture information of the shooting module, it is detected whether the shooting module is in the vertical shooting mode.
[0103] In some embodiments, in the horizontal shooting mode, the field of view angle of the shooting module in the horizontal direction is greater than the field of view angle in the vertical direction;
[0104] In the vertical shooting mode, the field of view angle of the shooting module in the horizontal direction is smaller than the field of view angle in the vertical direction.
[0105] The present application also provides another electronic device, Figure 6 Schematic diagram of the electronic device structure in the embodiment of the present application. Figure 6 As shown, the electronic device 60 includes: a shooting module 604 and an electrical control rotation module 605; and also includes: a processor 601 and a memory 602 configured to store a computer program that can be run on the processor;
[0106] The processor 601 is configured to execute the method steps in the aforementioned embodiment when running a computer program.
[0107] Of course, in practical applications, Figure 6As shown, the components in the electronic device 60 are coupled together via a bus system 603. It is understood that the bus system 603 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 603 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 603.
[0108] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.
[0109] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.
[0110] In an exemplary embodiment, the present application also provides a computer-readable storage medium for storing a computer program.
[0111] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0112] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0113] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0114] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above method embodiments may be completed by hardware related to program instructions, and the above program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the above storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0115] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0116] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0117] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0118] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A shooting control method, applied to an electronic device, characterized in that: The shooting control method comprises: When receiving a horizontal shooting instruction, detecting whether the electronic device is in a vertical state, and detecting whether a shooting module of the electronic device is in a vertical shooting mode; When the electronic device is in the vertical state and the shooting module is in the vertical shooting mode, the shooting module is controlled to switch from the vertical shooting mode to the horizontal shooting mode.
2. The shooting control method according to claim 1, characterized in that: The controlling the shooting module to switch from the vertical shooting mode to the horizontal shooting mode includes: A control instruction is sent to the electrical control rotation module of the electronic device, wherein the control instruction is used to control the shooting module connected to the electrical control rotation module to rotate ninety degrees, and the shooting module switches from the vertical shooting mode to the horizontal shooting mode.
3. The shooting control method according to claim 1 or 2, characterized in that: The shooting control method further includes: When the electronic device is in the vertical state and the shooting module is in the horizontal shooting mode, the shooting module is controlled to remain in the horizontal shooting mode.
4. The shooting control method according to claim 3, characterized in that: The controlling the shooting module to remain in the horizontal shooting mode comprises: No control instruction is sent to the electrical control rotation module, and the shooting module remains in the horizontal shooting mode.
5. The shooting control method according to any one of claims 1, 2 and 4, characterized in that: The detecting whether the electronic device is in a vertical state comprises: Acquire posture information of the electronic device collected by a first gyroscope sensor of the electronic device; Based on the posture information of the electronic device, it is detected whether the electronic device is in the vertical state.
6. The shooting control method according to any one of claims 1, 2 and 4, characterized in that: The detecting whether the shooting module of the electronic device is in the vertical shooting mode includes: Acquiring posture information of the shooting module collected by a second gyroscope sensor of the electronic device; Based on the posture information of the shooting module, it is detected whether the shooting module is in the vertical shooting mode.
7. The shooting control method according to any one of claims 1, 2 and 4, characterized in that: In the horizontal shooting mode, the field of view angle of the shooting module in the horizontal direction is greater than the field of view angle in the vertical direction; In the vertical shooting mode, the field of view angle of the shooting module in the horizontal direction is smaller than the field of view angle in the vertical direction.
8. A shooting control device, applied to electronic equipment, characterized in that: The shooting control device comprises: A detection unit, configured to detect whether the electronic device is in a vertical state and whether the camera module of the electronic device is in a vertical shooting mode when receiving a horizontal shooting instruction; A control unit is used to control the shooting module to switch from the vertical shooting mode to the horizontal shooting mode when the electronic device is in the vertical state and the shooting module is in the vertical shooting mode.
9. An electronic device, characterized in that: The electronic device comprises: a shooting module and an electrical control rotation module; and further comprises: a processor and a memory configured to store a computer program that can be run on the processor. Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 7 when running the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.