Text Image Encoding with Aligned Position Vector Signaling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing high efficiency video coding (HEVC) technologies exhibit low encoding efficiency for images containing text content due to the inefficient encoding of position vectors, which require a large number of bits when encoding images with text.
Innovation Solution
An encoding method that involves performing alignment processing on a target image to obtain a target region, determining position vector differences relative to a target alignment size, and encoding position identification data and a flag bit into a bitstream, reducing the number of bits required for encoding position vectors.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If motion compensation encoding is used for images containing text content, then encoding accuracy is maintained, but the number of bits required for encoding position vectors increases significantly
Solution Approach 1:
The patent segments the position vector encoding into two parts: a coarse position identification data (aligned to target alignment size) and a fine adjustment flag bit. This segmentation allows the majority of the position information to be encoded efficiently using alignment-based identification, while only the residual offset requires additional bits, thereby reducing the total bit count while maintaining encoding accuracy.
Solution Approach 2:
The patent changes the parameter representation by introducing target alignment size as a new parameter. Instead of directly encoding the full position vector, the system encodes position identification data based on aligned boundaries and uses a flag bit to indicate alignment status. This parameter transformation reduces the bit cost for position vector encoding while preserving the ability to represent precise positions.
2Quantity of substance
If alignment processing is performed on target image based on target alignment size, then bit cost for encoding position vectors is reduced, but encoding complexity increases
Solution Approach 1:
The patent performs alignment processing as a preliminary action before the main encoding process. By pre-aligning the target image to the target alignment size and pre-calculating the position identification data and flag bits, the system reduces the complexity of the subsequent encoding process. The alignment-based position identification is computed in advance, which simplifies the encoding workflow despite adding an initial processing step.
3Productivity
If position identification data based on target alignment size is used, then encoding efficiency for text content is improved, but decoding complexity increases
Solution Approach 1:
The patent incorporates a feedback mechanism where the first flag bit indicates whether the position identification data is aligned to the target alignment size. During decoding, this flag bit provides feedback information that guides the reconstruction process: if the flag indicates alignment, the decoder can directly use the position identification data; if not, the decoder applies the appropriate offset adjustment. This feedback-based approach simplifies the decoding logic despite the enhanced encoding capability.
Data Source
Figure 1
Figure 2
Figure 3~5
AI summary
This application pertains to the field of image compression, and discloses an encoding method, apparatus, and device, a decoding method, apparatus, and device, a storage medium, and a computer program. The method includes: obtaining a target region; determining a position vector difference of a current block to be encoded in the target region; determining, based on a target alignment size and the position vector difference, position identification data corresponding to the position vector difference and a first flag bit; and encoding the position identification data and the first flag bit into a bitstream. Because the position identification data may be a multiple of the position vector difference relative to the target alignment size, a bit cost for encoding the position identification data corresponding to the position vector difference and the first flag bit is usually less than a bit cost for directly encoding the position vector difference. Encoding the position identification data and the first flag bit into the bitstream can effectively reduce a quantity of bits required for encoding the position vector difference, thereby ensuring relatively high efficiency of encoding an image including text content.