CN117278687A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN117278687A
CN117278687A CN202311267809.6A CN202311267809A CN117278687A CN 117278687 A CN117278687 A CN 117278687A CN 202311267809 A CN202311267809 A CN 202311267809A CN 117278687 A CN117278687 A CN 117278687A
Authority
CN
China
Prior art keywords
image
processing
processing component
component
electronic equipment
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
CN202311267809.6A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311267809.6A priority Critical patent/CN117278687A/en
Publication of CN117278687A publication Critical patent/CN117278687A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/40068Modification of image resolution, i.e. determining the values of picture elements at new relative positions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • H04N1/393Enlarging or reducing
    • H04N1/3935Enlarging or reducing with modification of image resolution, i.e. determining the values of picture elements at new relative positions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The application discloses an image processing method and device, and belongs to the technical field of communication. The image processing method comprises the following steps: acquiring a first image and first information of electronic equipment; determining a processing mode of the first image under the condition that the first information meets a first condition; processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image; processing the second image through a second processing component of the electronic equipment to obtain a third image; and processing the third image through a first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.

Description

Image processing method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to an image processing method and an image processing device.
Background
With the rapid development of mobile electronic devices, the requirements of users on the frame rate and resolution of image streams are also increasing. Among them, the processing of high frame rate, high resolution image streams tends to result in higher and higher power consumption of the device.
The current common power consumption reduction scheme is to shut down part of the image processing capability of the main control chip. However, such a reduced power consumption scheme causes a problem in that the resolution of the resulting image is low.
Disclosure of Invention
The embodiment of the application aims to provide an image processing method and device, which can solve the problem that a scheme for reducing power consumption leads to lower resolution of a finally obtained image.
In a first aspect, an embodiment of the present application provides an image processing method, including:
acquiring a first image and first information of electronic equipment;
determining a processing mode of the first image under the condition that the first information meets a first condition;
processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image;
processing the second image through a second processing component of the electronic equipment to obtain a third image;
and processing the third image through a first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
the acquisition module is used for acquiring the first image and the first information of the electronic equipment;
the determining module is used for determining the processing mode of the first image under the condition that the first information meets a first condition;
the first processing module is used for processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image;
the second processing module is used for processing the second image through a second processing component of the electronic equipment to obtain a third image;
and the third processing module is used for processing the third image through the first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, after the first image and the first information of the electronic device are acquired, the processing mode of the first image can be determined according to the condition that the first information meets the first condition, so that the resolution of the image is reduced based on the processing mode, then the image with low resolution is processed, the processing process consumes lower power, excessive power consumption in the image processing process is avoided, the original resolution of the image can be recovered after the image processing is completed, and the resolution of the image is ensured not to be reduced under the condition of reducing the power consumption.
Drawings
Fig. 1 is a schematic flow chart of an image processing method according to an embodiment of the present application;
fig. 2 is an application schematic diagram of an image processing method according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of an image processing apparatus according to an embodiment of the present disclosure;
FIG. 4 is a second schematic block diagram of an image processing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
For ease of understanding, some of the matters related to the embodiments of the present application are described below:
image stream refers to a stream of multiple frames of successive images that contain camera video and motion.
The self-contained image processor refers to an image processing component of the mobile device main chip, such as an image signal processing (Image Signal Processing, ISP) component of a high-pass series chip.
The plug-in image processor refers to an image processing component which is self-developed by mobile equipment manufacturers and is externally connected to a main chip of the equipment as a single chip.
The following describes in detail the seed image processing method provided in the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an image processing method in an embodiment of the present application includes:
step 101, acquiring a first image and first information of an electronic device.
Here, the first image may be an image acquired by a camera in the electronic device, or may be an image of another source in the electronic device, such as an application program downloaded image. The first information is power consumption characterization information of the electronic device. In this step, the first image and the first information are acquired to execute the subsequent steps.
Step 102, determining a processing mode of the first image when the first information meets a first condition.
Here, the first condition is a condition for judging that the electronic device is in a high-power-consumption working state, and if the first information meets the first condition, it indicates that the current working power consumption of the electronic device is too high, so as to determine a processing mode of the first image, where the processing mode is a mode for realizing resolution reduction of the first image.
And step 103, processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image.
Here, the first processing component is a central processing unit (Central Processing Unit, CPU), also called an on-board image processor. In this step, after determining the processing mode of the first image in step 102, the resolution of the first image can be reduced by the first processing unit based on the processing mode, so as to obtain the second image.
104, processing the second image through a second processing component of the electronic device to obtain a third image;
here, the second processing component may be an image processing chip (also called a plug-in processor) connected to the CPU, or may be an image processing module integrated in the CPU. In this step, after the second image is obtained in step 103, the second image with lower resolution may be processed to obtain a third image.
And 105, processing the third image through a first processing component of the electronic device to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
In this step, after the third image is obtained in step 104, the first processing component processes the third image to obtain a fourth image, and the original resolution of the image is restored.
Thus, according to steps 101-105, after the first image and the first information of the electronic device are acquired, the processing mode of the first image can be determined according to the condition that the first information meets the first condition, so that the resolution of the image is reduced based on the processing mode, then the image with low resolution is processed, the processing process consumes lower power, excessive power consumption in the image processing process is avoided, the original resolution of the image is restored after the image processing is completed, and the resolution of the image is not reduced under the condition that the power consumption is reduced.
Optionally, in this embodiment, the first processing component is connected to the second processing component, the first processing component passes the second image to the second processing component after obtaining the second image, and the second processing component passes the third image back to the first processing component after obtaining the third image.
Optionally, in this embodiment, before the step of processing, by the first processing component of the electronic device, the first image to obtain the second image based on the processing manner, the method further includes:
the first image is converted to YUV format by the first processing component.
That is, for the acquired first image, the first processing component will convert it to YUV format first, that is, using luminance (Y) and chrominance (UV) to describe the color, reducing the overall size of the image data, facilitating image transmission.
Optionally, in this embodiment, the processing manner includes at least compressing an image and changing an image format, so that, based on the processing manner, processing, by a first processing component of the electronic device, the first image to obtain a second image includes:
when the processing mode is compression image, the first image is compressed by the first processing component according to a first proportion, and the second image is obtained, wherein the first proportion corresponds to the first information; or,
and when the processing mode is changing the image format, the first processing component adjusts the first image according to a first bit depth to obtain the second image, wherein the first bit depth corresponds to the first information.
Thus, when the processing mode of the first image is determined to be the compressed image, the first image is compressed according to the first proportion corresponding to the first information through the first processing component, and a second image with the resolution smaller than that of the first image is obtained. The first ratio may be determined by a mapping relationship between a preset compression ratio and the first information.
When the processing mode of the first image is determined to be changing the image format, the first processing component adjusts the first image according to the first bit depth corresponding to the first information, and a second image with the resolution smaller than that of the first image is obtained. The first bit depth may be determined by a mapping relationship between a preset format and the first information, where different formats in the mapping relationship have different bit depth values.
Optionally, in this embodiment, the first information includes at least one of:
the real-time temperature of the electronic device;
and the real-time power consumption of the electronic equipment.
Thus, the first condition may set a corresponding threshold value corresponding to different types of first information, so as to determine that the electronic device is in a high-power-consumption working state. In addition, in the mapping relationship between the preset compression ratio and the first information, a corresponding compression ratio may be set for different threshold ranges of temperature and/or power consumption, for example, the power consumption is greater than 1.5w or the temperature is greater than 43 degrees celsius, the compression ratio is a first value, and assuming that the original resolution of the first image is 3840×2160, the resolution may be compressed to 3072×1728 based on the first value, so as to reduce the power consumption in the subsequent image streaming transmission and processing process. Of course, in the mapping relationship, the compression ratio may also be set to 0 based on the conventional power consumption or temperature of the electronic device, so that when the power consumption or temperature of the electronic device is reduced to be within a specified range, no image compression operation is required, and the subsequent image is still transmitted and processed according to the original resolution of the image.
Likewise, in the mapping relationship between the preset format and the first information, corresponding formats may be set for different threshold ranges of temperature and/or power consumption, which are not described herein.
Further, in consideration of different requirements of users on image processing, optionally, in this embodiment, the processing, by the second processing component of the electronic device, the second image to obtain a third image includes:
acquiring an image processing strategy of the first image, wherein the image processing strategy comprises one or more image processing algorithms;
and performing the one or more image processing algorithms on the second image by the second processing component to obtain the third image.
Here, the image processing policy includes one or more image processing algorithms that are obtained according to the image processing requirements of the user, and the one or more image processing algorithms may be algorithms that implement functions of anti-shake, beauty, blurring, 3D rendering, and the like. Thus, the third image resulting from the second processing component performing the one or more image processing algorithms on the second image is the image desired by the user.
Of course, in this embodiment, the image processing algorithm supported by the second processing component is preset.
In this embodiment, the first processing component may be preset to support one or more image processing algorithms, so that after the first processing component receives an initial image of the image sensor or other image sources, the first processing component may perform front-end processing on the initial image to obtain a first image, and after receiving a third image, may also perform back-end processing on the third image.
Optionally, in this embodiment, the processing, by the first processing component of the electronic device, the third image to obtain a fourth image includes:
recovering, by the first processing component, the third image according to a second scale to obtain the fourth image, where the second scale and the first scale are reciprocal; or,
and under the condition that the second image is an image with an image format changed, the third image is adjusted according to a second bit depth by the first processing component to obtain the fourth image, wherein the second bit depth is the original bit depth of the first image.
That is, after the first image is compressed to obtain a second image, and further processing is performed to obtain a third image corresponding to the second image, the first processing component restores the resolution of the third image according to a second ratio which is reciprocal to the first ratio, so as to obtain a fourth image with the same resolution as the first image, thereby realizing the restoration of the original resolution of the image, such as the resolution is enlarged from 3072×1728 to 3840×2160. After the format of the first image is changed to obtain a second image, and a third image corresponding to the second image is obtained through further processing, the resolution of the third image is recovered according to the second bit depth through the first processing component, and a fourth image with the same resolution as the first image is obtained, for example, the fourth image is enlarged from 8bit depth to 10bit depth.
Next, in conjunction with fig. 2, an application of the method in the embodiment of the present application in a scenario where a user starts an electronic device to record video is described:
step 201, image sensor mapping.
The image sensor (camera) generates a continuous raw image stream at a fixed frame rate from the current scene and delivers it to the first processing component. The original image stream contains a plurality of consecutive images, i.e. the first image.
Step 202, the first processing component determines a first ratio according to a mapping relationship between a preset compression ratio and first information (such as power consumption), and adjusts an image.
After receiving the original image stream from the image sensor, the first processing component firstly converts the original image stream into an image in YUV format, and performs front-end processing, such as anti-shake and face detection.
Assuming that the original resolution of the first image is 3840×2160 and the power consumption of the current device is greater than 1.5w, after determining a compression ratio, the resolution is compressed to 3072×1728 to obtain a second image, and the second image is delivered to a second processing component, such as an on-hook image processor.
Step 203, the second processing component processes the compressed image, i.e. the second image, and returns the processed image to the first processing component.
The second processing component receives the compressed small-resolution image (second image), performs blurring, noise reduction, beauty treatment and the like, obtains a third image, and transmits the third image back to the first processing component.
Because the second processing component receives and processes the compressed image with small resolution, the power consumption and the temperature rise of the device are effectively reduced.
Step 204, the first processing component performs back-end processing, and restores the original resolution of the image.
The first processing component receives the third image returned by the second processing component, and can perform corresponding tone effect processing, and then enlarge and restore the image to the original resolution (for example, enlarge the resolution from 3072×1728 to 3840×2160) according to the previous compression ratio.
Step 205, save and display the video.
The first processing component sends the amplified and restored image to an encoder to be stored as a video file, and sends the video file to a display of the electronic equipment to be previewed in real time. Thus, in both the preview and record files, there is a processing effect of the second processing component, and the saved video file is also the standard high resolution video desired by the user.
In summary, aiming at the problems of too fast power failure and too high temperature rise of the mobile equipment caused by too high power consumption in a high-resolution high-frame-rate video recording scene, the method provided by the embodiment of the application reduces the power consumption and simultaneously gives consideration to the image processing effect, so that the image processing with reduced power consumption which is not perceived by a user is realized.
According to the image processing method provided by the embodiment of the application, the execution subject can be an image processing device. In the embodiment of the present application, an image processing apparatus provided in the embodiment of the present application will be described by taking an example in which the image processing apparatus executes an image processing method.
As shown in fig. 3, an image processing apparatus 300 according to an embodiment of the present application includes:
an acquiring module 310, configured to acquire a first image and first information of an electronic device;
a determining module 320, configured to determine a processing manner of the first image when the first information meets a first condition;
a first processing module 330, configured to process, based on the processing manner, the first image by using a first processing component of the electronic device to obtain a second image, where a resolution of the second image is lower than a resolution of the first image;
a second processing module 340, configured to process, by using a second processing component of the electronic device, the second image to obtain a third image;
and a third processing module 350, configured to process, by using a first processing component of the electronic device, the third image to obtain a fourth image, where a resolution of the fourth image is the same as a resolution of the first image.
Optionally, as shown in fig. 4, the apparatus further includes:
a fourth processing module 360 is configured to convert, by the first processing component, the first image into a YUV format.
Optionally, the first processing module 330 is further configured to:
when the processing mode is compression image, the first image is compressed by the first processing component according to a first proportion, and the second image is obtained, wherein the first proportion corresponds to the first information; or,
and when the processing mode is changing the image format, the first processing component adjusts the first image according to a first bit depth to obtain the second image, wherein the first bit depth corresponds to the first information.
Optionally, the second processing module 340 includes:
an acquisition sub-module for acquiring an image processing policy of the first image, the image processing policy comprising one or more image processing algorithms;
and the processing sub-module is used for executing the one or more image processing algorithms on the second image through the second processing component to obtain the third image.
Optionally, the third processing module 350 is further configured to:
recovering, by the first processing component, the third image according to a second scale to obtain the fourth image, where the second scale and the first scale are reciprocal; or,
and under the condition that the second image is an image with an image format changed, the third image is adjusted according to a second bit depth by the first processing component to obtain the fourth image, wherein the second bit depth is the original bit depth of the first image.
Optionally, the first information includes at least one of:
the real-time temperature of the electronic device;
and the real-time power consumption of the electronic equipment.
The device can determine the processing mode of the first image according to the condition that the first information meets the first condition after the first image and the first information of the electronic equipment are acquired, so that the resolution of the image is reduced based on the processing mode, then the image with low resolution is processed, the processing process consumes lower power, the excessive power consumption in the image processing process is avoided, the original resolution of the image is recovered after the image processing is finished, and the resolution of the image is not reduced under the condition of reducing the power consumption.
The image processing apparatus in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The image processing apparatus provided in this embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 2, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 5, the embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, where the memory 502 stores a program or an instruction that can be executed on the processor 501, and the program or the instruction implements each step of the embodiment of the image processing method when executed by the processor 501, and the steps achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 610 is configured to acquire a first image and first information of the electronic device;
determining a processing mode of the first image under the condition that the first information meets a first condition;
processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image;
processing the second image through a second processing component of the electronic equipment to obtain a third image;
and processing the third image through a first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
The device can determine the processing mode of the first image according to the condition that the first information meets the first condition after the first image and the first information of the electronic device are acquired, so that the resolution of the image is reduced based on the processing mode, then the image with low resolution is processed, the processing process consumes lower power, the excessive power consumption in the image processing process is avoided, the original resolution of the image is restored after the image processing is completed, and the resolution of the image is not reduced under the condition of reducing the power consumption.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 609 may include volatile memory or nonvolatile memory, or the memory 609 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 609 in the present embodiment includes, but is not limited to, these and any other suitable types of memory.
The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the embodiment of the image processing method, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the image processing method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (14)

