CN116419062A - Image processing method, device and storage medium - Google Patents

Image processing method, device and storage medium Download PDF

Info

Publication number
CN116419062A
CN116419062A CN202111627438.9A CN202111627438A CN116419062A CN 116419062 A CN116419062 A CN 116419062A CN 202111627438 A CN202111627438 A CN 202111627438A CN 116419062 A CN116419062 A CN 116419062A
Authority
CN
China
Prior art keywords
image processing
hardware abstraction
party application
target image
abstraction layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111627438.9A
Other languages
Chinese (zh)
Inventor
张志辉
黄信
顾雨晴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111627438.9A priority Critical patent/CN116419062A/en
Publication of CN116419062A publication Critical patent/CN116419062A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Studio Devices (AREA)

Abstract

The present disclosure relates to an image processing method, apparatus, and storage medium. The image processing method is applied to the electronic equipment, the electronic equipment comprises an operating system, and an application layer of the operating system is provided with a third party application, and the method comprises the following steps: responding to a first operation of a third party application, wherein the third party application sends a first data processing request to a frame layer of the operating system, and the first data processing request indicates that initial image data acquired by a camera is processed through a designated target image processing function; the framework layer sends the data processing request to a hardware abstraction layer of the operating system; and the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, and sends the target image data to the three-party application.

Description

