Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

138 results about "Run-length encoding" patented technology

Run-length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run. This is most useful on data that contains many such runs. Consider, for example, simple graphic images such as icons, line drawings, Conway’s Game of Life, and animations. It is not useful with files that don't have many runs as it could greatly increase the file size.

Time sequence database data compression method, system and device and storage medium

The invention relates to the technical field of wind power generation equipment data processing. The invention provides a time sequence database data compression method, system and device and a storage medium. The method comprises the steps of dynamically partitioning time sequence data based on a preset time window; hybrid coding compression is performed on each data block, and a composite strategy of difference coding and run length coding is adopted for numerical data; a metadata index of the compression blocks is established, the time range, the data feature statistics and the compression parameters of each data block are recorded, and the metadata index comprises extreme value distribution, variance features and data fluctuation frequency indexes; and dynamically adjusting a compression strategy according to a historical data feature analysis result, predicting data fluctuation modes of different equipment sensors through a machine learning model, and automatically selecting an optimal coding combination and compression granularity for subsequent data blocks. The problems that when wind power plant time sequence data are processed through an existing method, time sequence characteristics are difficult to adapt, the storage cost is high and the query efficiency is low are solved.
Owner:HUANENG DINGBIAN NEW ENERGY POWER GENERATION CO LTD +1

Data compression storage method of Internet of Things ultrasonic water meter

The invention relates to the technical field of data compression, in particular to a data compression storage method for ultrasonic water meters of the internet of things, and the method comprises the steps: for any ultrasonic water meter, obtaining N-dimensional monitoring data collected by the ultrasonic water meter in a preset time period, constructing an N * M two-dimensional matrix, and obtaining the data fluctuation degree of each ultrasonic water meter; the two-dimensional matrixes of all the ultrasonic water meters are deeply stacked according to the sequence of the fluctuation degrees of all the data from small to large, a stacked matrix is obtained, and the stacked matrix is divided into two sub-stacked matrixes; and performing normalization processing on each element in each sub-stack matrix to obtain a normalized matrix, obtaining a to-be-compressed data sequence according to the adaptive compression path of each normalized matrix, performing run length coding on the to-be-compressed data sequence to obtain compressed data, and performing compression on the compressed data. The repeatability in the to-be-compressed data sequence obtained based on the self-adaptive compression path is higher, and the compression efficiency of the multi-dimensional monitoring data of the ultrasonic water meter is improved.
Owner:SHANDONG CHENHUI ELECTRONICS TECH

Point cloud encoding method and apparatus, point cloud decoding method and apparatus, and communication device

A point cloud encoding and decoding method and apparatus, and pertains to the field of point cloud processing technologies. The point cloud encoding method in embodiments of this application includes: An encoder determines, based on attribute information of target point cloud, a target attribute information distribution characteristic value corresponding to a target bit rate point, where the target bit rate point is a bit rate point corresponding to an attribute quantization step of the attribute information; the encoder determines a target run-length encoding manner based on the target attribute information distribution characteristic value; and the encoder performs encoding processing on the attribute information based on the target run-length encoding manner.
Owner:VIVO MOBILE COMM CO LTD

Intelligent fusion terminal with communication data management function

The invention relates to the technical field of data processing, in particular to an intelligent fusion terminal with a communication data management function. The terminal comprises a data preprocessing module used for obtaining voice time domain data; the frequency domain analysis module is used for obtaining the periodical storage degree according to the peak point of the voice frequency domain data; the continuous adjacent region acquisition module is used for acquiring a residual error distribution curve, further acquiring the continuous adjacent degree of each residual error point and acquiring a continuous adjacent region; the strong periodicity area acquisition module is used for acquiring the strong periodicity degree of continuous adjacent areas and obtaining strong periodicity areas; the data compression module is used for acquiring a strong periodic region in the voice time domain data and decomposing the strong periodic region to obtain a periodic term; obtaining a compression matrix of the strong periodic region and a corresponding compression sequence according to the periodic term; and compressing and transmitting the compressed sequence by using run length coding. According to the intelligent fusion terminal provided by the invention, the compression efficiency of run length coding is improved.
Owner:SHANDONG DEYUAN POWER TECHNOLOGY CORP LTD