1. An image processing method, comprising:
acquiring a first image and first information of electronic equipment;
determining a processing mode of the first image under the condition that the first information meets a first condition;
processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image;
processing the second image through a second processing component of the electronic equipment to obtain a third image;
and processing the third image through a first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
2. The method of claim 1, further comprising, prior to the step of processing the first image by the first processing component of the electronic device based on the processing means to obtain a second image:
the first image is converted to YUV format by the first processing component.
3. The method of claim 1, wherein the processing the first image by the first processing component of the electronic device based on the processing manner to obtain a second image comprises:
when the processing mode is compression image, the first image is compressed by the first processing component according to a first proportion, and the second image is obtained, wherein the first proportion corresponds to the first information; or,
and when the processing mode is changing the image format, the first processing component adjusts the first image according to a first bit depth to obtain the second image, wherein the first bit depth corresponds to the first information.
4. The method of claim 1, wherein processing the second image by the second processing component of the electronic device results in a third image, comprising:
acquiring an image processing strategy of the first image, wherein the image processing strategy comprises one or more image processing algorithms;
and performing the one or more image processing algorithms on the second image by the second processing component to obtain the third image.
5. The method of claim 1, wherein the processing the third image by the first processing component of the electronic device to obtain a fourth image comprises:
recovering, by the first processing component, the third image according to a second scale to obtain the fourth image, where the second scale and the first scale are reciprocal; or,
and under the condition that the second image is an image with an image format changed, the third image is adjusted according to a second bit depth by the first processing component to obtain the fourth image, wherein the second bit depth is the original bit depth of the first image.
6. The method of claim 1, wherein the first information comprises at least one of:
the real-time temperature of the electronic device;
and the real-time power consumption of the electronic equipment.
7. An image processing apparatus, comprising:
the acquisition module is used for acquiring the first image and the first information of the electronic equipment;
the determining module is used for determining the processing mode of the first image under the condition that the first information meets a first condition;
the first processing module is used for processing the first image through a first processing component of the electronic equipment based on the processing mode to obtain a second image, wherein the resolution of the second image is lower than that of the first image;
the second processing module is used for processing the second image through a second processing component of the electronic equipment to obtain a third image;
and the third processing module is used for processing the third image through the first processing component of the electronic equipment to obtain a fourth image, wherein the resolution of the fourth image is the same as that of the first image.
8. The apparatus as recited in claim 7, further comprising:
and a fourth processing module, configured to convert, by the first processing component, the first image into a YUV format.
9. The apparatus of claim 7, wherein the first processing module is further to:
when the processing mode is compression image, the first image is compressed by the first processing component according to a first proportion, and the second image is obtained, wherein the first proportion corresponds to the first information; or,
and when the processing mode is changing the image format, the first processing component adjusts the first image according to a first bit depth to obtain the second image, wherein the first bit depth corresponds to the first information.
10. The apparatus of claim 7, wherein the second processing module comprises:
an acquisition sub-module for acquiring an image processing policy of the first image, the image processing policy comprising one or more image processing algorithms;
and the processing sub-module is used for executing the one or more image processing algorithms on the second image through the second processing component to obtain the third image.
11. The apparatus of claim 7, wherein the third processing module is further configured to:
recovering, by the first processing component, the third image according to a second scale to obtain the fourth image, where the second scale and the first scale are reciprocal; or,
and under the condition that the second image is an image with an image format changed, the third image is adjusted according to a second bit depth by the first processing component to obtain the fourth image, wherein the second bit depth is the original bit depth of the first image.
12. The apparatus of claim 7, wherein the first information comprises at least one of:
the real-time temperature of the electronic device;
and the real-time power consumption of the electronic equipment.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the image processing method of any of claims 1-6.
14. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any of claims 1-6.
CN202311267809.6A 2023-09-27 2023-09-27 Image processing method and device Pending CN117278687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311267809.6A CN117278687A (en) 2023-09-27 2023-09-27 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311267809.6A CN117278687A (en) 2023-09-27 2023-09-27 Image processing method and device

