Doc-VLMs-v2-Localization is a demo app for the Camel-Doc-OCR-062825 model, fine-tuned from Qwen2.5-VL-7B-Instruct for advanced document retrieval, extraction, and analysis. It enhances document understanding and also integrates other notable Hugging Face models.
3
stars
12
commits
Python
primary language
Jul 13, 2025
updated
A comprehensive multi-modal AI application that combines document analysis, optical character recognition (OCR), video understanding, and object detection capabilities using state-of-the-art vision-language models.
# Clone the repository
git clone https://github.com/PRITHIVSAKTHIUR/Doc-VLMs-v2-Localization.git
cd Doc-VLMs-v2-Localization
# Install dependencies
pip install -r requirements.txt
gradio
spaces
torch
numpy
pillow
opencv-python
transformers
qwen-vl-utils
python app.py
The application will launch a Gradio interface accessible through your web browser.
generate_image(model_name, text, image, **kwargs)Process image inputs with selected model
generate_video(model_name, text, video_path, **kwargs)Analyze video content with temporal understanding
run_example(image, text_input, system_prompt)Perform object detection with bounding box output
downsample_video(video_path)Extract representative frames from video files
rescale_bounding_boxes(boxes, width, height)Convert normalized coordinates to image dimensions
# Query: "convert this page to doc [text] precisely for markdown"
# Input: Document image
# Output: Structured markdown format
# Query: "detect red and yellow cars"
# Input: Street scene image
# Output: Bounding boxes around detected vehicles
# Query: "explain the ad video in detail"
# Input: Advertisement video file
# Output: Comprehensive video content analysis
This project is licensed under the MIT License. See LICENSE file for details.
For issues and questions:
12 commits
Python
100.0%
Doc-VLMs-v2-Localization is a demo app for the Camel-Doc-OCR-062825 model, fine-tuned from Qwen2.5-VL-7B-Instruct for advanced document retrieval, extraction, and analysis. It enhances document understanding and also integrates other notable Hugging Face models.
3
stars
12
commits
Python
primary language
Jul 13, 2025
updated
A comprehensive multi-modal AI application that combines document analysis, optical character recognition (OCR), video understanding, and object detection capabilities using state-of-the-art vision-language models.
# Clone the repository
git clone https://github.com/PRITHIVSAKTHIUR/Doc-VLMs-v2-Localization.git
cd Doc-VLMs-v2-Localization
# Install dependencies
pip install -r requirements.txt
gradio
spaces
torch
numpy
pillow
opencv-python
transformers
qwen-vl-utils
python app.py
The application will launch a Gradio interface accessible through your web browser.
generate_image(model_name, text, image, **kwargs)Process image inputs with selected model
generate_video(model_name, text, video_path, **kwargs)Analyze video content with temporal understanding
run_example(image, text_input, system_prompt)Perform object detection with bounding box output
downsample_video(video_path)Extract representative frames from video files
rescale_bounding_boxes(boxes, width, height)Convert normalized coordinates to image dimensions
# Query: "convert this page to doc [text] precisely for markdown"
# Input: Document image
# Output: Structured markdown format
# Query: "detect red and yellow cars"
# Input: Street scene image
# Output: Bounding boxes around detected vehicles
# Query: "explain the ad video in detail"
# Input: Advertisement video file
# Output: Comprehensive video content analysis
This project is licensed under the MIT License. See LICENSE file for details.
For issues and questions:
12 commits
Python
100.0%