Space-time data compression method and system based on lightweight processing

The invention discloses a spatio-temporal data compression method and system based on lightweight processing, and relates to the technical field of image data processing, and the method comprises the steps: based on spatio-temporal data to be compressed, establishing standardized data entries, forming a window set through time axis segmentation, carrying out the periodic discrimination of windows according to the frequency domain energy distribution, and constructing spatio-temporal blocks, establishing an error control parameter table based on the global error budget; generating a time coding stream, performing integerization on the three-dimensional coordinates and the attribute values, generating a space coding stream through double difference and run length coding, performing edge folding lightweight and texture compression on the grid data, and generating a joint coding result; and based on a joint coding result, dividing the compressed data into a base layer and a plurality of enhancement layers, and establishing a relevance hierarchical storage structure and a block-level index table to generate the compressed data capable of being transmitted in a streaming manner. According to the method, collaborative compression can be carried out by utilizing spatial-temporal data internal relevance.
Owner:SHENYANG SURVEYING & MAPPING RES INST CO LTD

A method for accelerating processing of a video compression card based on a RISC-V processor

ActiveCN114302148BSpeed ​​up the compression processMeet the requirements of real-time compression processingDigital video signal modificationEnergy efficient computingComputer architectureCoprocessor
The present invention relates to an acceleration processing method for a video compression card based on a RISC-V processor, and belongs to the technical field of video compression card software compression research. The method performs the following steps: 1) collected image information; 2) completing AVS format encoding of the image information; 3) using the RISC-V processor and the coprocessor to interact to complete the zig-zag scanning and run-length encoding of the image information in step 2); 4) completing AVS format entropy encoding of the image information that has completed the zig-zag scanning and run-length encoding in step 3); 5) completing AVS video compression; the coprocessor participates in completing the execution, memory access and write-back functions of the RISC-V processor through coprocessor instructions. The present invention utilizes the characteristic of RISC-V itself that it has easy-to-expand instructions, generates specific coprocessor instructions for zig-zag scanning and run-length encoding at the compiler level, and adds them to traditional CPU instructions.
Owner:SHANDONG XINHUI MICROELECTRONICS TECH CO LTD

Image compression method and device, image decompression method and device, electronic equipment and storage medium

The invention provides an image compression method and device, an image decompression method and device, electronic equipment and a storage medium. The compression method comprises the steps of obtaining pixel parameters of a target image; obtaining a first absolute difference value and a second absolute difference value of the pixel values based on the pixel parameters and a preset scanning mode; acquiring a first sub-code and a second sub-code based on the size relationship between the second absolute difference value and the first absolute difference value when the target image is read in a preset reading mode; the first sub-code and / or the second sub-code form a compressed run-length code, and the compressed run-length code represents the run-length code of the pixel value of each pixel point of the target image corresponding to any scene; converting the compression run length code into a binary numerical value of a preset digit meeting a preset condition so as to compress the target image; according to the compressed target image, a self-adaptive compression method is adopted for the target images of different scenes, the compression rate is increased, the compression complexity is reduced, and the precision of the compressed image is kept.
Owner:SHENZHEN ORBBEC CO LTD

Pavement crack image skeleton extraction method based on improved Zhang-Suen refinement algorithm

