Giter Site home page Giter Site logo

text-localization's Introduction

Text Localization

A setup to solve text localization or more general object detection problems without finding bounding boxes as many prevalent methods do.

DSB2018

It's basically an object detection task about finding the mask of each nuclei in given images. Detailed discription can be found here: DSB2018 To illustrate the effectness of the proposed method, I use this dataset as a starting point.

Supervision label

img1 These are example raw input images after being rescaled to a given size. ((128,128) in this case) The output of the network would be a number of w * h feature maps, where w and h are the same as the input images (128, 128). Each feature map is a probability map that corresponds to a certain property of the input image.

Classes output

The first c maps are related to the classes (2 in this case, background and nuclei, or similarly background and text). For example, in the background feature map, all pixels belong to background should be trained towards 1 and other pixels that belong to nucleis should be set to 0 instead.

Background:

ground truth: img2 network output: img3

Nuclei:

ground truth: img4 network output: img5

Offsets output

The rest f maps are related to the offsets. For instance, If given a offset of (0, 1), the value of pixel (x, y) will be decided by its relationship with pixel (x+0, y+1). If they are of the same object, then this value should be 1, and otherwise, it should be 0.

offset (1, 1)

ground truth: img6 output img7

offset (0, -2)

ground truth img8 output img9

Network

I use Unet as network architecture, and BCE Loss as loss function. (Soft dice loss might be more popular in this scenario but it seems BCE Loss has better performance in my experiment by now). You could refer to run.sh for other settings.

text-localization's People

Contributors

yiwenshaostephen avatar

Stargazers

Ashish Arora avatar

Watchers

James Cloos avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.