AB
AiBoss
project

HunyuanOCR - Tencent Hunyuan's end-to-end OCR visual language model

HunyuanOCR is an open-source, end-to-end OCR visual language model developed by Tencent's Hunyuan team. Based on Hunyuan's native multimodal architecture, it achieves state-of-the-art performance for multiple OCR tasks with only 1B parameters. It features a highly efficient and lightweight architecture...

What is HunyuanOCR?

HunyuanOCR is an open-source, end-to-end OCR visual language model developed by Tencent's Hunyuan team. Leveraging Hunyuan's native multimodal architecture, it achieves state-of-the-art (SOTA) performance for multiple OCR tasks with only 1B parameters. It boasts a highly efficient and lightweight architecture, outputting optimal results with a single instruction and inference, making it more convenient and efficient than traditional cascaded solutions. Supporting over 100 languages, it handles both single-language and multi-language mixed documents with ease. HunyuanOCR covers classic OCR tasks, including text detection and recognition, complex document parsing, open-field information extraction, and video subtitle extraction, and supports end-to-end image translation and document question answering.

HunyuanOCR's main functions

  • Text detection and recognitionIt can detect and recognize text in images, outputting text content and coordinate information, and is suitable for various scenarios such as documents, artistic fonts, street views, and handwriting.
  • Complex document parsingIt supports the digitization of multilingual documents, organizes the text content in the document in the order of reading, represents formulas in LaTeX format, and expresses tables in HTML format.
  • Open field information extractionIt parses fields of interest (such as name, address, and company) in common cards and tickets in standard JSON format, facilitating information extraction and subsequent processing.
  • Video subtitle extractionIt can automatically extract subtitles from videos, including monolingual and bilingual subtitles, and is suitable for video content processing and translation scenarios.
  • Image text translationIt supports translation of 14 less commonly spoken languages (such as German, Spanish, Japanese, etc.) into Chinese or English, as well as Chinese-English translation, which is suitable for cross-language document processing and communication.

HunyuanOCR's technical principles

  • End-to-end architectureIt adopts a fully end-to-end training and inference paradigm, where the model goes directly from the input image to the output result without the need for complex cascaded processing, thus improving efficiency and accuracy.
  • Multimodal fusionBased on the hybrid native multimodal architecture, visual and linguistic information are deeply integrated, enabling the model to better understand and parse the text content in images.
  • High-quality data trainingThe model is trained using large-scale, high-quality application-oriented data and combined with online reinforcement learning, enabling it to perform well in various scenarios and exhibit strong generalization ability.
  • Lightweight designWith only 1B of parameters, it reduces computational costs and deployment difficulty while maintaining high performance through efficient model structure design, making it suitable for various hardware environments.
  • Multilingual supportBy optimizing the model's language understanding and generation capabilities, it supports more than 100 languages, can handle complex documents with mixed languages, and adapts to global application scenarios.

HunyuanOCR's project address

  • Project official websitehttps://hunyuan.tencent.com/vision/zh?tabIndex=0
  • Github repositoryhttps://github.com/Tencent-Hunyuan/HunyuanOCR
  • Huggingface model libraryhttps://huggingface.co/tencent/HunyuanOCR
  • Technical Report: https://github.com/Tencent-Hunyuan/HunyuanOCR/blob/main/HunyuanOCR_Technical_Report.pdf
  • Online experiencehttps://huggingface.co/spaces/tencent/HunyuanOCR

Application scenarios of HunyuanOCR

  • Document processingIt is used for the digitization of multilingual documents scanned or photographed, and supports the parsing of complex documents, including the extraction and organization of text, formulas (LaTeX format) and tables (HTML format).
  • Invoice Field ExtractionIt can quickly and accurately extract and parse key fields (such as amount, date, number, etc.) from common documents (such as invoices and receipts).
  • Video subtitle extractionAutomatically extracts subtitles from videos, supporting both monolingual and bilingual subtitles, suitable for video content creation and translation.
  • Photo translationIt supports photo translation for multiple languages, translating text in images into Chinese or English, suitable for travel, study, and other scenarios.
  • Information ExtractionExtract specific fields or information from images, such as names and addresses from ID cards and business cards, and support multiple output formats.
  • Video content creationIt helps video creators quickly extract text content from videos for use in subtitle creation, content analysis, and more.
  • Education and LearningIt helps students and researchers quickly extract key information from literature and teaching materials, and supports multilingual learning and research.