The invention relates to a pavement crack image skeleton extraction method based on an improved Zhang-Suen refinement algorithm. The method comprises the following steps: S1, carrying out binarization processing on a pavement crack image; s2, carrying out boundary expansion on the crack binary image; s3, carrying out run-length coding on the crack binary image in the horizontal direction, and carrying out compression storage on continuous non-zero pixel segments in each row; s4, using an improved Zhang-Suen refinement algorithm to process the crack binary image processed in the step S3; s5, removing boundary extension; s6, performing simplification processing on the preliminarily refined crack skeleton image by using four predefined 3 * 3 L-shaped structure templates; s7, removing burrs in the image; and S8, outputting a crack skeleton image. The technical problems that according to an existing skeleton extraction method, a topological structure is prone to being damaged, the calculation efficiency is low, the extraction result cannot be completely a skeleton with the single pixel width, and burrs exist in the skeleton extraction result are solved.
Owner:SHANDONG JIAOTONG UNIV +1

Pulse video data lossless coding and decoding method based on prediction model

The invention belongs to the technical field of high-speed photography, and discloses a pulse video data lossless coding and decoding method based on a prediction model. The method comprises the following steps: maintaining a historical queue of L moments for each pixel to establish a prediction model, comparing a pixel value of a subsequent frame with a prediction value to generate a sparse 0 / 1 prediction error sequence, and performing run length coding and exponential-Golomb coding secondary compression on the prediction error sequence; during decoding, a prediction model and queue update logic are reversely multiplexed, and original data are accurately restored from a prediction error value and a prediction value; the core of the method is that redundancy is eliminated through spatio-temporal context modeling, a high compression ratio is realized in combination with cascade coding, and meanwhile, pixel-level lossless recovery is ensured.
Owner:SHANGHAI UNIV OF ENG SCI

Automatic website data crawling method based on Internet of Things

The invention relates to the technical field of data compression, in particular to an automatic website data crawling method based on the Internet of Things, which comprises the following steps of: acquiring to-be-crawled data information in a website, constructing a two-dimensional matrix, dividing the two-dimensional matrix into at least one sub-matrix, and acquiring data complexity of the sub-matrix; performing assimilation processing on elements in the target sub-matrix according to the data complexity condition of each sub-matrix to obtain a target two-dimensional matrix; elements in the target two-dimensional matrix are scanned in at least two preset scanning modes, corresponding one-dimensional data sequences are obtained, the scanning optimum degree is obtained according to the length of continuous identical data in all the sequences, and then the optimal scanning mode is obtained; the method comprises the following steps: scanning a target two-dimensional matrix in an optimal scanning mode to obtain a corresponding target data sequence which can be compressed to the maximum extent, carrying out run-length coding compression, automatically crawling compressed data, and restoring the crawled data to obtain data information in a website, so as to achieve the effect of compressing the data to the maximum extent.
Owner:SHANDONG SHENGDE INTELLIGENT TECH CO LTD

Fast expansion method based on run length coding

The invention relates to a quick expansion method based on run length coding, which comprises the following steps of: S1, taking a binary image as an input region and carrying out run length coding to obtain a run length; inputting expansion parameter height and width; s2, judging whether the height and width of the expansion parameters are less than or equal to 0; s3, judging whether the input area is rectangular or not; s4, calculating the number of possible maximum distribution runs, wherein the maximum run number is obtained by multiplying the run number of the input area by the input expansion height; s5, calculating the number of times required to be iterated; s6, executing expansion in the horizontal direction; s7, expansion in the vertical direction is executed; and S8, merging all the moved run length codes. According to the method, the run length coding technology is introduced, the algorithm execution process and the data representation mode are optimized, the defects and problems existing in the prior art are solved from the aspects of storage, calculation, internal storage, real-time performance and the like, the efficiency and performance of binary image expansion operation are improved, and important technical progress is brought to the field of image processing.
Owner:BEIJING FOCUSIGHT TECH

Point cloud encoding method and apparatus, point cloud decoding method and apparatus, and communication device

