Home  /  File formats  /  rgf

RGF file format

Extension.rgf
Categoryimages
DescriptionThe RGF (Recognition Grade Format) file format is a binary image file format used by optical character recognition (OCR) software to store images of printed text along with the corresponding text recognition results.
Technical detailsThe RGF format is based on a simple run-length encoding algorithm, where pixels of the same color are represented by a single byte, followed by a byte indicating the number of times the pixel color is repeated. The image data is stored in row-major order, with each row starting on a byte boundary. In addition to the image data, RGF files also contain a header that includes information such as the image resolution, the number of colors used, and the size of the image data. The header is typically followed by an index table that allows for faster access to specific portions of the image data.