CN117750127A - Image processing method, device, equipment and storage medium - Google Patents

Image processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117750127A
CN117750127A CN202211653055.3A CN202211653055A CN117750127A CN 117750127 A CN117750127 A CN 117750127A CN 202211653055 A CN202211653055 A CN 202211653055A CN 117750127 A CN117750127 A CN 117750127A
Authority
CN
China
Prior art keywords
image
target
data stream
processed
image processing
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
CN202211653055.3A
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.)
Xiaohongshu Technology Co ltd
Original Assignee
Xiaohongshu Technology 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 Xiaohongshu Technology Co ltd filed Critical Xiaohongshu Technology Co ltd
Priority to CN202211653055.3A priority Critical patent/CN117750127A/en
Publication of CN117750127A publication Critical patent/CN117750127A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the application discloses an image processing method, an image processing device, image processing equipment and a storage medium, wherein the method comprises the following steps: acquiring an image to be processed, and converting the image to be processed into a target image in a specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.

Description

Image processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to an image processing method, apparatus, device, and storage medium.
Background
When the network environment is poor or the image is large, the image can be displayed in two modes: standard display and progressive display, wherein the standard display refers to loading display of images according to the sequence from top to bottom, the progressive display refers to firstly displaying the fuzzy outline of the whole image, then gradually loading until displaying a clearer image, however, the current progressive image display mode has lower image compression rate and can increase the picture-text bandwidth cost. Therefore, how to better display an image in a case where a network environment is poor or the image is large is important.
Disclosure of Invention
The embodiment of the application provides an image processing method, an image processing device, image processing equipment and a storage medium, which can better display progressive images under the condition of poor network environment or large images, and improve the display quality of the progressive images.
In a first aspect, an embodiment of the present application provides an image processing method, including:
acquiring an image to be processed, and converting the image to be processed into a target image in a specified format;
acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information;
respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image;
and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring an image to be processed and converting the image to be processed into a target image in a specified format;
a determining unit, configured to obtain image display task information of a terminal device, and determine a plurality of image processing requirement information according to the image display task information;
the encoding unit is used for respectively carrying out compression encoding processing on the target image according to the plurality of image processing requirement information to obtain an encoded data stream of the target image;
and the sending unit is used for sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
In a third aspect, an embodiment of the present application provides an image processing apparatus including: a processor and a memory, the processor being configured to perform the method according to the first aspect.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, where program instructions are stored, the program instructions when executed implement the method according to the first aspect.
The method and the device can acquire the image to be processed and convert the image to be processed into the target image in the specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an image processing system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an image processing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another image processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural view of an image processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an image processing apparatus provided in an 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 only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The application provides an image processing method which can be applied to a scene for displaying an image under the condition of poor network environment or large image. Determining a plurality of image processing requirement information by using the image display task information; respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. In this way progressive images can be better obtained.
The image processing method provided in the embodiment of the application can be applied to an image processing system, and in some embodiments, the image processing system includes an image processing device and a terminal device. In some embodiments, the image processing device may establish a communication connection with a terminal device. In some embodiments, the manner of communication connection may include, but is not limited to, wi-Fi, bluetooth, near field communication (Near Field Communication, NFC), etc. In some embodiments, the image processing device may be provided in the terminal device, or the image processing device may be an intelligent terminal or a server.
An image processing system according to an embodiment of the present application is schematically described below with reference to fig. 1. For example, referring to fig. 1, fig. 1 is a schematic structural diagram of an image processing system according to an embodiment of the present application. The image processing system includes: an image processing device 11 and a terminal device 12. In some embodiments, the image processing apparatus 11 and the terminal apparatus 12 may establish a communication connection through a wireless communication connection; in some scenarios, the image processing device 11 and the terminal device 12 may also establish a communication connection through a wired communication connection. In some embodiments, the terminal device 12 may include, but is not limited to, a smart terminal device such as a smart phone, tablet, notebook, desktop, in-vehicle smart terminal, smart watch, or the like.
The image processing apparatus 11 may acquire an image to be processed from the terminal apparatus 12, the image to be processed may be acquired by an image acquisition device (such as a camera) in the terminal apparatus 12, or the image to be processed may be input by a user through the terminal apparatus 12.
The image processing apparatus 11 may acquire an image to be processed and convert the image to be processed into a target image of a specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on a target image according to a plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image.
By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.
The image processing method provided in the embodiment of the present application is schematically described below with reference to the accompanying drawings.
Referring specifically to fig. 2, fig. 2 is a schematic flow chart of an image processing method provided in an embodiment of the present application, where the image processing method of the embodiment of the present application may be performed by an image processing apparatus, where the image processing apparatus is disposed in an image processing device, and a specific explanation of the image processing device is as described above.
S201: and acquiring an image to be processed, and converting the image to be processed into a target image in a specified format.
In the embodiment of the application, the image processing device may acquire the image to be processed and convert the image to be processed into the target image in the specified format.
In one embodiment, the image processing apparatus may acquire the format of the image to be processed and compare the format of the image to be processed with the specified format before converting the image to be processed into the target image of the specified format; if the comparison result shows that the format of the image to be processed is not matched with the appointed format, carrying out format conversion processing on the image to be processed, and converting the image to be processed into a target image with the appointed format. The specified format may include, but is not limited to, YUV format.
By converting the format of the image to be processed, the problem that the format of the image to be processed cannot be displayed progressively when the format of the image to be processed cannot be displayed progressively is solved.
S202: and acquiring image display task information of the terminal equipment, and determining a plurality of pieces of image processing requirement information according to the image display task information.
In the embodiment of the application, the image processing device may acquire the image display task information of the terminal device, and determine a plurality of pieces of image processing requirement information according to the image display task information.
In one embodiment, the image processing apparatus may acquire size information of an image display in the terminal apparatus when determining a plurality of image processing requirement information based on the image display task information; and determining a plurality of target resolutions corresponding to the size information displayed by the image in the terminal equipment according to the corresponding relation between the preset size information and the resolutions, and determining the target resolutions as a plurality of image processing requirement information. In some embodiments, the corresponding relationship between the preset size information and the resolution may be predefined according to an image display task of the terminal device, for example, a plurality of resolutions may be predefined according to a size of an image displayed on the terminal device, where each resolution is different. In some embodiments, the plurality of resolutions includes a plurality of resolutions from low to high.
S203: and respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image.
In this embodiment of the present application, the image processing apparatus may perform compression encoding processing on the target image according to the plurality of image processing requirement information, to obtain an encoded data stream of the target image. Wherein the encoded data stream is a bit stream.
In one embodiment, when the image processing apparatus performs compression encoding processing on the target image according to the plurality of image processing requirement information, respectively, to obtain an encoded data stream of the target image, the image processing apparatus may acquire a plurality of image frames included in the target image, and determine a target resolution of each of the plurality of image frames according to the plurality of target resolutions; and carrying out compression coding processing on each image frame according to the target resolution of each image frame to obtain the coded stream data of the target image.
The image processing device performs compression coding processing on each image frame according to the target resolution of each image frame, and when obtaining the coded stream data of the target image, the image processing device can determine target coding parameters corresponding to the target resolution of each image frame according to the target resolution of each image frame; and respectively carrying out compression coding processing on each image frame according to the target coding parameters of each image frame to obtain a coded data stream of the target image.
In one embodiment, the target encoding parameter comprises a quantization parameter; the image processing device respectively carries out compression coding processing on each image frame according to the target coding parameters of each image frame, and when the coded data stream of the target image is obtained, the size of each image frame can be respectively adjusted according to the quantization parameters of each image frame; and carrying out compression coding processing on each image frame after the size is adjusted to obtain a coded data stream of the target image. Wherein the size of the image frame includes the length and width of the image frame.
In another embodiment, the target encoding parameter comprises a quality scaling factor; the image processing device respectively carries out compression coding processing on each image frame according to the target coding parameters of each image frame, and when the coded data stream of the target image is obtained, the image processing device can respectively adjust the pixels of each image frame according to the quality scaling coefficient of each image frame; and carrying out compression coding processing on each image frame after the pixel adjustment to obtain a coded data stream of the target image.
According to the embodiment of the application, when each image frame of the target image is subjected to compression coding according to each target resolution in a plurality of target resolutions, the VP8/VP9/H.265 coding standard is adopted, and the problem that progressive image compression coding cannot be performed under the VP8/VP9/H.265 coding standard is solved.
The image to be processed after format conversion is subjected to compression coding processing by utilizing a plurality of target resolutions, so that clear progressive data streams are obtained, and terminal equipment is further facilitated to decode and render clear progressive images.
S204: and sending the coded data stream to terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
In the embodiment of the application, the image processing device may send the encoded data stream to the terminal device, so that the terminal device decodes and renders the encoded data stream according to the order from small resolution to large resolution, to obtain the progressive image.
The application embodiment can acquire an image to be processed and convert the image to be processed into a target image in a specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on a target image according to a plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.
Referring specifically to fig. 3, fig. 3 is a flowchart of another image processing method provided in an embodiment of the present application, where the image processing method of the embodiment of the present application may be performed by an image processing apparatus, where the image processing apparatus is disposed in an image processing device, and a specific explanation of the image processing device is as described above. Specifically, the method of the embodiment of the application comprises the following steps.
S301: and acquiring an image to be processed, and converting the image to be processed into a target image in a specified format.
S302: and acquiring image display task information of the terminal equipment, and determining a plurality of pieces of image processing requirement information according to the image display task information.
S303: and determining a plurality of target resolutions according to the plurality of image processing requirement information, and respectively carrying out compression coding processing on the target image according to the plurality of target resolutions to obtain a coded data stream of the target image.
In this embodiment of the present application, the image processing apparatus may determine a plurality of target resolutions according to a plurality of image processing requirement information, and perform compression encoding processing on the target image according to the plurality of target resolutions, to obtain an encoded data stream of the target image.
In one embodiment, when the image processing device performs compression encoding processing on the target image according to a plurality of target resolutions to obtain an encoded data stream of the target image, the image processing device may acquire a plurality of image frames included in the target image, and determine a target resolution corresponding to each image frame according to an image processing requirement, where one target resolution corresponds to one or more image frames, and then perform compression encoding processing on each image frame according to the target resolution corresponding to each image frame to obtain encoded stream data of the target image.
In one embodiment, when the image processing device performs compression encoding processing on the target image according to multiple target resolutions to obtain an encoded data stream of the target image, multiple image frames included in the target image may be acquired, and the target resolution corresponding to each image frame may be determined according to an image processing requirement, where one image frame corresponds to the multiple target resolutions, and then multiple compression encoding processing is performed on each image frame according to each resolution corresponding to each image frame, so as to obtain encoded stream data of each image frame, and further determine encoded stream data of all image frames as encoded stream data of the target image.
S304: and sending the coded data stream to terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
In the embodiment of the application, the image processing device may send the encoded data stream to the terminal device, so that the terminal device decodes and renders the encoded data stream according to the order from small resolution to large resolution, to obtain the progressive image.
According to the method, the device and the system, the image to be processed is transcoded into the target image in the appointed format, a plurality of target resolutions are determined according to the image display requirement, each image frame of the target image is respectively subjected to compression coding by utilizing each target resolution, the coded data stream of the target image is obtained, and the coded data stream is sent to the terminal device, so that the terminal device decodes and renders the coded data stream to obtain the progressively displayed image. The method solves the problem that the format of the image to be processed cannot be displayed progressively by converting the format of the image to be processed, and is beneficial to obtaining clear progressive data stream and further beneficial to decoding the terminal equipment to obtain clear image by performing compression coding processing on the image after format conversion by utilizing a plurality of resolutions.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application. Specifically, the apparatus is provided in an image processing device, and the apparatus includes: acquisition unit 401, determination unit 402, encoding unit 403, and transmission unit 404;
an acquiring unit 401, configured to acquire an image to be processed, and convert the image to be processed into a target image in a specified format;
a determining unit 402, configured to obtain image display task information of a terminal device, and determine a plurality of image processing requirement information according to the image display task information;
an encoding unit 403, configured to perform compression encoding processing on the target image according to the plurality of image processing requirement information, to obtain an encoded data stream of the target image;
and the sending unit 404 is configured to send the encoded data stream to the terminal device, so that the terminal device decodes and renders the encoded data stream in order from small to large resolution, and a progressive image is obtained.
Further, before the obtaining unit 401 converts the image to be processed into the target image in the specified format, the obtaining unit is further configured to:
acquiring the format of the image to be processed, and comparing the format of the image to be processed with a designated format;
if the comparison result shows that the format of the image to be processed is not matched with the appointed format, performing format conversion processing on the image to be processed, and converting the image to be processed into the target image with the appointed format.
Further, when the determining unit 402 determines a plurality of pieces of image processing requirement information according to the image display task information, the determining unit is specifically configured to:
acquiring size information of image display in the terminal equipment;
and determining a plurality of target resolutions corresponding to the size information displayed by the image in the terminal equipment according to the corresponding relation between the preset size information and the resolutions, and determining the target resolutions as the image processing requirement information.
Further, the encoding unit 403 performs compression encoding processing on the target image according to the plurality of image processing requirement information, so as to obtain an encoded data stream of the target image, which is specifically configured to:
acquiring a plurality of image frames included in the target image, and determining a target resolution of each of the plurality of image frames according to the plurality of target resolutions;
and carrying out compression coding processing on each image frame according to the target resolution of each image frame to obtain the coded stream data of the target image.
Further, the encoding unit 403 performs compression encoding processing on each image frame according to the target resolution of each image frame, so as to obtain encoded stream data of the target image, which is specifically configured to:
determining a target coding parameter corresponding to the target resolution of each image frame according to the target resolution of each image frame;
and respectively carrying out compression coding processing on each image frame according to the target coding parameters of each image frame to obtain a coded data stream of the target image.
Further, the target encoding parameters include quantization parameters; the encoding unit 403 performs compression encoding processing on each image frame according to the target encoding parameter of each image frame, so as to obtain an encoded data stream of the target image, which is specifically configured to:
respectively adjusting the size of each image frame according to the quantization parameter of each image frame;
and carrying out compression coding processing on each image frame after the size is adjusted to obtain a coded data stream of the target image.
Further, the encoding parameters include a quality scaling factor; the encoding unit 403 performs compression encoding processing on each image frame according to the target encoding parameter of each image frame, so as to obtain an encoded data stream of the target image, which is specifically configured to:
respectively adjusting pixels of each image frame according to the quality scaling coefficient of each image frame;
and carrying out compression coding processing on each image frame after the pixel adjustment to obtain a coded data stream of the target image.
The embodiment of the application can acquire the image to be processed and convert the image to be processed into the target image with the specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on a target image according to a plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application. Specifically, the image processing apparatus includes: memory 501, and processor 502.
In an embodiment, the image processing device further comprises a data interface 503, the data interface 503 being for transferring data information between the image processing device and other devices.
The memory 501 may include volatile memory (volatile memory); memory 501 may also include non-volatile memory (nonvolatile memory); memory 501 may also include a combination of the above types of memory. The processor 502 may be a central processing unit (central processing unit, CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), or any combination thereof.
The memory 501 is configured to store a program, and the processor 502 may call the program stored in the memory 501 to perform the following steps:
acquiring an image to be processed, and converting the image to be processed into a target image in a specified format;
acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information;
respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image;
and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
Further, before the processor 502 converts the image to be processed into the target image in the specified format, the processor is further configured to:
acquiring the format of the image to be processed, and comparing the format of the image to be processed with a designated format;
if the comparison result shows that the format of the image to be processed is not matched with the appointed format, performing format conversion processing on the image to be processed, and converting the image to be processed into the target image with the appointed format.
Further, when the processor 502 determines a plurality of image processing requirement information according to the image display task information, the processor is specifically configured to:
acquiring size information of image display in the terminal equipment;
and determining a plurality of target resolutions corresponding to the size information displayed by the image in the terminal equipment according to the corresponding relation between the preset size information and the resolutions, and determining the target resolutions as the image processing requirement information.
Further, when the processor 502 performs compression encoding processing on the target image according to the plurality of image processing requirement information to obtain an encoded data stream of the target image, the processor is specifically configured to:
acquiring a plurality of image frames included in the target image, and determining a target resolution of each of the plurality of image frames according to the plurality of target resolutions;
and carrying out compression coding processing on each image frame according to the target resolution of each image frame to obtain the coded stream data of the target image.
Further, when the processor 502 performs compression encoding processing on each image frame according to the target resolution of each image frame to obtain encoded stream data of the target image, the processor is specifically configured to:
determining a target coding parameter corresponding to the target resolution of each image frame according to the target resolution of each image frame;
and respectively carrying out compression coding processing on each image frame according to the target coding parameters of each image frame to obtain a coded data stream of the target image.
Further, the target encoding parameters include quantization parameters; the processor 502 performs compression encoding processing on each image frame according to the target encoding parameter of each image frame, so as to obtain an encoded data stream of the target image, which is specifically configured to:
respectively adjusting the size of each image frame according to the quantization parameter of each image frame;
and carrying out compression coding processing on each image frame after the size is adjusted to obtain a coded data stream of the target image.
Further, the encoding parameters include a quality scaling factor; the processor 502 performs compression encoding processing on each image frame according to the target encoding parameter of each image frame, so as to obtain an encoded data stream of the target image, which is specifically configured to:
respectively adjusting pixels of each image frame according to the quality scaling coefficient of each image frame;
and carrying out compression coding processing on each image frame after the pixel adjustment to obtain a coded data stream of the target image.
The embodiment of the application can acquire the image to be processed and convert the image to be processed into the target image with the specified format; acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information; respectively carrying out compression coding processing on a target image according to a plurality of image processing requirement information to obtain a coded data stream of the target image; and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain the progressive image. By the method, the progressive image can be better displayed under the condition of poor network environment or large image, and the display quality of the progressive image is improved.
Embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements a method described in an embodiment corresponding to fig. 2 or fig. 3 of the present application, and may also implement an apparatus corresponding to an embodiment corresponding to the present application described in fig. 4, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the device. Further, the computer readable storage medium may also include both internal storage units and external storage devices of the device. The computer-readable storage medium is for storing the computer program and other programs and data required by the image processing apparatus. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the image processing apparatus reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the image processing apparatus performs the methods provided in the above-described various embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present application, and it is not intended to limit the scope of the claims, and those skilled in the art will understand that all or a portion of the above-described embodiments may be implemented and equivalents may be substituted for elements thereof, which are included in the scope of the present invention.

