GithubHelp home page GithubHelp logo

phenopype / phenopype Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 26.24 MB

A phenotyping pipeline for Python

Home Page: https://www.phenopype.org

License: GNU Lesser General Public License v3.0

Batchfile 0.11% CSS 0.04% JavaScript 0.19% HTML 9.79% Python 89.86%
computer-vision image-analysis image-processing phenotyping biology-images ecology evolution phenomics

phenopype's Introduction


About pyOpenSci Author License
Testing Coverage Status Windows Ubuntu
Docs Website Website

phenopype

phenopype is a Python package for rapid extraction of phenotypic information from standardized images. It comes with a basic toolset for image preprocessing and signal-processing-based segmentation, but also leverages state of the art AI segmentation models like Fast Segment Anything through a growing set of plugins. Additionally, phenopype includes functionality for visualization of image processing results and export into various file and training data formats (json, csv, coco, ...).

phenopype is aiming to augment, rather than replace the utility of existing computer vision libraries. Put differently, phenopype does not intend to be an exhaustive library of granular image processing functions, like OpenCV, scikit-image or ImageJ, but instead provides a set of wrappers and convenient management tools to allow users to get their data fast without having to fiddle with too much code. As such, phenopype may also serve as a stepping stone for ecologists and evolutionary biologists who are interested in implementing computer vision workflows.


Quickstart

https://www.phenopype.org/docs/quickstart/

Main features

(For a complete list check the API reference)

  • image analysis workflow:
    • preprocessing (automatic reference-card and QR-code detection, colour and size correction, morphology operations)
    • segmentation (thresholding, watershed, contour-filtering, foreground-background subtraction)
    • measurement (pixel intensities, landmarks, shape features, texture features)
    • visualization (various options) and export (csv, json, ROI images, ...)
    • video analysis module for object tracking
  • project management tools to organize images and data (automatic creation of project directory tree)
  • customizable analysis-templates that allow anyone to reproduce all collected data with only a few lines of code (suitable for repositories like Dryad or OSF).

Contributions and feedback

phenopype development is ongoing and contributions towards making it more broadly applicable and user-friendly are more than welcome. This can be done by submitting issues or feature requests in the issue tracker. You can also get in touch with me directly if you would like to contribute.

How to cite phenopype

Lürig, M. D. (2021). phenopype : A phenotyping pipeline for Python. Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210x.13771

@ARTICLE{Lurig2022-pb,
  title     = "phenopype : A phenotyping pipeline for Python",
  author    = "L{\"u}rig, Moritz D",
  journal   = "Methods in ecology and evolution / British Ecological Society",
  publisher = "Wiley",
  volume    =  13,
  number    =  3,
  pages     = "569--576",
  month     =  mar,
  year      =  2022,
  copyright = "http://creativecommons.org/licenses/by-nc/4.0/",
  language  = "en",
  issn      = "2041-210X",
  doi       = "10.1111/2041-210x.13771"
}

phenopype's People

Contributors

mluerig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

phenopype's Issues

no able to get images from gallery

Hi Moritz, two things form Project 6.

  1. proj = pp.Project("project") should be replace for proj = pp.project("project") in the documentation
  2. I have got a problem getting the images for the example.

add the two snail-images from the data folder

proj.add_files(image_dir = r"../../gallery/data", include="snails")

show I get them from the main phenopype repo (I don't find them) or are they in a hidden folder during the installation? because I can't find them

Thanks

yaml-file opening closes comment window before comment has been made.

This triggers if the order of windows opening between the yaml-editor and the image window happens in a certain way.
speifically:

  1. image-window with comment opens first
  2. yaml-editor opens second. This causes the image window to close and then reopen. If you were about to write a comment, upon reopening the comment is considered done.
    I.e. If edit=false, you are now unable to enter a comment without changing to edit=true in the yaml-file.

I'm running this in a virtual windows environment that is pretty slow. It might not affect users running phenopype natively.

Function missing in release 1.0.5

Hi everyone,

I just installed phenopype via pip into my virtualenv and wanted to start with your tutortials.
It seems that the function draw_mask is missing in this release. I checked the file "core.visualization.py" in the side package folder of the virtualenv and there was no such function but one called draw_masks which takes slightly different parameters.

It the draw_mask function depricated or is this a bug?

Thanks and cheers,
Sebastian

Trailing "?" added to comments

If image window is closed with alt+enter instead of enter after writing a comment, a trailing "?" is added to the comment

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.