Skip to content

Ch4rg3r/florence2-sharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Florence2

This library implements the Florence-2-base model for advanced image understanding tasks in C#.

Features

  • Image captioning (concise to detailed)
  • Optical Character Recognition (OCR)
  • Region-based OCR
  • Object detection
  • Optional phrase grounding

Quick Start

using Florence2;

var modelSource = new FlorenceModelDownloader("./models");
await modelSource.DownloadModelsAsync();
var model = new Florence2Model(modelSource);

using var imgStream       = ...;
var textForPhraseGrounding = ...

var results = modelSession.Run(task, imgStream, textInput: textForPhraseGrounding);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%