WO2019047628A1 - 海量图片处理方法、装置、电子设备及存储介质 - Google Patents
海量图片处理方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2019047628A1 WO2019047628A1 PCT/CN2018/097010 CN2018097010W WO2019047628A1 WO 2019047628 A1 WO2019047628 A1 WO 2019047628A1 CN 2018097010 W CN2018097010 W CN 2018097010W WO 2019047628 A1 WO2019047628 A1 WO 2019047628A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- picture
- layer
- index
- bit
- layer data
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/55—Clustering; Classification
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/36—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
- G09G5/39—Control of the bit-mapped memory
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/30—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
- H04N19/39—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability involving multiple description coding [MDC], i.e. with separate layers being structured as independently decodable descriptions of input picture data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/93—Run-length coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/172—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/184—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being bits, e.g. of the compressed video stream
Definitions
- the present disclosure relates to the field of data processing technologies, and in particular, to a mass picture processing method, a massive picture processing apparatus, an electronic device, and a computer readable storage medium.
- the internal system will store a large number of images, such as e-commerce websites will have a large number of merchandise pictures and product details pictures. Since the processing of massive pictures and data consumes a large amount of storage medium and transmission bandwidth, it is necessary to process massive amounts of data to improve storage and transmission speed.
- the processing methods for massive pictures in the related art are mostly considered from the aspects of improving picture storage, reading speed, and mass information management.
- the processing method of massive pictures because the image storage amount is very large, it will occupy a large amount of storage space and network transmission bandwidth, resulting in a problem of slow transmission speed.
- a method for processing a massive image including:
- the picture bit layer data corresponding to each of the channels layered by bit and generating a layer index record file; wherein the inverted index structure includes multiple layer indexes;
- All the layer indexes of the picture are decoded according to the layer index record file, and the picture is synthesized according to the decoding result.
- performing bitwise layering on each of the matrices includes:
- the method further includes:
- Correlation calculation is performed on a matrix corresponding to each layer of each channel, and a difference matrix corresponding to the correlation is obtained;
- storing the picture bit layer data corresponding to each of the channels layered by bit according to an inverted index structure includes:
- detecting whether the picture bit layer data is completely matched includes:
- the index value is recalculated when it is detected that the picture bit layer data does not completely match.
- decoding all of the layer indexes of the picture includes:
- the method further includes:
- the picture generated according to the decoding result is verified by the index value.
- a mass image processing apparatus including:
- a layering module configured to obtain a matrix corresponding to multiple channels of each picture in the massive picture, and perform bitwise layering on each of the matrixes;
- a storage module configured to store, according to an inverted index structure, image layer data corresponding to each of the channels layered by bit, and generate a layer index record file; wherein the inverted index structure includes multiple maps Layer index
- a decoding module configured to decode all the layer indexes of the picture according to the layer index record file, and synthesize the picture according to the decoding result.
- a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the massive image processing method of any of the above.
- an electronic device including:
- a memory for storing executable instructions of the processor
- the processor is configured to perform the massive image processing method according to any one of the above items by executing the executable instruction.
- FIG. 1 is a schematic diagram showing a mass picture processing method in an exemplary embodiment of the present disclosure
- FIG. 2 is a schematic diagram showing three channels of a picture in an exemplary embodiment of the present disclosure
- FIG. 3 is a schematic diagram showing the correlation of three channel decomposition matrices in an exemplary embodiment of the present disclosure
- FIG. 4 is a schematic diagram showing a layer 8 binary map of a picture in an exemplary embodiment of the present disclosure
- FIG. 5 is a block diagram schematically showing a mass image processing apparatus in an exemplary embodiment of the present disclosure
- FIG. 6 schematically illustrates an electronic device in an exemplary embodiment of the present disclosure
- FIG. 7 schematically shows a program product in an exemplary embodiment of the present disclosure.
- the massive image processing method in the related art stores, for example, structured data in Hbase, and the unstructured picture data is directly stored in the Hadoop distributed file system, and the storage address of the image is stored in Hbase. In this way, the transmission speed is slow.
- the massive image processing method may include the following steps:
- Step S110 acquiring a matrix corresponding to multiple channels of each picture in the massive picture, and performing bitwise layering on each of the matrices;
- Step S120 storing image bit layer data corresponding to each of the channels layered by bit according to an inverted index structure, and generating a layer index record file;
- Step S130 Decode all the layer indexes of the picture according to the layer index record file, and synthesize the picture according to the decoding result.
- the picture bit layer data is obtained by layer-by-bit layering the matrix of each channel of the picture, and the picture bit layer data is combined and stored according to the inverted index structure.
- the picture bit layer data is combined and stored, which reduces the transmission amount of the picture, thereby improving the picture transmission speed and efficiency.
- step S110 a matrix corresponding to a plurality of channels of each picture in the massive picture is acquired, and each of the matrices is layered in a bit.
- the massive picture may include, for example, a product picture, a product detail picture, and the like in an e-commerce website, and may also include a large number of pictures on other websites.
- Each picture is composed of channels.
- the grayscale image is composed of one channel.
- the 32-bit RGB images are composed of three channels: R, G, and B.
- R, G, and B 32-bit RGB images are used in this example.
- the matrix corresponding to multiple channels of each picture may be a partial matrix or a complete matrix, and all the matrices corresponding to each channel may be obtained by loop. It should be added that each channel is composed of a matrix of decimal numbers, that is, each element in the matrix is a decimal element.
- the original picture can be decomposed into an R channel, a G channel, and a B channel, and the matrix corresponding to each channel corresponding to any picture can be layerwise layered.
- performing bitwise layering on each of the matrices may include: converting each decimal element in a matrix corresponding to each channel into a binary element, and corresponding to each channel according to the binary bit.
- the matrix is layered in bits.
- each element in the matrix corresponding to each channel is a decimal element, and all the decimal elements can be converted into corresponding binary elements.
- the conversion process can be performed by a program.
- Each channel can correspond to a plurality of different matrices, and each element in each matrix can correspond to one pixel.
- the elements in all the matrices corresponding to each channel can be converted to perform bitwise layering. For example, a specific step of bitwise layering can be illustrated by taking a partial matrix of R channels as an example.
- Bitwise layering can be understood as layering each binary element in a matrix according to the number of bits of a binary element. For example, if the number of binary elements is 8, then each binary element can be decomposed into 8 matrices.
- equation (1) For example, a small part of the matrix of the R channel is shown in equation (1):
- Each element of the R-channel matrix can be layered in binary bits, and each channel can be decomposed into 8 matrices according to binary bits.
- decimal 55 can be converted to binary 00110111, then element 55 can be decomposed into [0 0 1 1 0 1 1]; decimal 167 can be converted to binary 10100111, then element 167 can be correspondingly decomposed into [1 0 1 0 0 1 1 1].
- the partial matrix corresponding to the R channel can be decomposed into eight matrices as shown in equation (3). Since all the elements of the eight matrices only contain 0 and 1, the matrix corresponding to each channel can be decomposed into 8 according to the binary bit. 01 matrix.
- the matrix corresponding to the G channel and the B channel may be layered according to the binary bits, thereby obtaining eight 01 matrices G1, G2, G3, G4, G5 corresponding to the G channel.
- the method may further include: performing correlation calculation on a matrix corresponding to each layer of each of the channels, and acquiring related a difference matrix corresponding to the sex; performing run length coding on the difference matrix, and acquiring a plurality of the picture bit layer data corresponding to each layer of each of the channels.
- the pictures of the three channels that are decomposed can be first grayed out, as shown in FIG. 2 .
- the grayscale maps corresponding to the respective channels have similarities, so it can be predicted that there is a strong correlation between the corresponding layers of the three sets of matrixes R1-8, G1-8 and B1-8 which are decomposed.
- a correlation calculation is performed on the matrix corresponding to each layer of each of the channels. Specific steps are as follows:
- the correspondence between the three sets of decomposition matrices is as shown in FIG. 3. It can be seen from the corresponding relationship diagram that the decomposition matrices of the same layer of the three channels have a one-to-one correspondence, for example, R1 and G1 respectively. B1 corresponds to; R8 corresponds to G8 and B8, respectively.
- the correlation can be represented by a difference matrix, which can be done using an exclusive OR operation.
- the decomposition matrix of each layer of the G channel and the B channel can be represented by an R matrix corresponding to the decomposition matrix corresponding to the layer in combination with the difference matrix.
- the three channels also have strong correlation between the binary pictures corresponding to the decomposition matrix of the eighth layer.
- the binary image corresponding to R8 can be regarded as the binary image corresponding to G8.
- the binary image corresponding to B8 is combined.
- the decomposition matrices R1, G1, and B1 of the first layer of the three channels can be as shown in the formula (4).
- both G1 and B1 can be represented by the form of R1 plus a difference matrix, such as shown in equation (5), and the difference matrix can be completed by an exclusive OR operation.
- the difference matrices G1' and B1' are both sparse matrices, at which point R1, G1' and B1' can be recorded.
- the correlation calculation does not require the use of the R channel, that is to say, in addition to this, the decomposition matrix of the same layer of the three channels can also be described by the G channel and the difference matrix R' and B'. Correlation between the two; the correlation between the decomposition matrices of the same layer of the three channels can also be described by the B channel and the difference matrices R' and G'.
- the difference matrix may be subjected to Run Length Encoding (RLE) to obtain a plurality of picture bit layer data corresponding to each layer of each of the channels.
- RLE Run Length Encoding
- the run length encoding method is a lossless compression method that can replace adjacent pixels of the same color value in one scan line with a count value and color values of those pixels. For example: aaabccccccddeee, you can use 3a1b6c2d3e instead.
- the string JJJJJJAAAAVVVVAAAAAA can be encoded in the form of 6J4A4V6A, where "6J” means 6 characters J, "4A” means 4 characters A, and stroke length encoding can avoid a lot of redundant information, making pictures The process is simpler and faster.
- the difference matrix may be run length encoded to obtain a plurality of picture bit layer data corresponding to each layer of each of the channels, and the picture bit layer data is in one-to-one correspondence with the matrix.
- the picture bit layer data may be a data sequence.
- each sparse matrix may be run length encoded to obtain 24 data sequences and the pictures may be fully expressed by the 24 data sequences.
- the data sequence obtained by compression-coding the matrix B1' is 01410.
- the 24 data sequences can be expressed as:
- step S120 the picture bit layer data corresponding to each of the channels layered by bit is stored according to an inverted index structure, and a layer index record file is generated.
- an inverted index structure may be first established, and the inverted index structure may determine the position of the record according to the attribute value in an actual application.
- the inverted index structure may be an index table, the first column of the index table may be used to store the picture bit layer data obtained by the run length encoding; the second column may be used to store the index value calculated according to the picture bit layer data.
- the index value may include a HashCode index value or an MD5 index value; the third column of the index table may be used to store a layer index. If the picture is A, B, C, D, the inverted index structure can be as shown in Table 1.
- the layer index record file may be used to record a process of storing all picture bit layer data according to the inverted index structure.
- the storing the bit layer data corresponding to each of the channels in the bit-by-bit layer according to an inverted index structure may include: calculating an index value of the picture bit layer data, and Locating an index row matching the index value in the inverted index structure; adding a row layer index record in the inverted index structure when the index row matching the index value is not found; When the index row matching the index value is reached, it is detected whether the picture bit layer data is completely matched.
- the index value corresponding to each picture bit layer data may be first calculated, that is, the data value stored in the data sequence corresponding to each layer of each channel, and the index value may include a HashCode index value or an MD5 index value, for example,
- the function loop calculates and obtains the index value of the data sequence corresponding to each layer of each channel.
- the picture may be hierarchically layered according to the foregoing steps to obtain 24 picture bit layer data. Take the decomposition of picture A as an example:
- an index row corresponding to or matching the calculated index value can be found in the above index table. If the index row matching the index value is not found, a row layer index record may be added to the inverted index structure. Referring to Table 1, for example, if the currently calculated graph A-R3 has an index value of 486dgf4dfg4s3246, and does not match all the index rows in Table 1, the data sequence, the index value, and the corresponding layer index may be added to In the index table. When the index row matching the index value is found, it may be detected whether the picture bit layer data is completely matched.
- the index value of the second layer R channel of the currently calculated picture A is gfGREdsfsdf89fds, and it can continue to detect whether the data sequence used for calculation and the data sequence stored in the index table completely match. Judging by judging each element in the matrix corresponding to the data sequence.
- the detecting whether the picture bit layer data is completely matched may include: adding, when the picture bit layer data is completely matched, adding a mark corresponding to the layer to the inverted index structure; The index value is recalculated when it is detected that the picture bit layer data does not completely match.
- the calculation when it is detected that the currently calculated picture bit layer data does not completely match or completely does not match the picture bit layer data stored in the index table, in order to improve the accuracy of the search, the calculation may be recalculated.
- the index value is used.
- the channel and the number of layers of the picture corresponding to the index value may be marked in the index table.
- the calculated index A of the second layer R channel of the picture A is gfGREdsfsdf89fds, and each element in the matrix corresponding to the calculated data sequence is the same as each element of the data sequence stored in the index table, so
- the map A-R2 corresponding to the second layer R channel of the picture A is recorded in the layer index column of the index table.
- step S130 all the layer indexes of the picture are decoded according to the layer index record file, and the picture is generated according to the decoding result.
- the layer index record file generated in step S120 may be decoded, and the picture generated according to the decoding result is a bit-layered picture.
- the decoding process is an inverse process of the encoding process, and therefore, the encoding method and the decoding method can correspond to each other.
- all the layer indexes stored in the index table corresponding to a certain picture may be decoded to obtain the original picture data corresponding to the three channels of the picture, thereby obtaining the original picture.
- the decoding of all the layer indexes of the picture may include: recording, according to the layer index, all the layer indexes of the file decoding picture, and searching according to the layer index. And compressing the picture bit layer data corresponding to the picture; performing run length decoding on the compressed picture bit layer data, and acquiring an uncompressed original picture bit layer data matrix corresponding to the picture; The original picture bit layer data matrix is subjected to an exclusive OR operation, and an un-layered original matrix corresponding to the plurality of channels of the picture is obtained and the picture is synthesized according to the original matrix.
- the raw data that can represent the picture can be obtained layer by layer from the lowest level of data.
- all layer indexes of the file decoded picture may be recorded according to the layer index, for example, all layer indexes corresponding to the image A are obtained: FIG. A-R1-8, FIG. A-G1-8, and FIG.
- searching, according to the layer index, the compressed picture bit layer data corresponding to the layer that is, searching a data sequence corresponding to all layer indexes of the picture A in the index table, for example, obtaining data.
- Sequence 01410 it should be noted that the data sequence obtained here is a data sequence compressed by run length encoding.
- run length decoding may be performed on the acquired compressed data sequence to obtain an original data matrix that is not encoded and compressed.
- the run length decoding may be performed on the data sequence 01410 to obtain a corresponding original matrix B1'.
- the obtained 24 data sequence cycles may be decoded to obtain uncompressed 24 original picture bit layer data matrices:
- the difference matrix G1' and B1' in the obtained 24 original picture bit layer data matrices can be obtained by an exclusive OR operation
- the difference matrix G1' and B1' can be XORed again to restore the unresolved Original matrix after any processing
- the matrix corresponding to the first layer to the eighth layer of the three channels R, G, and B respectively can be used to represent three channels of RGB, and finally the original original picture can be synthesized through three channels.
- the method may further include: performing, by using the index value, the picture generated according to the decoding result.
- the picture generated after the decoding may be verified to determine whether the picture is consistent with the original bit-layered picture; of course, the verification may not be performed.
- the specific verification process can be completed through the program, and will not be described here.
- the massive pictures can be processed by cyclically combining the processes of bitwise layering, code storage, and decoding in this example.
- the pictures are decomposed layer by layer and combined and stored in layer dimensions, which reduces the amount of image storage and transmission, saves storage space, and improves transmission. effectiveness.
- the apparatus 500 may include:
- the layering module 501 can be configured to obtain a matrix corresponding to multiple channels of each picture in the massive picture, and perform bitwise layering on each of the matrices;
- the storage module 502 is configured to store, according to an inverted index structure, the picture bit layer data corresponding to each of the channels layered by bit, and generate a layer index record file; wherein the inverted index structure includes multiple Layer index;
- the decoding module 503 is configured to decode all the layer indexes of the picture according to the layer index record file, and synthesize the picture according to the decoding result.
- modules or units of equipment for action execution are mentioned in the detailed description above, such division is not mandatory. Indeed, in accordance with embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one of the modules or units described above may be further divided into multiple modules or units.
- an electronic device capable of implementing the above method is also provided.
- FIG. 6 An electronic device 600 according to such an embodiment of the present disclosure is described below with reference to FIG. 6 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
- electronic device 600 is embodied in the form of a general purpose computing device.
- the components of the electronic device 600 may include, but are not limited to, the at least one processing unit 610, the at least one storage unit 620, and a bus 630 that connects different system components (including the storage unit 620 and the processing unit 610).
- the storage unit stores program code, which can be executed by the processing unit 610, such that the processing unit 610 performs various exemplary embodiments according to the present disclosure described in the "Exemplary Method" section of the present specification.
- the processing unit 610 can perform the above steps.
- the storage unit 620 can include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202, and can further include a read only storage unit (ROM) 6203.
- RAM random access storage unit
- ROM read only storage unit
- the storage unit 620 can also include a program/utility 6204 having a set (at least one) of the program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
- Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
- the electronic device 600 can also communicate with one or more external devices 700 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 600, and/or with The electronic device 600 is enabled to communicate with any device (e.g., router, modem, etc.) that is in communication with one or more other computing devices. This communication can take place via an input/output (I/O) interface 650. Also, electronic device 600 can communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through network adapter 660. As shown, network adapter 660 communicates with other modules of electronic device 600 via bus 630.
- network adapter 660 communicates with other modules of electronic device 600 via bus 630.
- the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
- a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
- a number of instructions are included to cause a computing device (which may be a personal computer, server, terminal device, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
- a computer readable storage medium having stored thereon a program product capable of implementing the above method of the present specification.
- various aspects of the present disclosure may also be embodied in the form of a program product comprising program code for causing said program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of the present specification.
- a program product 800 for implementing the above method which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be at a terminal device, is illustrated in accordance with an embodiment of the present disclosure.
- CD-ROM portable compact disk read only memory
- the program product of the present disclosure is not limited thereto, and in this document, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
- the program product can employ any combination of one or more readable media.
- the readable medium can be a readable signal medium or a readable storage medium.
- the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- the computer readable signal medium may comprise a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
- Program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
- Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language, such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language.
- the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
- the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
- LAN local area network
- WAN wide area network
- Businesses are connected via the Internet.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Image Processing (AREA)
Abstract
Description
| 位层数据 | 索引值 | 图层索引 |
| 序列1 | 486dfg4dfg4s3245 | 图A-R1,图D-R3 |
| 序列2 | Dfg765gdfs76dgf7 | 图B-R1,图C-R7 |
| 序列3 | gfGREdsfsdf89fds | 图A-R2 |
| 序列4 | H09jfjfdni0923h4 | 图C-B3 |
| …… | …… | …… |
Claims (10)
- 一种海量图片处理方法,其特征在于,包括:获取海量图片中各图片的多个通道对应的矩阵,并对各所述矩阵进行按位分层;根据一倒排索引结构存储按位分层后的各所述通道对应的图片位层数据,并生成一图层索引记录文件;其中,所述倒排索引结构包括多个图层索引;根据所述图层索引记录文件对所述图片的所有所述图层索引进行解码,并根据解码结果合成所述图片。
- 根据权利要求1所述的海量图片处理方法,其特征在于,对各所述矩阵进行按位分层包括:将各通道对应的矩阵中的各十进制元素转化为二进制元素,并根据二进制位对各所述通道对应的矩阵进行按位分层。
- 根据权利要求1所述的海量图片处理方法,其特征在于,对各所述矩阵进行按位分层后,所述方法还包括:对各所述通道每一层对应的矩阵进行相关性计算,并获取与所述相关性对应的差异矩阵;对所述差异矩阵进行行程长度编码,获取与各所述通道每一层对应的多个所述图片位层数据。
- 根据权利要求1所述的海量图片处理方法,其特征在于,根据一倒排索引结构存储按位分层后的各所述通道对应的图片位层数据包括:计算所述图片位层数据的索引值,并在所述倒排索引结构中查找与所述索引值匹配的索引行;在未查找到与所述索引值匹配的所述索引行时,在所述倒排索引结构中增加一行图层索引记录;在查找到与所述索引值匹配的所述索引行时,检测所述图片位层数据是否完全匹配。
- 根据权利要求4所述的海量图片处理方法,其特征在于,检测所述图片位层数据是否完全匹配包括:在检测所述图片位层数据完全匹配时,将图层对应的标记添加至所述倒排索引结构中;在检测所述图片位层数据不完全匹配时,重新计算所述索引值。
- 根据权利要求1所述的海量图片处理方法,其特征在于,对所述图片的所有所述图层索引进行解码包括:根据所述图层索引记录文件解码所述图片的所有所述图层索引,并根据所述图层索引查找压缩后的与所述图片对应的所述图片位层数据;对压缩后的所述图片位层数据进行行程长度解码,获取未压缩的与所述图片对应的原始图片位层数据矩阵;对所述原始图片位层数据矩阵进行异或运算,获取未分层的与所述图片的多个通道对应的原矩阵并根据所述原矩阵合成所述图片。
- 根据权利要求4所述的海量图片处理方法,其特征在于,所述方法还包括:通过所述索引值对根据解码结果生成的所述图片进行校验。
- 一种海量图片处理装置,其特征在于,包括:分层模块,用于获取海量图片中各图片的多个通道对应的矩阵,并对各所述矩阵进行按位分层;存储模块,用于根据一倒排索引结构存储按位分层后的各所述通道对应的图片位层数据,并生成一图层索引记录文件;其中,所述倒排索引结构包括多个图层索引;解码模块,用于根据所述图层索引记录文件对所述图片的所有所述图层索引进行解码,并根据解码结果合成所述图片。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的海量图片处理方法。
- 一种电子设备,其特征在于,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-7任一项所述的海量图片处理方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/642,095 US11395010B2 (en) | 2017-09-08 | 2018-07-25 | Massive picture processing method converting decimal element in matrices into binary element |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710804971.5 | 2017-09-08 | ||
| CN201710804971.5A CN110019865B (zh) | 2017-09-08 | 2017-09-08 | 海量图片处理方法、装置、电子设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019047628A1 true WO2019047628A1 (zh) | 2019-03-14 |
Family
ID=65633492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/097010 Ceased WO2019047628A1 (zh) | 2017-09-08 | 2018-07-25 | 海量图片处理方法、装置、电子设备及存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US11395010B2 (zh) |
| CN (1) | CN110019865B (zh) |
| WO (1) | WO2019047628A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116301655A (zh) * | 2023-04-12 | 2023-06-23 | 深圳市英唐数码科技有限公司 | 一种历史笔记图片加载方法、系统和可读存储介质 |
| CN117097906A (zh) * | 2023-10-20 | 2023-11-21 | 河北天英软件科技有限公司 | 一种区域医疗资源高效利用的方法及系统 |
| CN119559295A (zh) * | 2025-01-26 | 2025-03-04 | 山东云海国创云计算装备产业创新中心有限公司 | 二值图孔洞填充方法、装置、设备及可读存储介质 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111368023A (zh) * | 2020-03-29 | 2020-07-03 | 北京量子时代智能设备有限公司 | 一种安全的矩阵式文本数据存储表达方法 |
| CN113627320B (zh) * | 2021-08-09 | 2023-09-26 | 东云睿连(武汉)计算技术有限公司 | 一种基于计算机视觉的工程图纸比对装置和方法 |
| CN116016606B (zh) * | 2023-01-09 | 2023-08-18 | 安徽省分众分析测试技术有限公司 | 一种基于智慧云的污水处理运维数据高效管理系统 |
| CN116541828B (zh) * | 2023-07-03 | 2023-09-22 | 北京双鑫汇在线科技有限公司 | 一种服务信息数据的智能管理方法 |
| CN116993611B (zh) * | 2023-07-28 | 2025-02-28 | 重庆赛力斯凤凰智创科技有限公司 | 图像加载方法、装置、电子设备及可读存储介质 |
| CN117201603B (zh) * | 2023-11-06 | 2024-02-06 | 苔花科迈(西安)信息技术有限公司 | 基于二维码的煤矿井下数据交接方法及系统 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030365A (zh) * | 2007-04-10 | 2007-09-05 | 北京中星微电子有限公司 | 一种数字图像的存储、显示方法及装置 |
| CN101930614A (zh) * | 2010-08-10 | 2010-12-29 | 西安交通大学 | 基于视频分层的绘画渲染方法 |
| US20120243784A1 (en) * | 2011-03-24 | 2012-09-27 | Takahiro Fukuhara | Image processing device and method |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9251197B2 (en) | 2011-06-27 | 2016-02-02 | Jethrodata Ltd. | System, method and data structure for fast loading, storing and access to huge data sets in real time |
| US20140092971A1 (en) * | 2012-09-28 | 2014-04-03 | Kiran Mukesh Misra | Picture processing in scalable video systems |
| CN103731448B (zh) | 2012-10-11 | 2017-09-26 | 腾讯科技(深圳)有限公司 | 一种压缩图片的方法和系统 |
| CN103955514A (zh) * | 2014-05-05 | 2014-07-30 | 陈浩 | 一种基于Lucene倒排索引的图像特征索引方法 |
| CN105245888A (zh) * | 2014-06-11 | 2016-01-13 | 富士通株式会社 | 图像压缩方法和图像压缩装置 |
| GB2531271A (en) * | 2014-10-14 | 2016-04-20 | Nokia Technologies Oy | An apparatus, a method and a computer program for image sequence coding and decoding |
| CN106612435A (zh) * | 2016-01-16 | 2017-05-03 | 四川用联信息技术有限公司 | 一种基于svd-dwt-dct的联合图像压缩方法 |
| CN106023122A (zh) * | 2016-05-05 | 2016-10-12 | 江南大学 | 基于多通道分解的图像融合方法 |
-
2017
- 2017-09-08 CN CN201710804971.5A patent/CN110019865B/zh active Active
-
2018
- 2018-07-25 WO PCT/CN2018/097010 patent/WO2019047628A1/zh not_active Ceased
- 2018-07-25 US US16/642,095 patent/US11395010B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101030365A (zh) * | 2007-04-10 | 2007-09-05 | 北京中星微电子有限公司 | 一种数字图像的存储、显示方法及装置 |
| CN101930614A (zh) * | 2010-08-10 | 2010-12-29 | 西安交通大学 | 基于视频分层的绘画渲染方法 |
| US20120243784A1 (en) * | 2011-03-24 | 2012-09-27 | Takahiro Fukuhara | Image processing device and method |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116301655A (zh) * | 2023-04-12 | 2023-06-23 | 深圳市英唐数码科技有限公司 | 一种历史笔记图片加载方法、系统和可读存储介质 |
| CN116301655B (zh) * | 2023-04-12 | 2023-11-07 | 深圳市英唐数码科技有限公司 | 一种历史笔记图片加载方法、系统和可读存储介质 |
| CN117097906A (zh) * | 2023-10-20 | 2023-11-21 | 河北天英软件科技有限公司 | 一种区域医疗资源高效利用的方法及系统 |
| CN117097906B (zh) * | 2023-10-20 | 2023-12-26 | 河北天英软件科技有限公司 | 一种区域医疗资源高效利用的方法及系统 |
| CN119559295A (zh) * | 2025-01-26 | 2025-03-04 | 山东云海国创云计算装备产业创新中心有限公司 | 二值图孔洞填充方法、装置、设备及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US11395010B2 (en) | 2022-07-19 |
| CN110019865A (zh) | 2019-07-16 |
| US20200204832A1 (en) | 2020-06-25 |
| CN110019865B (zh) | 2021-01-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019047628A1 (zh) | 海量图片处理方法、装置、电子设备及存储介质 | |
| CN110879854B (zh) | 使用超集树数据结构搜索数据 | |
| US11030149B2 (en) | File format for accessing data quickly and efficiently | |
| WO2019153867A1 (zh) | 二维码生成及识别 | |
| EP3791331A1 (en) | Efficient data encoding for deep neural network training | |
| CN113327599B (zh) | 语音识别方法、装置、介质及电子设备 | |
| US20140232574A1 (en) | System, method and non-transitory computer readable medium for compressing genetic information | |
| ES2898868T3 (es) | Método y dispositivo para la búsqueda de imágenes | |
| WO2020119487A1 (zh) | 点云的编解码方法及装置 | |
| US9544596B1 (en) | Optimized template matching approach to intra-coding in video/image compression | |
| US20250175192A1 (en) | System and method for secure data processing with privacy-preserving compression and quality enhancement | |
| US20240421830A1 (en) | Unified platform for multi-type data compression and decompression using homomorphic encryption and neural upsampling | |
| US20240314293A1 (en) | Lossless image compression using block based prediction and optimized context adaptive entropy coding | |
| CN109474826B (zh) | 图片压缩方法、装置、电子设备及存储介质 | |
| WO2020192012A1 (zh) | 一种数据处理方法、设备及存储介质 | |
| CN115643348B (zh) | 基于可逆图像处理网络的可证安全自然隐写方法及装置 | |
| US11138151B2 (en) | Compression scheme for floating point values | |
| CN115802060A (zh) | 语义通信视频传输方法及相关设备 | |
| CN117939127A (zh) | 一种图像处理方法及其相关设备 | |
| CN106446272A (zh) | 用于发送数据的方法和装置 | |
| CN118118164A (zh) | 数据保护方法、基于纵向联邦学习模型的预测方法及装置 | |
| WO2018196817A1 (zh) | 一种基于lz77的数据压缩方法、设备及终端 | |
| US9271010B2 (en) | System and method for motion estimation for large-size block | |
| CN112486976A (zh) | 数据处理方法、装置、网络设备及存储介质 | |
| US12192467B1 (en) | Arithmetic encoding and decoding method based on semantic source and related device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18853691 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.08.2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18853691 Country of ref document: EP Kind code of ref document: A1 |
|
| WWG | Wipo information: grant in national office |
Ref document number: 202037006328 Country of ref document: IN |