A point cloud encoding and decoding method and apparatus, and pertains to the field of point cloud processing technologies. The point cloud encoding method in embodiments of this application includes: An encoder determines, based on attribute information of target point cloud, a target attribute information distribution characteristic value corresponding to a target bit rate point, where the target bit rate point is a bit rate point corresponding to an attribute quantization step of the attribute information; the encoder determines a target run-length encoding manner based on the target attribute information distribution characteristic value; and the encoder performs encoding processing on the attribute information based on the target run-length encoding manner.
Owner:VIVO MOBILE COMM CO LTD

Power plant high-frequency data transmission method based on lossless compression algorithm

The invention provides a power plant high-frequency data transmission method based on a lossless compression algorithm. The power plant high-frequency data transmission method comprises the following steps of performing quality preprocessing on original high-frequency data; implementing hierarchical acquisition and periodic packaging according to data real-time requirements; performing differential coding for the data type: performing run-length coding on the switching value, and performing differential coding on the analog quantity; carrying out unified lossless compression on the coded data by using a Zstand-ard algorithm; the compressed data is encrypted and transmitted to an industrial internet platform, challenges confronted by a speed regulation system are handled through the steps, automatic optimization and dynamic adjustment of a data compression algorithm are achieved so as to adapt to the requirements of different application scenes, and the stability and efficiency of power production are improved.
Owner:CHINA YANGTZE POWER

Compression and decompression method for DNA sequencing data

The invention discloses a compression and decompression method for DNA sequencing data, and belongs to the technical field of biological information. The technical problems that in the prior art, when third-generation sequencing data are compressed, flexibility is poor, and the compression rate is low are solved. According to the compression method for the DNA sequencing data, global compression or block compression can be dynamically selected before compression, different compression methods are adopted for different types of data, and the flexibility of the compression method is improved; when the base sequence is compressed, the adopted self-indexing structure is a lossless compression method, the initial positions of all the sequences can be compressed and restored by using smaller data volume, and the compression rate is improved. Due to the fact that a special design is adopted in a run length coding structure, a character part is removed, an obtained run length segment is shorter, lossless compression of the position and the sequence is guaranteed, and meanwhile a better compression effect is provided. The method is mainly used for compression and decompression of DNA sequencing data.
Owner:HARBIN INST OF TECH

Image compression method and apparatus, image decompression method and apparatus, electronic device and storage medium

PCT designated stage expiredWO2024179128A1Digital video signal modificationAdaptive compressionRadiology
Provided in the present application are an image compression method and apparatus, an image decompression method and apparatus, an electronic device and a storage medium. The image compression method comprises: acquiring pixel parameters of a target image; acquiring a first absolute difference value and second absolute difference value of pixel values on the basis of the pixel parameters and a preset scanning mode; when reading the target image by using a preset reading mode, acquiring a first sub-code and a second sub-code on the basis of the magnitude relationship between the second absolute difference value and the first absolute difference value; forming compression run-length codes by using the first sub-code and / or the second sub-code, wherein the compression run-length codes represent run-length codes of pixel values of pixel points of the target image corresponding to any scene; and converting the compression run-length codes into a binary value which has a preset number of bits and meets a preset condition, so as to compress the target image. With regard to compressed target images, an adaptive compression method is used for the target images of different scenes, thereby increasing a compression rate, reducing the compression complexity, and maintaining the precision of compressed images.
Owner:SHENZHEN ORBBEC CO LTD

Thinning method, thinning apparatus, and computer-readable program

A thinning method includes a step of detecting a target run group as a specific run group in a run-length encoded binary image in which a run representing a pattern is designated as a target run, wherein the target run group represents a linear region crossing a left-and-right direction corresponding to a run length and includes target runs sequentially connected to one another in an up-and-down direction, and a step of acquiring a run-length encoded partially-thinned image by shortening a run length of the specific run group. For shortening the run length of the specific run group, in the specific run group, a run length of each target run included in both end portions in the up-and-down direction becomes shorter as it gets positioned nearer to a center side and run lengths of target runs positioned between both the end portions become a set width.
Owner:SCREEN HOLDINGS CO LTD

Video image rapid transmission method for recorder, recorder and system