Claims (10)

1. An image processing method, comprising:
acquiring an image to be processed, and converting the image to be processed into a target image in a specified format;
acquiring image display task information of terminal equipment, and determining a plurality of image processing requirement information according to the image display task information;
respectively carrying out compression coding processing on the target image according to the plurality of image processing requirement information to obtain a coded data stream of the target image;
and sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
2. The method according to claim 1, wherein before converting the image to be processed into the target image in the specified format, further comprising:
acquiring the format of the image to be processed, and comparing the format of the image to be processed with a designated format;
if the comparison result shows that the format of the image to be processed is not matched with the appointed format, performing format conversion processing on the image to be processed, and converting the image to be processed into the target image with the appointed format.
3. The method of claim 1, wherein determining a plurality of image processing requirement information from the image display task information comprises:
acquiring size information of image display in the terminal equipment;
and determining a plurality of target resolutions corresponding to the size information displayed by the image in the terminal equipment according to the corresponding relation between the preset size information and the resolutions, and determining the target resolutions as the image processing requirement information.
4. A method according to claim 3, wherein the compressing and encoding the target image according to the plurality of image processing requirement information respectively to obtain an encoded data stream of the target image includes:
acquiring a plurality of image frames included in the target image, and determining a target resolution of each of the plurality of image frames according to the plurality of target resolutions;
and carrying out compression coding processing on each image frame according to the target resolution of each image frame to obtain the coded stream data of the target image.
5. The method according to claim 4, wherein said compression encoding each image frame according to the target resolution of said each image frame to obtain encoded stream data of said target image comprises:
determining a target coding parameter corresponding to the target resolution of each image frame according to the target resolution of each image frame;
and respectively carrying out compression coding processing on each image frame according to the target coding parameters of each image frame to obtain a coded data stream of the target image.
6. The method of claim 5, wherein the target encoding parameters comprise quantization parameters; the compressing and encoding process is performed on each image frame according to the target encoding parameters of each image frame, so as to obtain an encoded data stream of the target image, including:
respectively adjusting the size of each image frame according to the quantization parameter of each image frame;
and carrying out compression coding processing on each image frame after the size is adjusted to obtain a coded data stream of the target image.
7. The method of claim 5, wherein the encoding parameters comprise a quality scaling factor; the compressing and encoding process is performed on each image frame according to the target encoding parameters of each image frame, so as to obtain an encoded data stream of the target image, including:
respectively adjusting pixels of each image frame according to the quality scaling coefficient of each image frame;
and carrying out compression coding processing on each image frame after the pixel adjustment to obtain a coded data stream of the target image.
8. An image processing apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring an image to be processed and converting the image to be processed into a target image in a specified format;
a determining unit, configured to obtain image display task information of a terminal device, and determine a plurality of image processing requirement information according to the image display task information;
the encoding unit is used for respectively carrying out compression encoding processing on the target image according to the plurality of image processing requirement information to obtain an encoded data stream of the target image;
and the sending unit is used for sending the coded data stream to the terminal equipment so that the terminal equipment decodes and renders the coded data stream according to the sequence from small resolution to large resolution to obtain a progressive image.
9. A computer device comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-8.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein program instructions which, when executed, implement the method according to any of claims 1-8.
CN202211653055.3A 2022-12-21 2022-12-21 Image processing method, device, equipment and storage medium Pending CN117750127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211653055.3A CN117750127A (en) 2022-12-21 2022-12-21 Image processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211653055.3A CN117750127A (en) 2022-12-21 2022-12-21 Image processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117750127A true CN117750127A (en) 2024-03-22

