| CPC H04N 23/62 (2023.01) [G06F 3/04817 (2013.01); G06F 9/542 (2013.01); G06F 9/545 (2013.01); H04N 23/67 (2023.01); G06F 2209/545 (2013.01); G06F 2209/548 (2013.01)] | 12 Claims |

|
1. A shooting method, applied to an electronic device including a camera, wherein the electronic device comprises a first application and a camera control module, the first application is located at an application layer of a software system of the electronic device, and the camera control module is located at a hardware abstraction layer of the software system; and
the method comprises:
generating, by the first application, a shooting instruction, wherein the shooting instruction comprises a first shooting control instruction;
obtaining, by the camera control module, the first shooting control instruction from the first application through a preset transmission channel, wherein the preset transmission channel is used to connect the camera control module to the first application, and the preset transmission channel comprises a first interface and a second interface, wherein the first interface is located at the hardware abstraction layer of the software system, and is configured to send the first shooting control instruction received from the first application to the camera control module;
the second interface is used by the camera control module to monitor whether the first application generates the first shooting control instruction; and
if the first application generates the first shooting control instruction, the camera control module obtains the first shooting control instruction by using the second interface; and
invoking, by the camera control module, a shooting algorithm corresponding to the first shooting control instruction, and controlling the camera of the electronic device to complete shooting.
|