| CPC H04N 19/176 (2014.11) [G06T 7/11 (2017.01); G06V 10/764 (2022.01); G06V 30/414 (2022.01); H04N 19/154 (2014.11)] | 20 Claims |

|
1. A computer-implemented method for compressing a video file, the method comprising:
determining, using a machine-learned model and for each block of multiple blocks of which a frame of the video file is composed, text blocks and non-text blocks, the text blocks classified by the machine-learned model as including at least some text and the non-text blocks classified by the machine-learned model as not including text;
generating a segment map of the frame, the segment map identifying the text blocks or the non-text blocks of the frame; and
encoding, based on the segment map, the frame to generate an encoded frame of the video file in which the text blocks are encoded using a first compression ratio, a first subset of the non-text blocks are encoded using a second compression ratio, and a second subset of the non-text blocks are encoded using a third compression ratio, the first compression ratio resulting in higher video quality than the second compression ratio and the second compression ratio resulting in higher video quality than the third compression ratio.
|