Giter VIP home page Giter VIP logo

logodetect's Introduction

Logo Detect

Author: Remigijus Kiminas

Logo detection utility. Tells does supplied logo is on image. Can be used to find image on image also. Produces quite stable results. Suplied argument have to be transparent logo PNG.

Usage example: Default search

./logo-detect 'testcases/logo.png' 'testcases/1.jpg'

Color search:

./logo-detect 'testcases/logo.png' 'testcases/1.jpg' color

Multiple logos or multiple images to test against

./logo-detect 'testcases/logo.png|testcases/logo1.png' 'testcases/1.jpg|testcases/2.jpg'

  • Output:

  • Success case

  • LOGO_DETECTED|[logo_path]|[image_tested]|0.193502

  • On failure:

  • LOGO_NOT_DETECTED|[logo_path]|[image_tested]|0.698299

  • Threshold value for gradient mode

  • Utility has 0.28 as treshold value. 0.00000 - best match, 1.00000 - worst match.

  • Threshold value for color mode

  • Utility has 0.10 as treshold value. 0.00000 - best match, 1.00000 - worst match.

Best practice for best result.

  • If logo you want to find is semi transparent, small, made of text and it color influences background color you should use gradient mode, the default one.
  • If your logo is solid color without transparent body I suggest to use color mode search. By my testing in these cases it produces better results.
  • Mainly result quality depends on how well you prepare logo, remove unnecesary background. I have also notices if logo is quite big it's better to use color mode.
  • It's also good idea to limit process cpu usage. It can be done with cpulimit utility.

Implementation notices

logodetect's People

Contributors

remdex avatar ashrafnet avatar

Watchers

James Cloos avatar  avatar  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.