GithubHelp home page GithubHelp logo

archity / image-manipulation Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 3.69 MB

Repository for documenting about some of the image manipulation techniques using Python and other open-source libraries.

License: MIT License

Python 8.30% Jupyter Notebook 91.70%

image-manipulation's Introduction

Image Manipulation

Repository for documenting about some of the image manipulation techniques using Python and other open-source libraries.

1. Instance Segmentation and Object Detection

  • Make use of pixellib library
  • Use of a Mask R-CNN model
    • trained on coco dataset
  • Python script here

2. Basic Image Manipulation using Pillow

Some basic PIL functions for image processing

  • Merge two images
  • Add/subtract two images
  • Convert to grayscale
  • Convert to Black-and-White
  • Colour Inversion
  • Rotation
  • Gaussian Blur
  • Edge Detection

Python notebook with the above implemented operations can be accessed here.


3. OpenCV based Basic Stuff

  • Capturing webcam feed
  • Multiply, manipulate and fit to grid
  • Drawing overlay shapes and text on a webcam feed
  • Can be generalized to any image or video
  • Creating a masking image to detect a certain range of colour
  • Applying mask to the video frame/image using bitwise_and
  • Shi-Tomasi Corner Detector

Input:

  • Base input image:

  • Template image(s), aka images to detect:

We can make use of one or several methods for performing the template matching. Available methods are:

methods = [cv2.TM_CCOEFF,
            cv2.TM_CCOEFF_NORMED,
            cv2.TM_CCORR,
            cv2.TM_CCORR_NORMED,
            cv2.TM_SQDIFF,
            cv2.TM_SQDIFF_NORMED]

Output:

  • Blue car

  • Red car

4. Image Stitching

  • A simple Python script to stitch all the images in a specific directory to create a final collage.

  • Pillow library utilized for image reading/writing

  • Images are stitched in alphabetical order, from left to right, top to bottom

  • Preserves the quality, as it stitches the images as it is, without compressing

  • Python script here

  • Output snapshot:

image-manipulation's People

Contributors

archity avatar

Stargazers

 avatar

Watchers

 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.