Family

ID=90276348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211653055.3A Pending CN117750127A (en) 2022-12-21 2022-12-21 Image processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117750127A (en)

Similar Documents

Publication Publication Date Title
CN108141505B (en) Compression and decompression method for high bit depth medical gray level image
JP2022050585A (en) Method and device for chroma prediction
KR20170118463A (en) Encoding apparatus, decoding apparatus and method thereof
KR102500761B1 (en) Apparatus and method for performing artificial intelligence encoding and artificial intelligence decoding of image
CN111510739B (en) Video transmission method and device
KR20150019163A (en) Method for selecting resolution with minimum distortion value and devices performing the method
TWI626841B (en) Adaptive processing of video streams with reduced color resolution
CN110572673B (en) Video encoding and decoding method and device, storage medium and electronic device
CN114125448B (en) Video coding method, decoding method and related devices
WO2024078066A1 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and device
CN110572677B (en) Video encoding and decoding method and device, storage medium and electronic device
US20150023609A1 (en) Method and apparatus for decoding a progressive jpeg image
CN110582022B (en) Video encoding and decoding method and device and storage medium
CN110677676B (en) Video encoding method and apparatus, video decoding method and apparatus, and storage medium
US10097829B2 (en) System and method for compression of digital content
EP3063937B1 (en) Chroma down-conversion and up-conversion processing
CN109379591B (en) Image transcoding method, electronic device and computer readable storage medium
CN112995668A (en) Video processing method, device and terminal, and computer readable storage medium
CN117750127A (en) Image processing method, device, equipment and storage medium
CN108933945B (en) GIF picture compression method, device and storage medium
EP4264946A1 (en) Compression of temporal data by using geometry-based point cloud compression
EP3065127A1 (en) Method and device for processing image data
CN114079823A (en) Video rendering method, device, equipment and medium based on Flutter
CN110636295B (en) Video encoding and decoding method and device, storage medium and electronic device
EP2974315A1 (en) Integrated spatial downsampling of video data

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