CN111491169B - Digital image compression method, device, equipment and medium - Google Patents

Digital image compression method, device, equipment and medium Download PDF

Info

Publication number
CN111491169B
CN111491169B CN202010321804.7A CN202010321804A CN111491169B CN 111491169 B CN111491169 B CN 111491169B CN 202010321804 A CN202010321804 A CN 202010321804A CN 111491169 B CN111491169 B CN 111491169B
Authority
CN
China
Prior art keywords
target
image data
compression
determining
image
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.)
Active
Application number
CN202010321804.7A
Other languages
Chinese (zh)
Other versions
CN111491169A (en
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.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics 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 Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN202010321804.7A priority Critical patent/CN111491169B/en
Publication of CN111491169A publication Critical patent/CN111491169A/en
Application granted granted Critical
Publication of CN111491169B publication Critical patent/CN111491169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The application discloses a digital image compression method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring a target digital image to be compressed; determining target parameters using image data in the target digital image; determining a target compression mode of the image data according to the target parameter and a preset compression rule; and compressing the image data according to the target compression mode so as to compress the target digital image. Therefore, the digital image can be compressed, the transmission bandwidth is reduced, the storage space is saved, the image processing efficiency is improved, and the compression efficiency of the digital image can be improved and the image processing efficiency is further improved by adopting the same compression method for each image data corresponding to the target parameter.

Description

Digital image compression method, device, equipment and medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a medium for compressing a digital image.
Background
In the existing image transmission process, from the acquisition of the related image in the sensor to the display on the display screen, a plurality of operations such as image transmission, processing and the like are required in the whole process, and because the data volume of the original image is large, the direct operation on the original image occupies a large amount of system bandwidth and resources, reduces the image processing efficiency, so that the image needs to be correspondingly compressed first.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device, and a medium for compressing a digital image, which can compress the digital image, reduce transmission bandwidth, save storage space, and improve image processing efficiency. The specific scheme is as follows:
in a first aspect, the present application discloses a digital image compression method, comprising:
acquiring a target digital image to be compressed;
determining target parameters using image data in the target digital image;
determining a target compression mode of the image data according to the target parameter and a preset compression rule;
and compressing the image data according to the target compression mode so as to compress the target digital image.
Optionally, after compressing the target digital image data according to the target compression method so as to compress the target digital image, the method further includes:
and storing the compressed image data and the target compression mode according to a preset storage format.
Optionally, the storing the compressed image data and the target compression manner according to a preset storage format includes:
and storing the compressed image data, and writing the target compression mode corresponding to the compressed image data.
Optionally, the determining the target parameter by using the image data in the target digital image includes:
grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group;
and determining target parameters corresponding to the target image data groups by using the image data in the target image data groups.
Optionally, the grouping the image data in the target digital image according to a preset image data quantity threshold to obtain a target image data group includes:
dividing every N continuous image data of the target digital image from the first image data into a group to obtain a target image data group, wherein N is the preset image data quantity threshold value, and N is a positive integer greater than or equal to 1.
Optionally, the determining, by using image data in each target image data group, a target parameter corresponding to each target image data group includes:
and taking or value of the image data in each target image data group, and determining the target parameters corresponding to each target image data group.
Optionally, the determining a target compression mode of the image data according to the target parameter and a preset compression rule includes:
determining a highest non-zero bit in the target parameter;
and determining a target compression mode of the image data according to the highest nonzero digit in the target parameters and a preset compression rule.
In a second aspect, the present application discloses a digital image compression apparatus comprising:
the image acquisition module is used for acquiring a target digital image to be compressed;
a parameter determination module for determining a target parameter using image data in the target digital image;
the compression mode determining module is used for determining a target compression mode of the image data according to the target parameter and a preset compression rule;
and the data compression module is used for compressing the image data according to the target compression mode so as to compress the target digital image.
In a third aspect, the present application discloses a digital image compression apparatus comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the digital image compression method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the digital image compression method disclosed above.
Therefore, the target digital image to be compressed is obtained firstly; determining target parameters by using image data in the target digital image; then determining a target compression mode of the image data according to the target parameter and a preset compression rule; the image data is then compressed in the target compression manner to compress the target digital image. The digital image is compressed, the transmission bandwidth is reduced, the storage space is saved, the image processing efficiency is improved, and the compression efficiency of the digital image can be improved and the image processing efficiency is further improved by adopting the same compression method for each image data corresponding to the target parameter.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a digital image compression method disclosed in the present application;
FIG. 2 is a flow chart of a specific digital image compression method disclosed in the present application;
FIG. 3 is a graph of image data value acquisition as disclosed herein;
FIG. 4 is a diagram of an image compression output disclosed herein;
FIG. 5 is a graph of image data compression errors disclosed herein;
FIG. 6 is a schematic diagram of a digital image compression apparatus according to the present disclosure;
FIG. 7 is a block diagram of a digital image compression apparatus disclosed in the present application;
fig. 8 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an embodiment of the present application discloses a digital image compression method, including:
step S11: and acquiring a target digital image to be compressed.
In a specific implementation process, a target digital image to be compressed, which may be an image acquired by a sensor, needs to be acquired first to perform a subsequent compression operation on the target digital image.
Step S12: determining a target parameter using image data in the target digital image.
It is understood that after the target digital image is acquired, the image data in the target digital image is also used to determine the target parameters, wherein one image data in the target digital image comprises n bits of data. For example, one image data of the images acquired by most image acquisition sensors includes 14bit data. And determining target parameters by using the image data in the target digital image so as to determine a compression mode corresponding to the image data according to the target parameters.
Step S13: and determining a target compression mode of the image data according to the target parameters and a preset compression rule.
In a specific implementation process, after the target parameter is determined, a target compression mode corresponding to the image data is further determined according to the target parameter and a preset compression rule. And the preset compression rule determines which data in the image data before compression are reserved in the image data after compression. The target compression method needs to minimize an error between the compressed image data and the pre-compressed image data in all compression methods in the preset compression rule.
Step S14: and compressing the image data according to the target compression mode so as to compress the target digital image.
It is understood that after the target compression mode is determined, the image data needs to be compressed according to the target compression mode so as to compress the target digital image. And compressing the image data corresponding to the target compression mode by adopting the target compression mode, so that the compression time of the digital image can be saved, and the compression efficiency of the digital image can be improved.
In a specific implementation process, after compressing the image data according to the target compression method so as to compress the target digital image, the method further includes: and storing the compressed image data and the target compression mode according to a preset storage format.
Therefore, the method comprises the steps of firstly obtaining a target digital image to be compressed; determining target parameters by using image data in the target digital image; then determining a target compression mode of the image data according to the target parameters and a preset compression rule; the image data is then compressed in the target compression manner to compress the target digital image. The digital image is compressed, the transmission bandwidth is reduced, the storage space is saved, the image processing efficiency is improved, and the compression efficiency of the digital image can be improved and the image processing efficiency is further improved by adopting the same compression method for each image data corresponding to the target parameter.
Referring to fig. 2, an embodiment of the present application discloses a specific digital image compression method, including:
step S21: and acquiring a target digital image to be compressed.
Step S22: and grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group.
It will be appreciated that after the target image data is acquired, it is necessary to determine target parameters using the image data in the target digital image. Wherein the determining of the target parameter using the image data in the target digital image comprises: grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group; and determining target parameters corresponding to the target image data groups by using the image data in the target image data groups.
In a specific implementation process, the grouping image data in the target digital image according to a preset image data threshold to obtain a target image data group includes: dividing every N continuous image data of the target digital image from the first image data into a group to obtain a target image data group, wherein N is the preset image data quantity threshold, N is a positive integer greater than or equal to 1, and N is generally an even number. Specifically, every N consecutive image data of the target digital image from the first image data are grouped into a group, and a target image data group is obtained. After the grouping is finished, the target digital image comprises a plurality of target image data groups. Since all image data in one target image data group are compressed by the same compression method, the correlation between the image data needs to be utilized, and in order to ensure the compression efficiency, 2 ≦ N ≦ 8 is generally adopted, and preferably N =4. If the number of image data in the last target image data group is less than N, the number of image data in the last target image data group is actually divided into one target image data group.
Step S23: and determining target parameters corresponding to the target image data groups by using the image data in the target image data groups.
After the target image data groups are obtained, determining target parameters corresponding to the target image data groups by using image data in the target image data groups, so as to compress the image data in the target image data groups according to the target parameters and preset compression rules. The determining the target parameters corresponding to each target image data group by using the image data in each target image data group includes: and taking or evaluating the image data in each target image data group, and determining the target parameters corresponding to each target image data group. Specifically, for any target image data set, determining a target parameter corresponding to the target image data set includes: and taking or value between each image data in the target image data group to obtain a target parameter corresponding to the target image data group.
Step S24: determining a highest non-zero bit of the target parameters.
After the target parameters corresponding to each target image data set are determined, the highest nonzero digit of the target parameters needs to be determined. Specifically, after the target parameter is obtained, which bit the highest nonzero digit in the target parameter is determined.
Step S25: and determining a target compression mode of the image data according to the highest nonzero digit in the target parameters and a preset compression rule.
In a specific implementation process, after determining the highest nonzero digit of the target parameter, a target compression mode corresponding to the image data needs to be determined according to the highest nonzero digit of the target parameter and a preset compression rule, so as to compress the image data.
Step S26: and compressing the image data according to the target compression mode so as to compress the target digital image.
Step S27: and storing the compressed image data and the target compression mode according to a preset storage format.
After the target image data is compressed, the method further comprises the following steps: and storing the compressed image data and the target compression mode according to a preset storage format. The storing the compressed image data and the target compression mode according to the preset storage format comprises: and storing the compressed image data, and writing the target compression mode corresponding to the compressed image data. In the process of storing compressed image data and then writing the compressed image data into the target compression mode corresponding to the compressed image data, byte alignment with a storage space is also required. For example, 4 image data are used as a target image data group, each image data before compression includes 14-bit data for compression, 4-bit data are obtained after compression, the 4-bit data are spliced, a 4-bit target compression mode is stored behind the spliced data, and 32-bit data are obtained and can be aligned with 4 bytes of a storage space.
The principle of compressing the corresponding image data by the highest nonzero digit in the target parameter and the preset compression rule is discussed by way of example. Assuming that N is 4, each image data includes 14bit data, and the preset compression rule is:
Figure BDA0002461704480000071
wherein y _ comp represents the image data after compression, y [ i +6:i ] represents the data from the i-th to the i + 6-th bit of the image data before compression, and x [ j ] represents the data on the jbit of the target parameter. Values of 4 image data A, B, C, D are shown in fig. 3, a target parameter x =11111111111111 is obtained by taking or obtaining a value for A, B, C, D, and output results after compression of A, B, C, D4 image data are shown in fig. 4 according to the values of the target parameter, wherein the compression MODE is marked as MODE0-MODE 7. According to the target parameter and the preset compression rule, it is determined that the target compression mode is mode0, that is, x [13] =1 of the target parameter x, and according to the preset compression rule, the target compression mode is y _ comp = y [13 ]. Correspondingly, in the case of values of a-D in fig. 3, the output result is the result in the Mode0 Mode in fig. 4. Next, the error of each image data after compression is calculated, for the image data a, the compressed image data a is a _ comp = a [13] =0x7B, the lower 7 bits during compression are supplemented to' B1000000 during decompression, the decompressed image data is a _ decomp = a [13] =0x3dc0, the error is a _ diff =0x2e, B _ diff =0x3d, C \\\ diff =0xb, D \\ diff =0x3e can be obtained in the same way, the total error of 4 image data is a _ dif + B _ dif + C _ dif + D _ dif =0xb4, similarly, the compression MODE error under each compression MODE can be calculated as shown in fig. 5, the total error of 4 image data under MODE0 can be obtained, so the highest nonzero bit in the target parameter and the compression rule in the target image data group can be determined by using the preset compression MODE, and the target image data in the target compression MODE can be compressed. Then 4 pieces of compressed image data are spliced and stored,
pack [31 ] = { a _ comp [13], B _ comp [ 13. At decompression time, the compressed image data is decompressed according to the compression mode stored in pack [3:0 ].
Referring to fig. 6, an embodiment of the present application discloses a digital image compression apparatus, including:
the image acquisition module 11 is used for acquiring a target digital image to be compressed;
a parameter determination module 12 for determining a target parameter using image data in the target digital image;
a compression mode determining module 13, configured to determine a target compression mode of the image data according to the target parameter and a preset compression rule;
and the data compression module 14 is configured to compress the image data according to the target compression manner, so as to compress the target digital image.
Therefore, the method comprises the steps of firstly obtaining a target digital image to be compressed; determining target parameters by using image data in the target digital image; then determining a target compression mode of the image data according to the target parameter and a preset compression rule; and then compressing the image data according to the target compression mode so as to compress the target digital image. The digital image is compressed, the transmission bandwidth is reduced, the storage space is saved, the image processing efficiency is improved, and the compression efficiency of the digital image can be improved and the image processing efficiency is further improved by adopting the same compression method for each image data corresponding to the target parameter.
Further, the digital image compression apparatus further includes:
and the storage module is used for storing the compressed image data and the target compression mode according to a preset storage format.
Specifically, the storage module is specifically configured to store the compressed image data first, and then write the target compression mode corresponding to the compressed image data.
Further, the parameter determining module 12 specifically includes:
the data grouping unit is used for grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group;
and the parameter determining unit is used for determining the target parameters corresponding to the target image data groups by utilizing the image data in the target image data groups.
Specifically, the data grouping unit is specifically configured to group every N consecutive image data of the target digital image from a first image data into a group, so as to obtain a target image data group, where N is the preset image data number threshold, and N is a positive integer greater than or equal to 1.
The parameter determining unit is specifically configured to determine a target parameter corresponding to each target image data group by taking an or value of image data in each target image data group.
In a specific implementation process, the compression mode determining module 13 includes:
a non-zero bit determination unit for determining a highest non-zero bit of the target parameters;
and the compression mode determining unit is used for determining a target compression mode of the image data according to the highest nonzero digit in the target parameters and a preset compression rule.
Further, referring to fig. 7, an embodiment of the present application further discloses a digital image compression apparatus, including: a processor 21 and a memory 22.
Wherein the memory 22 is used for storing a computer program; the processor 21 is configured to execute the computer program to implement the digital image compression method disclosed in the foregoing embodiments.
For the specific process of the digital image compression method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, referring to fig. 8, a schematic structural diagram of an electronic device 20 provided in the embodiment of the present application is shown, where the electronic device may specifically include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
In general, the electronic device 20 in the present embodiment includes: a processor 21 and a memory 22.
The processor 21 may include one or more processing cores, such as a four-core processor, an eight-core processor, and so on. The processor 21 may be implemented by at least one hardware of a DSP (digital signal processing), an FPGA (field-programmable gate array), and a PLA (programmable logic array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (graphics processing unit) which is responsible for rendering and drawing images to be displayed on the display screen. In some embodiments, the processor 21 may include an AI (artificial intelligence) processor for processing computing operations related to machine learning.
Memory 22 may include one or more computer-readable storage media, which may be non-transitory. Memory 22 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 22 is at least used for storing the computer program 221, wherein after being loaded and executed by the processor 21, the computer program can realize the method steps executed by the electronic device side disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 22 may also include an operating system 222, data 223, and the like, and the storage may be transient storage or permanent storage. The operating system 222 may be Windows, unix, linux, etc. Data 223 may include a wide variety of data.
In some embodiments, the electronic device 20 may further include a display 23, an input/output interface 24, a communication interface 25, a sensor 26, a power supply 27, and a communication bus 28.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not limiting to electronic device 20 and may include more or fewer components than those shown.
Further, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, where the computer program implements the following steps when executed by a processor:
acquiring a target digital image to be compressed; determining target parameters using image data in the target digital image; determining a target compression mode of the image data according to the target parameter and a preset compression rule; and compressing the image data according to the target compression mode so as to compress the target digital image.
Therefore, the method comprises the steps of firstly obtaining a target digital image to be compressed; determining target parameters by using image data in the target digital image; then determining a target compression mode of the image data according to the target parameter and a preset compression rule; the image data is then compressed in the target compression manner to compress the target digital image. Therefore, the digital image can be compressed, the transmission bandwidth is reduced, the storage space is saved, the image processing efficiency is improved, and the compression efficiency of the digital image can be improved and the image processing efficiency is further improved by adopting the same compression method for each image data corresponding to the target parameter.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and storing the compressed image data and the target compression mode according to a preset storage format.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and storing the compressed image data, and writing the target compression mode corresponding to the compressed image data.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group; and determining target parameters corresponding to the target image data groups by using the image data in the target image data groups.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: dividing every N continuous image data of the target digital image from the first image data into a group to obtain a target image data group, wherein N is the preset image data quantity threshold value, and N is a positive integer greater than or equal to 1.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: and taking or value of the image data in each target image data group, and determining the target parameters corresponding to each target image data group.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps may be specifically implemented: determining a highest nonzero digit in the target parameter; and determining a target compression mode of the image data according to the highest nonzero digit in the target parameters and a preset compression rule.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a series of processes, methods, articles, or apparatus that comprises other elements does not include only those elements but may include other elements not expressly listed or inherent to such processes, methods, articles, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The digital image compression method, apparatus, device and medium provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A method of compressing a digital image, comprising:
acquiring a target digital image to be compressed;
determining target parameters using image data in the target digital image;
determining a target compression mode of the image data according to the target parameters and a preset compression rule;
compressing the image data according to the target compression mode so as to compress the target digital image;
the determining a target compression mode of the image data according to the target parameter and a preset compression rule includes:
determining a highest non-zero bit in the target parameter;
determining a target compression mode of the image data according to a highest nonzero digit in the target parameters and a preset compression rule;
the determining of the target parameter using the image data in the target digital image comprises:
grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group;
determining target parameters corresponding to the target image data groups by using the image data in the target image data groups;
the determining the target parameter corresponding to each target image data group by using the image data in each target image data group includes:
and taking or evaluating the image data in each target image data group, and determining the target parameters corresponding to each target image data group.
2. The method for compressing digital images according to claim 1, wherein after compressing said image data in said target compression mode to compress said target digital image, further comprising:
and storing the compressed image data and the target compression mode according to a preset storage format.
3. The digital image compression method of claim 2, wherein the storing the compressed image data and the target compression mode according to a preset storage format comprises:
and storing the compressed image data, and writing the target compression mode corresponding to the compressed image data.
4. The method of claim 1, wherein the grouping image data in the target digital image according to a predetermined threshold of image data amount to obtain a target image data set comprises:
dividing every N continuous image data of the target digital image from the first image data into a group to obtain a target image data group, wherein N is the preset image data quantity threshold value, and N is a positive integer greater than or equal to 1.
5. A digital image compression apparatus, comprising:
the image acquisition module is used for acquiring a target digital image to be compressed;
a parameter determination module for determining a target parameter using image data in the target digital image;
the compression mode determining module is used for determining a target compression mode of the image data according to the target parameter and a preset compression rule;
the data compression module is used for compressing the image data according to the target compression mode so as to compress the target digital image;
the determining a target compression mode of the image data according to the target parameter and a preset compression rule includes:
determining a highest non-zero bit in the target parameter;
determining a target compression mode of the image data according to a highest nonzero digit in the target parameters and a preset compression rule;
the determining of the target parameter using the image data in the target digital image comprises:
grouping the image data in the target digital image according to a preset image data quantity threshold value to obtain a target image data group;
determining a target parameter corresponding to each target image data group by using image data in each target image data group;
the determining the target parameter corresponding to each target image data group by using the image data in each target image data group includes:
and taking or value of the image data in each target image data group, and determining the target parameters corresponding to each target image data group.
6. A digital image compression apparatus, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor, configured to execute the computer program to implement the digital image compression method of any one of claims 1 to 4.
7. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the digital image compression method of any of claims 1 to 4.
CN202010321804.7A 2020-04-22 2020-04-22 Digital image compression method, device, equipment and medium Active CN111491169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010321804.7A CN111491169B (en) 2020-04-22 2020-04-22 Digital image compression method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010321804.7A CN111491169B (en) 2020-04-22 2020-04-22 Digital image compression method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111491169A CN111491169A (en) 2020-08-04
CN111491169B true CN111491169B (en) 2022-12-09

Family

ID=71798450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010321804.7A Active CN111491169B (en) 2020-04-22 2020-04-22 Digital image compression method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111491169B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862726B (en) * 2021-03-12 2023-11-10 湖南国科微电子股份有限公司 Image processing method, device and computer readable storage medium
CN113516724B (en) * 2021-07-13 2023-10-27 东软医疗系统股份有限公司 Image data transmission method and device
CN116996698A (en) * 2023-08-16 2023-11-03 武汉精臣智慧标识科技有限公司 Image lattice data compression method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9536045B1 (en) * 2015-03-16 2017-01-03 D.R. Systems, Inc. Dynamic digital image compression based on digital image characteristics
CN106651972B (en) * 2015-11-03 2020-03-27 杭州海康威视数字技术股份有限公司 Binary image coding and decoding methods and devices
CN105407352A (en) * 2015-11-23 2016-03-16 小米科技有限责任公司 Image compression method and device, and server
CN105721872A (en) * 2016-01-29 2016-06-29 广东欧珀移动通信有限公司 Image compression method, and terminal

Also Published As

Publication number Publication date
CN111491169A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN111491169B (en) Digital image compression method, device, equipment and medium
CN108364061B (en) Arithmetic device, arithmetic execution apparatus, and arithmetic execution method
WO2022062537A1 (en) Data compression method and apparatus, and computer-readable storage medium
US9478002B2 (en) Vertex parameter data compression
CN111079917B (en) Tensor data block access method and device
US10884744B2 (en) System and method of loop vectorization by compressing indices and data elements from iterations based on a control mask
CN112292816A (en) Processing core data compression and storage system
US10049427B1 (en) Image data high throughput predictive compression systems and methods
US20150379682A1 (en) Vertex attribute data compression with random access using hardware
CN112514264A (en) Data compression method, data decompression method, related device, electronic equipment and system
CN105700821B (en) Semiconductor device and compression/decompression method thereof
CN114723033B (en) Data processing method, data processing device, AI chip, electronic device and storage medium
CN113313243A (en) Method, device and equipment for determining neural network accelerator and storage medium
CN114610650A (en) Memory compression method and device, storage medium and electronic equipment
CN108632624B (en) Image data processing method and device, terminal equipment and readable storage medium
CN103139567A (en) Image compressing and uncompressing method and device
US20240176585A1 (en) Data processing method, computer device and storage medium
CN112054805B (en) Model data compression method, system and related equipment
CN112817526B (en) Data storage method, device and medium
CN115277553A (en) Flow table storage method, device, equipment and computer readable storage medium
US10862508B1 (en) Method and device for encoding and compressing bit stream
CN117671044A (en) Image processing method, device, electronic equipment and medium
CN108989813A (en) A kind of high efficiency of compression/decompression method, computer installation and storage medium
CN112073726B (en) Compression method and device, computer readable storage medium and electronic device
CN112631708B (en) Picture display method and device, electronic equipment and storage medium

Legal Events

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