Giter Site home page Giter Site logo

opencv's Introduction

##Requirements:

  • Python 2.7 with numpy and matplotlib
  • OpenCV 3.1

##Usage: ###draw_canvas.py

python draw_canvas.py

###merge_images.py

python merge_images.py

(put OpenCV logo 'thing.png' on top of my picture 'some.png')

##OpenCV summary

  1. GUI features (draw_canvas.py)
  • Read, show, write image, video
  • Draw line, circle, rectangle, ellipse, polygon
  • Add text to image, video
  • Mouse events
  • Trackbar
  1. Core operations (merge_images.py)
  • ROI (Region of Image)
  • Image properties (shape, size)
  • Split and Merge image channels (BGR image => B, G, R)
  • Make borders for image
  • Add images
  • Image blending: g(x) = (1-a)f0(x) + af1(x)
  • Bitwise operations: and, or, not, xor
  1. Image processing (video/video.py)
  • Change colorspaces (BGR => grayscale or BGR => HSV)
  • Image Thresholding
  • Geometric Transformations (move, scale, rotate)
    • Affine Transformation (2D): 2x3 matrix
    • Perspective Transformation (3D): 3x3 matrix
  • Smooth image (blur, denoise):
    • 2D convolution, filter, kernel
    • LPF removes noise, HPF detects edges
    • Averaging, Gaussian, Median, Bilateral (preserve edges)
  • Morphological Transformations: + Erosion removes noise but shrinks things, Dilation makes them big again
    • Opening = erosion + dilation
    • Closing = dilation + erosion
    • Morphological Gradient = dilation - erosion
    • Top Hat = origin - opening
    • Black Hat = closing - origin
  • Image Gradients
  • Canny Edge Dectection
  • Hough Line, Circle Transform
  • Image Pyramids: different resolutions of a image stack together
  • Contours: boundaries of a shape with same intensity
  • Histograms: intensity distribution of an image
    • Histogram equalization: improve the contrast
  • Fourier Transform
  • Template Matching
  1. Feature Detection
  2. Video Analysis (video/object_tracking.py)
  • Object tracking
  • Optical Flow
  • Background Subtraction
  1. Camera Calibration and 3D Reconstruction
  2. Machine Learning
  • kNN
  • SVM
  • k-Means
  1. Computational Photography
  • Image Denoising: average similar patches in different places
  • Image Inpainting

opencv's People

Contributors

trangnm58 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.