Coder Social home page Coder Social logo

microcv's Introduction

MicroCV

Petri dish OpenCV feature detection

Installation

Assuming Python 3 and Pip are installed, run python -m pip install -r requirements.txt to set up the necessary requirements. Replace python with your own python installation alias if needed.

Usage

From the command line, run python main.py IMAGE_FILENAME, where IMAGE_FILENAME is the petri dish image to analyze (e.g. example1.png).

Quit the Python window by pressing q, or quitting the process from the command line.

Save a snapshot of the analyzed image (with circles overlaid) by pressing s. This image will be saved in the saved_images folder.

Interface

MicroCV interface screenshot

The provided sliders may be used to refine the feature detection parameters. The sliders correspond to the following parameters:

  • min_dist: Minimum distance between detected centers.
  • edge_threshold: Upper threshold for the internal Canny edge detector.
  • centre_threshold: Threshold for center detection.
  • min_radius: Minimum radius to be detected. If unknown, put zero as default.
  • max_radius: Maximum radius to be detected. If unknown, put zero as default.

Note that even with optimal settings, some features may not be detected. MicroCV is a tool intended to aid microbial growth enumeration -- not automate it entirely. It is your responsibility to manually add false negatives / remove false positives from your tally.

Background info

The algorithm behind MicroCV works in three steps:

  • first, it pre-processes the provided image by gray-scaling and blurring it
  • next, it applies Circle Hough Transforms to the image with parameters defined by the interface sliders, extracting the locations of all detected growths
  • lastly, circles are drawn at the extracted location and radius.

While binary mask -based algorithms are generally preferred for petri dish analysis, this CHT-based algorithm performs better given petri dish images with complex backgrounds, as was specified here.

microcv's People

Contributors

lsm20002 avatar

Stargazers

 avatar Tom Blomfield avatar

Watchers

James Cloos avatar Luca Mehl avatar

Forkers

benjamins81

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.