Photographing method, device and storage medium
Patent Information
- Application Number
- CN202111627455.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2041-12-28
AI Technical Summary
[0003]目前,现有的电子设备系统架构下,上述具有设定功能的摄像头,只有电子设备自带的相机应用可以访问,第三方应用无法访问或使用
[0047]本公开的实施例提供的技术方案可以包括以下有益效果:响应于对第三方应用的拍摄界面的拍摄操作,通过第三方应用可向操作系统的硬件抽象层发送对功能摄像头采集的初始图像数据进行处理的处理请求,进而硬件抽象层根据数据处理请求,对初始图像数据进行处理,得到目标图像数据,并向第三方应用发送目标图像数据,实现第三方应用调用功能摄像头进行拍摄,提升通过第三方应用拍摄的丰富性。
Smart Images

Figure CN116419057B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment technology, and in particular to a shooting method, apparatus and storage medium. Background Technology
[0002] With the development of electronic device technology, the image processing technology of electronic devices has become very mature. Most electronic devices integrate multiple cameras to meet the shooting needs of different focal lengths. For example, the cameras commonly found in electronic devices today include ultra-wide-angle cameras, telephoto cameras, and other cameras with setting functions.
[0003] Currently, under the existing electronic device system architecture, the aforementioned cameras with setting functions can only be accessed by the camera application built into the electronic device; third-party applications cannot access or use them. Summary of the Invention
[0004] To overcome the problems existing in the related technologies, this disclosure provides a shooting method, apparatus and storage medium.
[0005] According to a first aspect of the present disclosure, a shooting method is provided, applied to an electronic device, the electronic device including an operating system, the electronic device having a functional camera with set functions, and the application layer of the electronic device having a third-party application configured, the method comprising:
[0006] In response to a shooting operation on the shooting interface of a third-party application, the third-party application sends a data processing request to the hardware abstraction layer of the operating system. The data processing request is a request to process the initial image data captured by the functional camera.
[0007] The framework layer sends the data processing request to the hardware abstraction layer of the operating system;
[0008] The hardware abstraction layer processes the initial image data according to the data processing request to obtain the target image data, and then sends the target image data to the third-party application.
[0009] Optionally, the method further includes:
[0010] In response to the first operation on the third-party application, a request to use the functional camera is sent to the framework layer of the operating system;
[0011] The framework layer grants the third-party application access to the camera based on the usage request.
[0012] Optionally, before sending the request to use the functional camera to the framework layer of the operating system, the method further includes:
[0013] It is confirmed that the third-party application has permission to use the camera with the specified function.
[0014] Optionally, the application layer of the operating system is provided with a camera software development kit (SDK), the third-party application integrates the SDK, and the framework layer is provided with a camera permission module;
[0015] The step of determining that the third-party application has permission to use the camera includes:
[0016] The SDK sends a camera permission query request to the camera permission module.
[0017] The camera permission module determines, based on the query request, that the third-party application has the capability to use the camera with the specified function, and returns a permission confirmation message to the third-party application.
[0018] Optionally, when the functional cameras include multiple cameras, granting the third-party application access to the functional cameras further includes:
[0019] Grant third-party applications access to the multi-camera simultaneous activation function for multiple cameras, wherein the multi-camera simultaneous activation function can simultaneously acquire and display images captured by each selected camera;
[0020] The data processing request includes:
[0021] A request to process first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, wherein the first functional camera and the second functional camera are functional cameras selected from a plurality of said functional cameras;
[0022] The hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data, and sends the target image data to the third-party application, including:
[0023] The hardware abstraction layer processes the first initial image data according to the data processing request to obtain the first target image data, and processes the second initial image data to obtain the second target image data.
[0024] The first target image data and the second target data are sent to the third-party application.
[0025] Optionally, the functional camera includes at least one of an ultra-wide-angle camera, a telephoto camera, an ultra-telephoto camera, and a macro camera.
[0026] According to a second aspect of the present disclosure, a shooting device is provided, applied to an electronic device, the electronic device including an operating system, the electronic device having a functional camera with set functions, and the application layer of the electronic device having a third-party application configured thereon, the device comprising:
[0027] The sending module is used to respond to the shooting operation of the shooting interface of the third-party application, control the third-party application to send a data processing request to the hardware abstraction layer of the operating system, the data processing request being a request to process the initial image data captured by the functional camera, and to control the framework layer to send the data processing request to the hardware abstraction layer of the operating system.
[0028] The processing module is used to control the hardware abstraction layer to process the initial image data according to the data processing request, obtain the target image data, and send the target image data to the third-party application.
[0029] Optionally, the device further includes:
[0030] The determination module is used to send a request to the framework layer of the operating system to use the functional camera in response to a first operation on the third-party application.
[0031] An open module is used to control the framework layer to grant third-party applications access to the camera functionality based on the usage request.
[0032] Optionally, the determining module is further configured to:
[0033] Before sending a request to use the camera to the framework layer of the operating system, it is determined that the third-party application has the permission to use the camera.
[0034] Optionally, the application layer of the operating system is provided with a camera software development kit (SDK), the third-party application integrates the SDK, and the framework layer is provided with a camera permission module;
[0035] The determining module determines whether the third-party application has permission to use the camera with the specified function using the following method:
[0036] The SDK sends a camera permission query request to the camera permission module.
[0037] The camera permission module determines, based on the query request, that the third-party application has the capability to use the camera with the specified function, and returns a permission confirmation message to the third-party application.
[0038] Optionally, when the functional cameras include multiple cameras, the open module controlling the framework layer to grant the third-party application access to the functional cameras further includes:
[0039] Grant third-party applications access to the multi-camera simultaneous activation function for multiple cameras, wherein the multi-camera simultaneous activation function can simultaneously acquire and display images captured by each selected camera;
[0040] The data processing request includes:
[0041] A request to process first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, wherein the first functional camera and the second functional camera are functional cameras selected from a plurality of said functional cameras;
[0042] The hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data, and sends the target image data to the third-party application, including:
[0043] The hardware abstraction layer processes the first initial image data according to the data processing request to obtain the first target image data, and processes the second initial image data to obtain the second target image data.
[0044] The first target image data and the second target data are sent to the third-party application.
[0045] Optionally, the functional camera includes at least one of an ultra-wide-angle camera, a telephoto camera, an ultra-telephoto camera, and a macro camera.
[0046] According to three aspects of the present disclosure, a computer-readable storage medium is provided, having stored thereon computer program instructions that, when executed by a processor, implement the steps of the shooting method provided in the first aspect of the present disclosure.
[0047] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: In response to the shooting operation of the shooting interface of a third-party application, the third-party application can send a processing request to the hardware abstraction layer of the operating system to process the initial image data collected by the functional camera. Then, the hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data and sends the target image data to the third-party application, thereby enabling the third-party application to call the functional camera to shoot and improving the richness of shooting through the third-party application.
[0048] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0049] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0050] Figure 1 This is a flowchart illustrating a shooting method according to an exemplary embodiment.
[0051] Figure 2 This is a flowchart illustrating a shooting method according to an exemplary embodiment.
[0052] Figure 3 This is a schematic diagram illustrating an operating system software architecture according to an exemplary embodiment.
[0053] Figure 4 This is a schematic flowchart illustrating the application of the shooting method disclosed herein according to an exemplary embodiment.
[0054] Figure 5 This is an example diagram illustrating a shooting method according to an exemplary embodiment.
[0055] Figure 6 This is an example diagram illustrating a shooting method according to an exemplary embodiment.
[0056] Figure 7 This is a block diagram illustrating a shooting device according to an exemplary embodiment.
[0057] Figure 8 This is a block diagram illustrating an apparatus according to an exemplary embodiment. Detailed Implementation
[0058] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0059] Figure 1 This is a flowchart illustrating a shooting method according to an exemplary embodiment, such as... Figure 1 As shown, the shooting method is used in electronic devices and includes the following steps.
[0060] In step S11, in response to the shooting operation of the third-party application's shooting interface, the third-party application sends a data processing request to the framework layer of the operating system. The data processing request is a request to process the initial image data captured by the functional camera.
[0061] The electronic device may include an operating system, a functional camera with defined features, and third-party applications configured in its application layer. The operating system may be, for example, Android, iOS, or Linux. The third-party applications may be, for example, third-party camera apps such as Meitu Xiu Xiu, BeautyCam, or Camera FV5, or any application capable of accessing camera functions.
[0062] For example, a functional camera may include at least one of an ultra-wide-angle camera, a telephoto camera, a super telephoto camera, and a macro camera.
[0063] In step S12, the framework layer sends a data processing request to the hardware abstraction layer of the operating system.
[0064] In step S13, the hardware abstraction layer processes the initial image data according to the data processing request to obtain the target image data and sends the target image data to the third-party application.
[0065] In an exemplary embodiment of this disclosure, in response to a shooting operation on the shooting interface of a third-party application, the third-party application can send a processing request to the hardware abstraction layer of the operating system to process the initial image data captured by the functional camera. Then, the hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data and sends the target image data to the third-party application, thereby enabling the third-party application to call the functional camera to take pictures and improving the richness of the pictures taken by the third-party application.
[0066] Figure 2 This is a flowchart illustrating a shooting method according to an exemplary embodiment, such as... Figure 2 As shown, the shooting method is used in electronic devices and includes the following steps.
[0067] In step S21, in response to the first operation on the third-party application, it is determined that the third-party application has permission to use the functional camera.
[0068] When the third-party application is a third-party camera application, the first operation could be, for example, opening the third-party application to run its functions. Alternatively, when the third-party application is an application capable of accessing camera functions, the first operation could be either invoking the shooting function through the third-party application or allowing the third-party application to enter the shooting interface.
[0069] In one implementation, in response to a first operation on a third-party application, a request to use the functional camera can be sent to the operating system's framework layer. Based on the request, the framework layer grants the third-party application access to the functional camera, thus enabling the third-party application to use the camera. Users can then use the camera to take photos, enhancing the richness of images captured by the third-party application.
[0070] The operating system's application layer includes a camera software development kit (SDK), third-party applications integrate the SDK, and the framework layer includes a camera permission module.
[0071] For example, the following methods can be used to determine whether a third-party application has permission to use the camera:
[0072] Send a camera permission query request to the camera permission module via the SDK;
[0073] Based on the query request, the camera permission module determines whether the third-party application has permission to use the functional camera and returns a permission confirmation message to the third-party application.
[0074] In step S22, a request to use the functional camera is sent to the framework layer of the operating system.
[0075] In step S23, the framework layer grants third-party applications access to the camera functionality based on the usage request.
[0076] In step S24, in response to the shooting operation of the third-party application's shooting interface, the third-party application sends a data processing request to the framework layer of the operating system. The data processing request is a request to process the initial image data captured by the functional camera.
[0077] In step S25, the hardware abstraction layer processes the initial image data according to the data processing request to obtain the target image data and sends the target image data to the third-party application.
[0078] In cases where there are multiple functional cameras, granting third-party applications access to these functional cameras also includes granting third-party applications access to the multi-camera simultaneous operation function for multiple functional cameras.
[0079] Among them, the multi-camera simultaneous activation function can simultaneously acquire and display images captured by each selected camera.
[0080] The data processing request may include a request to process selected initial image data, including first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, wherein the first and second functional cameras are selected by the user from a plurality of functional cameras.
[0081] When a data processing request includes a request to process first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, the hardware abstraction layer processes the first initial image data to obtain first target image data and processes the second initial image data to obtain second target image data, and sends the first target image data and the second target image data to a third-party application.
[0082] In an exemplary embodiment of this disclosure, in response to a shooting operation on the shooting interface of a third-party application, the third-party application determines that it has permission to use the functional camera. After sending a request to the framework layer of the operating system to use the functional camera, the framework layer can also open the multi-camera simultaneous shooting function for the functional camera to the third-party application according to the usage request. Based on this function, the third-party application can realize the shooting of multiple cameras simultaneously, thereby improving the richness and intelligence of the operation of the third-party application.
[0083] The following explanation uses the Android operating system of the electronic device as an example to illustrate the shooting method of this disclosure.
[0084] Figure 3 This is a schematic diagram illustrating an operating system software architecture according to an exemplary embodiment.
[0085] See Figure 3 An operating system's native architecture can include an application layer, framework layer, hardware abstraction layer, kernel layer, and hardware layer. The application layer contains numerous third-party applications and native applications for electronic devices. The framework layer includes various native application interfaces, such as camera application interfaces, application services (e.g., camera application services), and framework layer interfaces. The hardware abstraction layer includes hardware abstraction layer interfaces (e.g., HAL3.0), and the kernel layer includes various drivers (e.g., screen display drivers, audio drivers, etc.). The hardware layer includes the various hardware components of electronic devices (e.g., cameras with various functions).
[0086] This disclosure, based on the native system architecture, includes a camera software development kit (SDK) at the application layer, which is integrated into third-party applications. The operating system framework layer includes a camera permission module and a camera access module.
[0087] In response to a shooting operation on the camera interface of a third-party application, the SDK sends a camera permission query request to the camera permission module. Based on the query request, the camera permission module determines that the third-party application has the right to use the camera and returns a permission confirmation message to the third-party application. This permission confirmation message may include, for example, the identification data of the camera, so that the third-party application can send a request to the framework layer of the operating system to use the camera.
[0088] When there are multiple functional cameras, the camera permission module can also return a confirmation message to the third-party application to enable the multi-camera simultaneous operation function for multiple functional cameras.
[0089] The operating system's framework layer also includes a camera access module, which receives usage requests from third-party applications and grants those applications access to the camera based on those requests.
[0090] Figure 4 This is a schematic flowchart illustrating the application of the shooting method disclosed herein according to an exemplary embodiment.
[0091] See Figure 4 In response to a first operation on the third-party application, the third-party application sends a request to the operating system's framework layer to use the functional camera. The operating system's framework layer verifies the third-party application's permissions based on the query request. After confirming that the third-party application passes the verification, it sends permission confirmation information to the third-party application. Once it is determined that the third-party application has the permission to use the functional camera, the framework layer grants the third-party application permission to use the functional camera based on the usage request. Subsequently, in response to a shooting operation on the third-party application's shooting interface, the third-party application sends a data processing request to the operating system's framework layer. The framework layer sends the data processing request to the operating system's hardware abstraction layer. The hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data and sends the target image data to the third-party application.
[0092] Figure 5 and Figure 6 This is an example diagram illustrating a shooting method according to an exemplary embodiment.
[0093] exist Figure 5 The image shows how, after the operating system opens up camera functionality to third-party applications, these applications display buttons for multiple camera functions on their user interface, such as Camera 1, Camera 2, and Camera 3. Users can then select Camera 1, Camera 2, or Camera 3 to capture images according to their shooting needs within the third-party application's interface.
[0094] exist Figure 6 The image shows a preview interface displayed on the third-party application's user interface, which allows simultaneous previewing of two functional cameras after the operating system opens up the multi-camera simultaneous operation function for functional cameras.
[0095] Figure 7 This is a block diagram 700 illustrating a photographing device according to an exemplary embodiment. (Refer to...) Figure 7 A shooting device, applied to an electronic device, the electronic device including an operating system, the electronic device having a functional camera with set functions, and the application layer of the electronic device having third-party applications configured, the device comprising:
[0096] The sending module 701 is used to respond to the shooting operation of the shooting interface of the third-party application, control the third-party application to send a data processing request to the hardware abstraction layer of the operating system, the data processing request being a request to process the initial image data captured by the functional camera, and to control the frame layer to send the data processing request to the hardware abstraction layer of the operating system.
[0097] The processing module 702 is used to control the hardware abstraction layer to process the initial image data according to the data processing request, obtain the target image data, and send the target image data to the third-party application.
[0098] Optionally, the device further includes:
[0099] The determination module 703 is configured to send a request to the framework layer of the operating system to use the functional camera in response to the first operation on the third-party application.
[0100] Open module 704 is used to control the framework layer to grant the third-party application access to the functional camera according to the usage request.
[0101] Optionally, the determining module 703 is further configured to:
[0102] Before sending a request to use the camera to the framework layer of the operating system, it is determined that the third-party application has the permission to use the camera.
[0103] Optionally, the application layer of the operating system is provided with a camera software development kit (SDK), the third-party application integrates the SDK, and the framework layer is provided with a camera permission module;
[0104] The determining module 703 is used to control a third-party application to determine whether the camera with the function can be used in the following manner:
[0105] The SDK sends a camera permission query request to the camera permission module.
[0106] The camera permission module determines, based on the query request, that the third-party application has the capability to use the camera with the specified function, and returns a permission confirmation message to the third-party application.
[0107] Optionally, the frame layer is provided with a camera access module;
[0108] The determining module 703 controls the third-party application to send the usage request to the camera opening module 602;
[0109] The open module 704 is used to control the camera open module to grant the third-party application the usage permission according to the usage request.
[0110] Optionally, when the functional cameras include multiple cameras, the open module 704 controlling the frame layer to grant the third-party application access to the functional cameras further includes:
[0111] Grant third-party applications access to the multi-camera simultaneous activation function for multiple cameras, wherein the multi-camera simultaneous activation function can simultaneously acquire and display images captured by each selected camera;
[0112] The data processing request includes:
[0113] A request to process first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, wherein the first functional camera and the second functional camera are functional cameras selected from a plurality of said functional cameras;
[0114] The hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data, and sends the target image data to the third-party application, including:
[0115] The hardware abstraction layer processes the first initial image data according to the data processing request to obtain the first target image data, and processes the second initial image data to obtain the second target image data.
[0116] The first target image data and the second target data are sent to the third-party application.
[0117] Optionally, the functional camera includes at least one of an ultra-wide-angle camera, a telephoto camera, an ultra-telephoto camera, and a macro camera.
[0118] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0119] This disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the imaging method provided in this disclosure.
[0120] Figure 8 This is a block diagram illustrating a device 800 for taking pictures, according to an exemplary embodiment. For example, device 800 may be a mobile phone, computer, digital broadcast electronic device, messaging transceiver, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0121] Reference Figure 8 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0122] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the aforementioned shooting method. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0123] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0124] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 800.
[0125] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0126] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0127] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0128] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0129] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0130] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described imaging method.
[0131] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by the processor 820 of the device 800 to complete the above-described imaging method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0132] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device, the computer program having a code portion for performing the above-described shooting method when executed by the programmable device.
[0133] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0134] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A shooting method, characterized in that, Applied to an electronic device, the electronic device including an operating system, the electronic device having a functional camera with set functions, and the application layer of the electronic device having third-party applications configured, the method includes: In response to a shooting operation on the shooting interface of a third-party application, the third-party application sends a data processing request to the framework layer of the operating system. The data processing request is a request to process the initial image data captured by the functional camera. The framework layer sends the data processing request to the hardware abstraction layer of the operating system; The hardware abstraction layer processes the initial image data according to the data processing request to obtain the target image data, and sends the target image data to the third-party application. The operating system's application layer includes a camera software development kit (SDK), which is integrated into the third-party application. The framework layer includes a camera permission module. The method further includes sending a camera permission query request to the camera permission module via the SDK. The camera permission module determines, based on the query request, that the third-party application has permission to use the camera with the specified function and returns a permission confirmation message to the third-party application.
2. The method according to claim 1, characterized in that, The method further includes: In response to the first operation on the third-party application, a request to use the functional camera is sent to the framework layer of the operating system; The framework layer grants the third-party application access to the camera based on the usage request.
3. The method according to claim 2, characterized in that, When the functional cameras include multiple cameras, granting the third-party application access to the functional cameras further includes: Grant third-party applications access to the multi-camera simultaneous activation function for multiple cameras, wherein the multi-camera simultaneous activation function can simultaneously acquire and display images captured by each selected camera; The data processing request includes: A request to process first initial image data acquired by a first functional camera and second initial image data acquired by a second functional camera, wherein the first functional camera and the second functional camera are functional cameras selected from a plurality of said functional cameras; The hardware abstraction layer processes the initial image data according to the data processing request to obtain target image data, and sends the target image data to the third-party application, including: The hardware abstraction layer processes the first initial image data according to the data processing request to obtain the first target image data, and processes the second initial image data to obtain the second target image data. The first target image data and the second target data are sent to the third-party application.
4. The method according to any one of claims 1-3, characterized in that, The functional camera includes at least one of the following: an ultra-wide-angle camera, a telephoto camera, an ultra-telephoto camera, and a macro camera.
5. A shooting device, characterized in that, Applied to an electronic device, the electronic device includes an operating system, the electronic device has a functional camera with set functions, and the application layer of the electronic device is configured with third-party applications; the device includes: The sending module is used to respond to the shooting operation of the shooting interface of the third-party application, control the third-party application to send a data processing request to the hardware abstraction layer of the operating system, the data processing request being a request to process the initial image data captured by the functional camera, and to control the framework layer of the operating system to send the data processing request to the hardware abstraction layer of the operating system. The processing module is used to control the hardware abstraction layer to process the initial image data according to the data processing request, obtain target image data, and send the target image data to the third-party application; wherein, the application layer of the operating system is provided with a camera software development kit (SDK), the third-party application integrates the SDK, and the framework layer is provided with a camera permission module; The determination module is used to send a camera permission query request to the camera permission module through the SDK; the camera permission module determines, based on the query request, that the third-party application has the permission to use the camera with the specified function, and returns a permission confirmation message to the third-party application.
6. The apparatus according to claim 5, characterized in that, The determining module is further configured to, in response to a first operation on the third-party application, send a request to the framework layer of the operating system to use the functional camera; the device further includes: An open module is used to control the framework layer to grant third-party applications access to the camera functionality based on the usage request.
7. A shooting device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 4.
8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1 to 4.
Citation Information
Patent Citations
Photographing method and related equipment
CN110933275A
Display panel of multi-camera recording graphical user interface with camera application
CN306579758S