Image processing method, device and storage medium
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to an image processing method, an image processing device and a storage medium.
Background
With the development of electronic equipment technology, the image processing technology of electronic equipment is mature, most of the electronic equipment image processing technology is mature, and based on the existing software architecture, most of electronic equipment can realize functions of high dynamic illumination rendering HDR, portrait, night scene shooting/recording and the like by combining hardware and algorithm, and the image processing method is quite various.
In the related art, a native camera application has a shooting function, and only a native camera application of an electronic device such as a smart phone can be used, and a third party camera application cannot be accessed or used.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an image processing method, apparatus, and storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method applied to an electronic device, where the electronic device includes an operating system, and an application layer of the operating system is provided with a third party application, the method including:
responding to a first operation of a third party application, wherein the third party application sends a first data processing request to a frame layer of the operating system, and the first data processing request indicates that initial image data acquired by a camera is processed through a designated target image processing function;
the framework layer sends the data processing request to a hardware abstraction layer of the operating system;
and the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, and sends the target image data to the three-party application.
Optionally, the method further comprises:
transmitting a use request for using the target image processing function to a framework layer of the operating system in response to a first operation of the third party application;
and the framework layer opens the target image processing function to the third party application according to the use request.
Optionally, before the sending, to the framework layer of the operating system, a use request for using the target image processing function, the method further includes:
and determining that the third party application has the use authority for using the target image processing function.
Optionally, an application layer of the operating system includes a camera software development kit SDK, the SDK is integrated in the third party application program, and the frame layer is provided with a camera authority module;
the determining that the third party application has a use right to use the target image processing function includes:
the third party application determines that the image processing functionality of the electronic device can be used by:
sending a query request of the image processing function permission to the camera permission module through the SDK;
and the camera authority module determines that the third party application can use the target image processing function according to the query request and returns authority confirmation information to the third party application.
Optionally, the operating system is provided with a first hardware abstraction layer and a second hardware abstraction layer;
the third party application sending a first data processing request to a hardware abstraction layer of the operating system, comprising:
the third party application sends the first data processing request to the first hardware abstraction layer.
Optionally, the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, including:
the first hardware abstraction layer determines an image processing strategy corresponding to the target image processing function and generates a second data processing request according to the first data processing request and the image processing strategy;
the first hardware abstraction layer sends the second data processing request to the second hardware abstraction layer;
the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request;
and the first hardware abstraction layer processes the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request, including:
the second hardware abstraction layer processes the initial image data according to the second data processing request to obtain corrected image data;
the second hardware abstraction layer returns the revised image data to the first hardware abstraction layer.
Optionally, the first hardware abstraction layer is provided with an image policy module and an image processing module;
the image policy module is used for determining an image processing policy corresponding to the target image processing function and generating a second data processing request according to the first data processing request and the image processing policy;
the image processing module is used for processing the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the target image processing function includes:
at least one of HDR function, beautifying function, blurring function, multi-frame noise reduction function, super night scene function and super anti-shake function.
According to a second aspect of embodiments of the present disclosure, there is provided an image processing apparatus applied to an electronic device, the electronic device including an operating system and an application layer of the operating system being provided with a third party application, the apparatus including:
the sending module is used for responding to a first operation of a third party application, controlling the third party application to send a first data processing request to a frame layer of the operating system, enabling the first data processing request to instruct to process initial image data acquired by a camera through a specified target image processing function, and controlling the frame layer to send the data processing request to a hardware abstraction layer of the operating system;
and the processing module is used for controlling the hardware abstraction layer to process the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, and sending the target image data to the three-party application.
Optionally, the apparatus further comprises:
a determining module, configured to send a use request for using the target image processing function to a framework layer of the operating system in response to a first operation on the third party application;
and the opening module is used for opening the target image processing function to the third party application according to the use request by the framework layer.
Optionally, before the determining module sends the use request for using the target image processing function to the framework layer of the operating system, the determining module is further configured to:
and determining that the third party application has the use authority for using the target image processing function.
Optionally, an application layer of the operating system includes a camera software development kit SDK, the SDK is integrated in the third party application program, and the frame layer is provided with a camera authority module;
the determining module determines that the third party application has the use authority of using the target image processing function in the following manner:
sending a query request of the image processing function permission to the camera permission module through the SDK;
and the camera authority module determines that the third party application can use the target image processing function according to the query request and returns authority confirmation information to the third party application.
Optionally, the operating system is provided with a first hardware abstraction layer and a second hardware abstraction layer;
the sending module is configured to control the third party application to send a first data processing request to a hardware abstraction layer of the operating system by:
the third party application sends the first data processing request to the first hardware abstraction layer.
Optionally, the processing module is configured to control the hardware abstraction layer to process the initial image data through the target image processing function according to the first data processing request, so as to obtain processed target image data:
the first hardware abstraction layer determines an image processing strategy corresponding to the target image processing function and generates a second data processing request according to the first data processing request and the image processing strategy;
the first hardware abstraction layer sends the second data processing request to the second hardware abstraction layer;
the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request;
and the first hardware abstraction layer processes the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the processing module controls a second hardware abstraction layer to return the corrected image data to the first hardware abstraction layer according to the second data processing request in the following manner:
the second hardware abstraction layer processes the initial image data according to the second data processing request to obtain corrected image data;
the second hardware abstraction layer returns the revised image data to the first hardware abstraction layer.
Optionally, the first hardware abstraction layer is provided with an image policy module and an image processing module;
the image policy module is used for determining an image processing policy corresponding to the target image processing function and generating a second data processing request according to the first data processing request and the image processing policy;
the image processing module is used for processing the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the target image processing function includes:
at least one of HDR function, beautifying function, blurring function, multi-frame noise reduction function, super night scene function and super anti-shake function.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image processing method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in response to a first operation of a third party application, the third party application sends a first data processing request to a frame layer of the operating system, the first data processing request indicates that initial image data acquired by a camera is processed through a specified target image processing function, the frame layer sends the data processing request to a hardware abstraction layer of the operating system, the hardware abstraction layer processes the initial image data according to the first data processing request through the target image processing function to obtain processed target image data, and sends the target image data to the third party application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an image processing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an image processing method according to an exemplary embodiment.
FIG. 3 is a schematic diagram of an operating system software architecture, according to an example embodiment.
Fig. 4 is a flowchart illustrating a photographing method to which the present disclosure is applied according to an exemplary embodiment.
Fig. 5 is an exemplary diagram illustrating an image processing method to which the present disclosure is applied according to an exemplary embodiment.
Fig. 6 is an exemplary diagram illustrating an image processing method to which the present disclosure is applied according to an exemplary embodiment.
Fig. 7 is a block diagram of an image processing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram of an apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating an image processing method according to an exemplary embodiment, and as shown in fig. 1, a photographing method is used in an electronic device, including the following steps.
In step S11, in response to a first operation on the third party application, the third party application sends a first data processing request to a frame layer of the operating system, the first data processing request indicating that initial image data acquired by the camera is processed by the specified target image processing function.
When the third party application is a third party camera application, the first operation may be, for example, an operation of opening the third party application to run the third party application. Or when the third party application is an application capable of calling the camera function, the first operation may be an operation of calling the photographing function through the third party application or an operation of letting the third party application enter the photographing interface.
The electronic device may include an operating system, and an application layer of the operating system is provided with a third party application. The operating system may be, for example, an android system, an IOS system, a Linux system, etc. The third party application may be, for example, a third party Camera application such as a beauty drawing show, a beautyycam beauty Camera, and a Camera FV5, or an application capable of calling a Camera function.
By way of example, the image processing functions supported by the electronic device may include, for example, at least one of a high dynamic illumination rendering HDR function, a beauty function, an blurring function, a multi-frame noise reduction function, a super night scene function, a super anti-shake function.
The first data processing request indicates that initial image data acquired by the camera is processed through a designated target image processing function.
For example, after the operating system framework layer opens the use authority of the function camera to the third party application according to the use request, the third party application may display a selection button of the supported image processing function in the operation interface. The user can determine the image processing function to be performed on the image data acquired by the camera based on the selection button of the image processing function.
In step S12, the framework layer sends a data processing request to the hardware abstraction layer of the operating system.
In step S13, the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request, obtains the processed target image data, and sends the target image data to the three-party application.
In an exemplary embodiment of the present disclosure, in response to a first operation on a third party application, the third party application sends a first data processing request to a framework layer of an operating system, where the first data processing request indicates that initial image data collected by a camera is processed through a specified target image processing function, the framework layer sends a data processing request to a hardware abstraction layer of the operating system, and the hardware abstraction layer processes the initial image data according to the first data processing request through the target image processing function to obtain processed target image data, and sends the target image data to the third party application.
Fig. 2 is a flowchart illustrating an image processing method according to an exemplary embodiment, and as shown in fig. 2, a photographing method is used in an electronic device, including the following steps.
In step S21, in response to the first operation on the third party application, it is determined that the third party application has the use authority to use the target image processing function.
In step S22, a use request for using the target image processing function is transmitted to the framework layer of the operating system.
In step S23, the framework layer opens the target image processing function to the third party application according to the use request.
In step S24, in response to the first operation on the third party application, the third party application sends a first data processing request to the frame layer of the operating system, the first data processing request indicating that initial image data acquired by the camera is processed by the specified target image processing function.
In step S25, the framework layer sends a data processing request to the hardware abstraction layer of the operating system.
In step S26, the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request, obtains the processed target image data, and sends the target image data to the three-party application.
In one embodiment, in response to a first operation on the third party application, the third party application may send a use request to use the image processing function to a framework layer of the operating system after determining that the target image processing function is available. The frame layer opens a target image processing function to the third party application according to the use request, and further the third party application has the target image processing function, so that the user can still utilize the target image processing function to complete shooting of pictures or videos based on the third party application.
The application layer of the operating system comprises a camera software development kit (Software Development Kit, SDK), and the SDK is integrated in the third-party application program.
The third party application determines that the image processing function of the electronic device can be used by:
the third party application sends a query request of the image processing function authority to the camera authority module through the SDK;
and the camera authority module returns authority confirmation information to the third party application after determining that the third party application can use the image processing function of the electronic equipment according to the query request.
The frame layer of the operating system is provided with a camera opening module. The third party application sends a use request to the camera opening module, and the camera opening module opens the use authority of the image processing function to the third party application according to the use request.
The first data processing request may be that after the framework layer serving as the system opens the image processing function to the third party application, the user determines the image processing function to be used based on the third party application, and selects the image processing function, that is, after the target image processing function is obtained, the user instructs to process the initial image data collected by the camera through the designated target image processing function.
The operating system is provided with a first hardware abstraction layer and a second hardware abstraction layer, wherein the first hardware abstraction layer can be a newly added hardware abstraction layer, and the second hardware abstraction layer can be a hardware abstraction layer which is native to the operating system.
The third party application sends a first data processing request to the first hardware abstraction layer, and the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request in the following manner to obtain processed target image data:
the first hardware abstraction layer determines an image processing policy corresponding to a target image processing function according to the target image processing function specified in the image processing function included in the first data processing request, and generates a second data processing request according to the first data processing request and the image processing policy.
And then the first hardware abstraction layer sends a second data processing request to the second hardware abstraction layer, the second hardware abstraction layer performs image processing on the initial image data according to the second data processing request to obtain corrected image data, the second hardware abstraction layer sends the corrected image data to the first hardware abstraction layer, and the first hardware abstraction layer processes the corrected image data according to an image processing strategy to obtain target image data.
The image strategy module is used for determining an image processing strategy corresponding to the target image processing function, generating a second data processing request according to the first data processing request and the image processing strategy, and processing the corrected image data according to the image processing strategy to obtain the target image data.
FIG. 3 is a schematic diagram of an operating system software architecture, according to an example embodiment.
In fig. 3, an operating system native architecture may include an application layer, a framework layer, a first hardware abstraction layer, a second hardware abstraction layer, a kernel layer, and a hardware layer. The application layer is provided with a plurality of third party applications and native applications of the electronic device. Various native interfaces are included in the framework layer, such as a camera application interface, an application service (e.g., a camera application service), a framework layer interface. The first hardware abstraction layer is a newly added hardware abstraction layer that includes a first hardware abstraction layer interface (e.g., HAL 3.0). The second hardware abstraction layer includes a hardware abstraction layer interface (e.g., HAL 3.0), and the kernel layer includes various drivers (e.g., screen Display drivers, audio drivers, etc.). The hardware layer includes various hardware (e.g., cameras of various functions) included in the electronic device.
The camera software development kit SDK is arranged in an application layer on the basis of a native system architecture, and is integrated in a third party application program. The operating system frame layer is provided with a camera authority module and a camera opening module. An image policy module and an image processing module may be disposed in the first hardware abstraction layer.
And responding to the first operation of the third party application, the third party application sends a query request of the image processing function permission to the camera permission module through the SDK, and the camera permission module returns a confirmation message of the image processing function permission to the third party application after determining that the third party application can use the image processing function according to the query request.
The frame layer of the operating system further comprises a camera opening module, wherein the camera opening module is used for receiving a use request sent by the third party application and opening the use authority of the image processing function to the third party application according to the use request.
And when the third party application sends a first data processing request to a first hardware abstraction layer of the operating system, determining an image processing strategy corresponding to the target image processing function through an image strategy module arranged in the first hardware abstraction layer, and generating a second data processing request according to the first data processing request and the image processing strategy. And the image policy module sends a second data processing request to the second hardware abstraction layer, and after the second data processing request reaches the second hardware abstraction layer, the second data processing request is processed by the kernel layer and the hardware layer to obtain corrected image data and returns the corrected image data to the image policy module of the first hardware abstraction layer.
The image strategy module sends the corrected image data to the image processing module according to the image processing strategy, the image processing module processes the corrected image data according to the image processing strategy to obtain target image data, the image processing module returns the obtained target image data to the image strategy module, and the image strategy module returns the target image data to the third party application. The image processing module adopts a cross-platform design, and the influence on the image processing strategy capability during the replacement/upgrading of the image processing function is reduced.
Fig. 4 is a flowchart illustrating a photographing method to which the present disclosure is applied according to an exemplary embodiment.
Referring to fig. 4, in response to a first operation of the third party application, the third party application sends a use request for a target image processing function to a frame layer of the operating system, the frame layer of the operating system performs permission verification on the third party application according to the query request, and after determining that the third party application has the use permission for using the target image processing function, the frame layer opens the use permission for the target image processing function to the third party application according to the use request; and then, responding to a third party application to send a first data processing request using a target image processing function to a frame layer of the operating system, wherein the third party application sends the first data processing request to the frame layer of the operating system, the frame layer sends the first data processing request to a first hardware abstraction layer of the operating system, the first hardware abstraction layer generates a second data processing request according to the first data processing request and the image processing strategy, the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request, the first hardware abstraction layer processes the corrected image data according to the image processing strategy to obtain the target image data, and the first hardware abstraction layer sends the target image data to the third party application.
Fig. 5 and 6 are exemplary diagrams illustrating an image processing method to which the present disclosure is applied, according to an exemplary embodiment.
In fig. 5, after the operating system opens the image processing functions supported by the electronic device to the third party application, the third party application displays a plurality of buttons of the image processing functions, that is, the photographing functions, such as the photographing function 1, the photographing function 2, the photographing function 3, and the like, on the photographing operation interface. The user can select the photographing function 1, the photographing 2 or the photographing 3 to photograph the image according to photographing requirements on an operation interface of the third party application.
In fig. 6, after the operating system opens the image processing functions supported by the electronic device to the third party application, the third party application displays buttons of a plurality of image processing functions, that is, video functions, such as video function 1, video function 2, video function 3, and the like, on the video recording operation interface. The user can select the video function 1, the video 2 or the video 3 to record the video according to the video recording requirement on the operation interface of the third party application.
Fig. 7 is a block diagram 700 of an image processing apparatus according to an exemplary embodiment. Referring to fig. 7, an image processing apparatus applied to an electronic device including an operating system and an application layer of the operating system being provided with a third party application, the apparatus comprising:
a sending module 701, configured to, in response to a first operation on a third party application, control the third party application to send a first data processing request to a framework layer of the operating system, where the first data processing request indicates that initial image data collected by a camera is processed by a specified target image processing function, and control the framework layer to send the data processing request to a hardware abstraction layer of the operating system;
the processing module 702 is configured to control the hardware abstraction layer to process the initial image data through the target image processing function according to the first data processing request, obtain processed target image data, and send the target image data to the three-party application.
Optionally, the apparatus further comprises:
a determining module 703, configured to send a use request for using the target image processing function to a framework layer of the operating system in response to a first operation of the third party application;
and an opening module 704, configured to open the target image processing function to the third party application according to the usage request by the framework layer.
Optionally, before the determining module 703 sends a use request for using the target image processing function to a framework layer of the operating system, the determining module is further configured to:
and determining that the third party application has the use authority for using the target image processing function.
Optionally, an application layer of the operating system includes a camera software development kit SDK, the SDK is integrated in the third party application program, and the frame layer is provided with a camera authority module;
the determining module 703 determines that the third party application has a use right to use the target image processing function in the following manner:
sending a query request of the image processing function permission to the camera permission module through the SDK;
and the camera authority module determines that the third party application can use the target image processing function according to the query request and returns authority confirmation information to the third party application.
Optionally, the operating system is provided with a first hardware abstraction layer and a second hardware abstraction layer;
the sending module 701 is configured to control the third party application to send a first data processing request to a hardware abstraction layer of the operating system by:
the third party application sends the first data processing request to the first hardware abstraction layer.
Optionally, the processing module 702 is configured to control the hardware abstraction layer to process the initial image data through the target image processing function according to the first data processing request, to obtain processed target image data:
the first hardware abstraction layer determines an image processing strategy corresponding to the target image processing function and generates a second data processing request according to the first data processing request and the image processing strategy;
the first hardware abstraction layer sends the second data processing request to the second hardware abstraction layer;
the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request;
and the first hardware abstraction layer processes the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the processing module 702 controls the second hardware abstraction layer to return the corrected image data to the first hardware abstraction layer according to the second data processing request in the following manner:
the second hardware abstraction layer processes the initial image data according to the second data processing request to obtain corrected image data;
the second hardware abstraction layer returns the revised image data to the first hardware abstraction layer.
Optionally, the first hardware abstraction layer is provided with an image policy module and an image processing module;
the image policy module is used for determining an image processing policy corresponding to the target image processing function and generating a second data processing request according to the first data processing request and the image processing policy;
the image processing module is used for processing the corrected image data according to the image processing strategy to obtain the target image data.
Optionally, the target image processing function includes:
at least one of HDR function, beautifying function, blurring function, multi-frame noise reduction function, super night scene function and super anti-shake function.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image processing method provided by the present disclosure.
Fig. 8 is a block diagram illustrating an apparatus 800 for image processing according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast electronic device, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 8, apparatus 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.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the image processing methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. 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 touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The 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, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. 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.
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 elements for performing the above-described image processing methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described image processing method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned image processing method when being executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An image processing method, applied to an electronic device, the electronic device including an operating system, and an application layer of the operating system being provided with a third party application, the method comprising:
responding to a first operation of a third party application, wherein the third party application sends a first data processing request to a frame layer of the operating system, and the first data processing request indicates that initial image data acquired by a camera is processed through a designated target image processing function;
the framework layer sends the data processing request to a hardware abstraction layer of the operating system;
and the hardware abstraction layer processes the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, and sends the target image data to the three-party application.
2. The method according to claim 1, wherein the method further comprises:
transmitting a use request for using the target image processing function to a framework layer of the operating system in response to a first operation of the third party application;
and the framework layer opens the target image processing function to the third party application according to the use request.
3. The method of claim 2, wherein prior to sending a use request to the framework layer of the operating system to use the target image processing function, the method further comprises:
and determining that the third party application has the use authority for using the target image processing function.
4. The method of claim 3, wherein an application layer of the operating system includes a camera software development kit SDK, the SDK is integrated in the third party application program, and the framework layer is provided with a camera authority module;
the determining that the third party application has a use right to use the target image processing function includes:
sending a query request of the image processing function permission to the camera permission module through the SDK;
and the camera authority module determines that the third party application can use the target image processing function according to the query request and returns authority confirmation information to the third party application.
5. The method of claim 1, wherein the operating system is provided with a first hardware abstraction layer and a second hardware abstraction layer;
the third party application sending a first data processing request to a hardware abstraction layer of the operating system, comprising:
the third party application sends the first data processing request to the first hardware abstraction layer.
6. The method of claim 5, wherein the hardware abstraction layer processes the initial image data according to the first data processing request by the target image processing function to obtain processed target image data, comprising:
the first hardware abstraction layer determines an image processing strategy corresponding to the target image processing function and generates a second data processing request according to the first data processing request and the image processing strategy;
the first hardware abstraction layer sends the second data processing request to the second hardware abstraction layer;
the second hardware abstraction layer returns the corrected image data to the first hardware abstraction layer according to the second data processing request;
and the first hardware abstraction layer processes the corrected image data according to the image processing strategy to obtain the target image data.
7. The method of claim 6, wherein the second hardware abstraction layer returning the revised image data to the first hardware abstraction layer in accordance with the second data processing request, comprises:
the second hardware abstraction layer processes the initial image data according to the second data processing request to obtain corrected image data;
the second hardware abstraction layer returns the revised image data to the first hardware abstraction layer.
8. The method of claim 5, wherein the first hardware abstraction layer is provided with an image policy module and an image processing module;
the image policy module is used for determining an image processing policy corresponding to the target image processing function and generating a second data processing request according to the first data processing request and the image processing policy;
the image processing module is used for processing the corrected image data according to the image processing strategy to obtain the target image data.
9. The method of claim 1, wherein the target image processing function comprises:
at least one of HDR function, beautifying function, blurring function, multi-frame noise reduction function, super night scene function and super anti-shake function.
10. An image processing apparatus, characterized by being applied to an electronic device, the electronic device including an operating system, and an application layer of the operating system being provided with a third party application, the apparatus comprising:
the sending module is used for responding to a first operation of a third party application, controlling the third party application to send a first data processing request to a frame layer of the operating system, enabling the first data processing request to instruct to process initial image data acquired by a camera through a specified target image processing function, and controlling the frame layer to send the data processing request to a hardware abstraction layer of the operating system;
and the processing module is used for controlling the hardware abstraction layer to process the initial image data through the target image processing function according to the first data processing request to obtain processed target image data, and sending the target image data to the three-party application.
11. An image processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the steps of carrying out the method of any one of claims 1 to 9.
12. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 9.
CN202111627438.9A 2021-12-28 2021-12-28 Image processing method, device and storage medium Pending CN116419062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111627438.9A CN116419062A (en) 2021-12-28 2021-12-28 Image processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111627438.9A CN116419062A (en) 2021-12-28 2021-12-28 Image processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN116419062A true CN116419062A (en) 2023-07-11

Family

ID=87047984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111627438.9A Pending CN116419062A (en) 2021-12-28 2021-12-28 Image processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116419062A (en)

Similar Documents

Publication Publication Date Title
US9667774B2 (en) Methods and devices for sending virtual information card
EP3176776A1 (en) Luminance adjusting method and apparatus, computer program and recording medium
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN107885464B (en) Data storage method, device and computer readable storage medium
CN109922203B (en) Terminal, screen off method and device
CN107395724B (en) Network request method and device
CN106775246B (en) Screen brightness adjusting method and device
CN112954596B (en) Data sharing method, device, equipment and storage medium
CN110704197B (en) Method, apparatus and medium for processing memory access overhead
CN109981729B (en) File processing method and device, electronic equipment and computer readable storage medium
CN116419062A (en) Image processing method, device and storage medium
CN116361821A (en) Data processing method, device and storage medium
CN116419066A (en) Shooting method, shooting device and storage medium
EP4206962A1 (en) Shooting method and device and storage medium
CN110955328B (en) Control method and device of electronic equipment and storage medium
CN106959875B (en) Front camera opening method, device and equipment
CN107124505B (en) Recording method and device
CN107766099B (en) Application double-opening method and device
CN114612287A (en) Image processing method, device and storage medium
CN107220131B (en) Data communication method, device and equipment
CN118200720A (en) Zoom control method, device and storage medium
CN106910472B (en) Control method and device for adjusting backlight
CN112099894A (en) Content determination method and device
CN116489498A (en) Image preview method, image preview device, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination