Patent attributes
A method for image compression is described. The method compresses computer images for efficient transfer of consecutive compressed images through a network. The method comprises loading two consecutive images, fuzzy comparing the two consecutive images, calculating the total different number between the two consecutive images, and determining an encoding algorithm, such as run-length and delta-modulation (RLEDM) or JPEG, according to the total different number. The fuzzy comparison eliminates deviations caused by capturing errors. The RLEDM encoding algorithm of the invention only deals with image differences between the two consecutive images, including line pattern indexes and line patterns, and depends on a minimum encoding size rule to further determine the encoding algorithm, such as a direct encoding, a run-length encoding or a delta-modulation encoding. The method provides an improved encoding algorithm by using a strategy where different circumstances each involve adopting an optimum method to reduce a bandwidth requirement of networks.