Giter VIP home page Giter VIP logo

justusschock / shapedata Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 562 KB

library to modify images and the corresponding landmarks

Home Page: https://shapedata.rtfd.io

License: GNU Affero General Public License v3.0

Python 100.00%
landmark-detection image-processing image-manipulation image-augmentation image-transformation keypoints landmarks landmarks-resizer landmarking shape shape-analysis delira

shapedata's Introduction

ShapeData

PyPI version Build Status Documentation Status codecov LICENSE

This repository contains image classes to perform transformations on images with landmarks (similar to menpo but with much less dependencies). It also provides some basic Datasets for delira

Installation

This package can be installed via pip install shapedata

Basic Usage

To load a single image with landmarks you can simply do

import shapedata
img = shapedata.SingleShapeSingleImage2D.from_files("./example_files/lenna.png")

and to view this image do

from matplotlib import pyplot as plt
img.view(view_landmarks=True)
plt.show()

To augment the image you can use img.transform() to transform the image with the origin as transformation base or img.transform_about_centre() to use the images's center as transformation base. Transformations as img.translate(), img.rotate(), img.rescale() or img.resize() are also implemented and will fall back on img.transform() or img.transform_about_centre()

To access the image itself you can do img.img and accessing the landmarks works with img.lmk for instances of SingleShapeSingleImage For further usage have a look at the datasets and docstrings.

Licensing

Copyright (C) 2020 by RWTH Aachen University
http://www.rwth-aachen.de

License:
This software is dual-licensed under:
• Commercial license (please contact: [email protected])
• AGPL (GNU Affero General Public License) open source license

shapedata's People

Contributors

justusschock avatar nkpmedia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nkpmedia

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.