The invention relates to the technical field of image transmission, in particular to a video image rapid transmission method for a recorder, the recorder and a system, and the method comprises the steps: arranging the gray values of all pixel points of an I frame in a video through a Hilbert curve to form a gray value sequence, according to the first frequency of each gray value and the second frequency of each run length in the run length coding result of the gray value sequence, sorting each gray value and each run length, and taking the k-th gray value and the k-th run length after sorting as the k-th coding object, the sum of the first frequency of the kth gray value and the second frequency of the kth run length after sorting is used as the third frequency of the kth coding object, a Huffman coding table is constructed according to the third frequencies of all the coding objects, the run length coding result is coded according to the Huffman coding table, and the k-th gray value and the k-th run length are obtained. And taking the obtained coding result as a coding result of the I frame, and transmitting the coding result. According to the invention, the transmission speed of the video collected by the recorder is improved.
Owner:SHENZHEN BAFANGTONGDA TECH CO LTD

Method and device for representing image area contour, computer readable storage medium and computer program product

The invention relates to the technical field of image processing, and discloses a method and device for representing an image region contour, a computer readable storage medium and a computer program product. The method comprises the following steps: extracting a run length coding sequence of a binary image of an image; carrying out connectivity analysis on the run length coding sequence, and constructing a graph data structure of the run length coding sequence according to a connection relationship of run lengths; performing depth-first search on the graph data structure to obtain a plurality of connectivity regions and run length vertex sequences thereof; and sequencing the run-length vertexes of the connectivity region, and performing run-length recombination to obtain the contour of the connectivity region. According to the method, run length coding and a graph data structure are applied to image region processing operation, and the efficiency of a region connectivity segmentation and region contour extraction algorithm is greatly improved by utilizing the characteristics of the run length coding; a concept of a run-length vertex sequence is provided, and the run-length vertex sequence is applied to characterization of a region contour of an image, so that contour points are conveniently characterized, and mutual conversion with region data is rapidly carried out.
Owner:GUANGDONG AOPUTE TECH CO LTD

Fast star map lossless compression algorithm

The invention discloses a rapid star map lossless compression algorithm, and aims to solve the problems of large memory space and low compression efficiency of the existing lossless compression algorithm. According to the algorithm, the efficient compression of star map data is realized through the combination of a context modeling module, a predictive coding module and a run length coding module. The method specifically comprises the steps that a flat area and a non-flat area are divided according to local gradient values, run length coding is adopted in the flat area, and predictive coding is adopted in the non-flat area; the predictive coding is realized through gradient quantization merging, predictive error calculation and Rice coding; and run length coding is realized by counting the length of continuous same pixel points and performing table look-up coding. The algorithm optimizes the number of context types, reduces the storage demand, and improves the compression efficiency by dynamically correcting the predicted value. The method is suitable for application scenes with high requirements on data integrity, such as star sensors.
Owner:ROCKET FORCE UNIV OF ENG

Optical encryption steganography method and system based on multi-channel metasurface

ActiveCN119087555AReduce the risk of being easily crackedGive full play to the advantages of joint regulationKey distribution for secure communicationMultiple keys/algorithms usageComputer hardwareSteganographic algorithm
The invention provides an optical encryption steganography method and system based on a multi-channel metasurface, and relates to the technical field of metasurface optical encryption, and the method mainly comprises the steps: constructing a dual-structure non-spatial multiplexing three-channel metasurface according to the material characteristics of a dual-wavelength metasurface; a first super-composition image used for transmitting secret information extraction and recovery parameters, and a second super-composition image and a third super-composition image which are embedded with secret information by using a steganography algorithm based on run length coding are coded into the double-structure non-spatial multiplexing three-channel metasurface for optical encryption; and decrypting them requires different levels of optical keys. According to the invention, the risk that information is easy to be cracked by exhaustion due to a single key level can be reduced, and the optical encryption information is prevented from being directly observed by using a multi-carrier information steganography method.
Owner:UNIV OF JINAN

