Giter Site home page Giter Site logo

selectivesearch's Introduction

Selective Search Implementation for Python

This is a simple Selective Search Implementation for Python

Install

$ pip install selectivesearch

Usage

It is super-simple.

import skimage.data
import selectivesearch

img = skimage.data.lena()
img_lbl, regions = selectivesearch.selective_search(img, scale=500, sigma=0.9, min_size=10)
regions
=> [{'labels': [0.0], 'rect': (0, 0, 59, 511), 'size': 15633},
 {'labels': [1.0], 'rect': (58, 0, 1, 132), 'size': 173},
 {'labels': [2.0], 'rect': (60, 18, 1, 5), 'size': 8},
 {'labels': [3.0], 'rect': (5, 57, 25, 335), 'size': 507},
 {'labels': [4.0], 'rect': (27, 166, 0, 9), 'size': 10},
 {'labels': [5.0], 'rect': (59, 498, 0, 0), 'size': 1},
 {'labels': [6.0], 'rect': (35, 484, 0, 27), 'size': 28},
 {'labels': [7.0], 'rect': (58, 122, 4, 374), 'size': 581},
 {'labels': [8.0], 'rect': (59, 40, 0, 81), 'size': 82},
 {'labels': [9.0], 'rect': (59, 0, 33, 497), 'size': 2344},
 {'labels': [10.0], 'rect': (66, 258, 22, 60), 'size': 67},
 ...

See also an example/example.py which generates : alt tag

selectivesearch's People

Contributors

exilis avatar tyberion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.