Publications (1)

Publication Number Publication Date
CN117278687A true CN117278687A (en) 2023-12-22

Family

ID=89215719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311267809.6A Pending CN117278687A (en) 2023-09-27 2023-09-27 Image processing method and device

Country Status (1)

Country Link
CN (1) CN117278687A (en)

Similar Documents

Publication Publication Date Title
CN112770059B (en) Photographing method and device and electronic equipment
US20230300475A1 (en) Image processing method and apparatus, and electronic device
CN112367486B (en) Video processing method and device
CN114268707A (en) Image processing method and device and electronic equipment
CN112437237A (en) Shooting method and device
CN112508820A (en) Image processing method and device and electronic equipment
CN114299014A (en) Image processing architecture, method, electronic device and storage medium
CN117278687A (en) Image processing method and device
CN113438400B (en) Image acquisition method, image acquisition device and electronic equipment
CN114298889A (en) Image processing circuit and image processing method
CN114285978A (en) Video processing method, video processing device and electronic equipment
CN114339072A (en) Image processing circuit, method and electronic device
CN114285956A (en) Video sharing circuit, method and device and electronic equipment
CN114302026B (en) Noise reduction method, device, electronic equipment and readable storage medium
CN112367470B (en) Image processing method and device and electronic equipment
CN113901009A (en) Multimedia file processing method and device, electronic equipment and medium
CN117336612A (en) Video image processing circuit, method and electronic equipment
CN117271090A (en) Image processing method, device, electronic equipment and medium
CN116419044A (en) Media data processing unit, method and electronic equipment
CN115514860A (en) Dynamic frame rate compensation method, image processing circuit and electronic device
CN115633251A (en) Image processing method, circuit and electronic equipment
CN117278689A (en) Image processing method and electronic equipment
CN114302026A (en) Noise reduction method and device, electronic equipment and readable storage medium
CN117278688A (en) Image processing circuit, method and device, chip, electronic equipment and main control chip
CN117336611A (en) Video image processing circuit, method and electronic equipment

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