Display panel Mura compensation data compression and decompression method

The invention discloses a display panel Mura compensation data compression and decompression method, which comprises the following steps: firstly, performing data fluctuation analysis on a compensation matrix in the row and column directions, and then selecting a row or column differential mode; then traversing the differential sequence and detecting the continuous repetition times, adopting a single-value coding mode for independent discrete values, compressing and storing the sequence with the repetition times greater than or equal to 2 through a run-length coding mode, and finally generating a compressed file containing the matrix dimension and the differential direction identifier; during decompression, the differential value is reversely accumulated in the row or column direction according to the head identifier, and the original compensation matrix is accurately reconstructed through pure addition and subtraction operation. According to the invention, through collaborative optimization of dynamic direction selection and a coding strategy, in cooperation with a decoding architecture based on addition and subtraction, rapid real-time processing can be completed, and hardware only needs a very simple operation unit and occupies less memory.
Owner:NANJING UNIV

Data processing method, accelerator, computer device and readable storage medium

The present application relates to a data processing method, an accelerator, a computer device and a readable storage medium, and relates to the field of computer technology. The method comprises: performing multiple circular movements of the element data at K positions in the weight data segment according to a preset moving direction to obtain K data sequences; sorting the K data sequences so that the element data at the first position is arranged in a set numerical order; constructing a target data sequence according to the element data at the second position in the sorted K data sequences; determining the target sorting identifier corresponding to the weight data segment; performing zero-run encoding on the target sorting identifier and the target data sequence to obtain a compressed weight data segment. The method can be used to adjust the distribution of zero values ​​in the data sequence, effectively improve the weight data compression effect, improve the data interaction efficiency of the neural network model, and thus improve the accelerator computing power.
Owner:深圳市欧冶半导体有限公司

Binary Image Compression Encoding and Decoding Method Based on Base62 Encoding

This invention relates to a binary image compression and decoding method based on Base62 encoding. The method involves converting the original binary image to Base32 to generate a Base32 two-dimensional array; setting the number of compressed bytes; compressing the Base32 array in blocks according to the number of compressed bytes to create an index matrix; performing a first compression on the Base32 two-dimensional array based on the index matrix; and performing a second compression on consecutive empty data segments appearing in the first compression result, based on the characteristics of numerous white blocks and similar adjacent rows in printed labels, using run-length encoding and character substitution algorithms. The resulting binary image compression is lossless, achieving a high compression ratio. Furthermore, being based on Base62 encoding, it is suitable for network transmission. The Base62 encoding table is fixed, simplifying decoding and meeting the needs of narrowband transmission in the Internet of Things (IoT) and decompression requirements of low-performance terminals.
Owner:SHANGHAI SEARI INTELLIGENT SYST CO LTD

Encoding a binary image

In various examples there is a method for encoding a binary image, the method comprising receiving the binary image; performing run-length encoding on pixel data of the binary image to produce run-length encoded data; performing differential encoding on the run-length encoded data to produce differential encoded data; performing variable length encoding on the differential encoded data to produce variable length encoded data; and applying a lossless compressor to the variable length encoded data to produce compressed data, the compressed data being an encoded binary image.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

WebGL-oriented hydrological grid data coding and rendering method and system

The invention discloses a WebGL-oriented hydrological grid data coding and rendering method and system, and relates to the technical field of water conservancy data visualization, and the method comprises the steps: carrying out the preprocessing of hydrological grid data, and carrying out the blocking according to a preset time length, and obtaining a plurality of time data blocks; performing joint coding of differential coding and run length coding on the water level data in each time data block, and performing polar coordinate quantization coding on the flow rate data in each time data block to obtain coded hydrological grid data; constructing a WebGL rendering pipeline based on pre-calculation and a double-buffering mechanism; and based on a WebGL rendering pipeline fragment shader, carrying out fusion rendering on the encoded hydrological grid data. The technical problems that the real-time interaction requirement cannot be met and the bandwidth is wasted in the prior art are solved.
Owner:BEIJING AEROSPACE SPACE VIEW INFORMATION TECH

A method for storing image data based on big data

The invention relates to an image data storage method based on big data. The method comprises the following steps: performing bit stratification on a grayscale image to be stored to obtain all enhanced layers, calculating a long run advantage metric value and a short run advantage metric value of each enhanced layer according to a bit run matrix of each enhanced layer, compressing each enhanced layer by using run-length coding and Hough coding to obtain a compression efficiency of each enhanced layer, obtaining a most suitable compression method for each enhanced layer by using a neural network, obtaining a grayscale image to be stored and an edge binary image of each enhanced layer to obtain a confusion matrix of each enhanced layer, calculating a recall rate and an error rate of edge detection of each enhanced layer to obtain an evaluation value of each enhanced layer, obtaining a transmission order according to the evaluation value, and storing image data according to the encoding method and transmission order of each enhanced layer by using a storage function of a big data system, thereby improving transmission efficiency and retaining edge details.
Owner:SHENZHEN MEIMEI NETWORK TECHNOLOGY CO LTD

System and methods for processing spatial data

A system for processing spatial data may be designed to receive neural network outputs corresponding to a first spatial data set, and translate the neural network outputs corresponding to the first spatial data set based on the motion between a second spatial data set and the first spatial data set. The system may perform zero-gap run length encoding on the neural network outputs to store the neural network outputs in memory. The system may also perform on-the-fly skip zero decoding and bilinear interpolation to translate the neural network outputs.
Owner:CORNELL UNIVERSITY

Connected component marking method and device, electronic equipment and storage medium

The invention discloses a connected component marking method and device, electronic equipment and a storage medium, and the method comprises the steps: building a corresponding row run length index table and a run length coding table for obtained image data; scanning the run length index table from top to bottom, and processing the run length line by line; traversing the run length coding table, and for the currently traversed run length, judging whether the run length is adjacent to the first run length of the previous row; if the run length is adjacent to the first run length of the last row, the connected component mark of the first run length is given to the run length, and for other run lengths adjacent to the run length after the first run length in the last row, the connected component mark of the first run length is given to the connected component mark of the first run length; establishing an equivalence relationship between the connected component mark of the current run and the connected component marks of the other runs, and updating an equivalence class table; and traversing the run length coding table again, if the connected component mark of the currently traversed run length is 0, creating a new connected component mark for the run length, otherwise, updating the connected component mark of the run length by using the mark in the equivalence class table. According to the technical scheme provided by the invention, the connected component marking method based on run length coding is higher in efficiency and less in occupied resources.
Owner:BEIJING SMARTER EYE TECH CO LTD +1

Data processing method and data processing apparatus

The present invention proposes a data processing method, a data processing apparatus, an electronic device, and a computer-readable storage medium. The method includes: in response to a data processing instruction, segmenting an original data to obtain multiple data segments of the original data to enable parallel processing of the multiple data segments, wherein the multiple data segments includes a first data segment; determining whether the first data segment is suitable for using a preset run-length encoding; and when the first data segment is suitable for using the run-length encoding, using the run-length encoding to perform a run-length encoding processing on the first data segment. According to some embodiments, the original data is initially segmented into multiple data segments, and each data segment can be processed independently and concurrently, thereby enhancing the speed of data compression processing.
Owner:SHENZHEN CORERAIN TECH CO LTD

Binary image encoding

In various examples, a method for encoding a binary image comprises the steps of: receiving a binary image; performing run-length encoding on pixel data of the binary image to generate run-length encoded data; performing differential encoding on run-length encoded data to generate differentially encoded data; performing variable-length encoding on differentially encoded data to generate variable-length encoded data; and applying a lossless compressor to variable-length encoded data to generate compressed data, wherein the compressed data is the encoded binary image.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC