Skip to content

Extract the text information from a image , by using BLIP and CLIP

Notifications You must be signed in to change notification settings

GrandpaXun242/Img2Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Img2text

Execute command

from img2text import *
# test script
blip_model, clip_model, clip_preprocess, dtype = load()
import glob
img_path = "./test.jpg"
pil_image = Image.open(img_path).convert("RGB")
res = img2text(pil_image, clip_model, clip_preprocess, blip_model, dtype)
print(res)

Demo

test img

Description: a woman with a ponytail and a white shirt on posing for a picture with a white background and a white background, detailed face, Adrian Zingg, classical realism, a photorealistic painting.

About

Extract the text information from a image , by using BLIP and CLIP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages