Giter Site home page Giter Site logo

grace-hephzibah / discovering-opencv Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 57.24 MB

I am learning OpenCV in Python

Home Page: https://www.youtube.com/watch?v=WQeoO7MI0Bs&list=PLMoSUbG1Q_r9p7iYBg6z6tZP002DAJ41H&index=1

Python 97.03% PowerShell 0.01% Batchfile 0.01% C 2.36% Fortran 0.06% Cython 0.53%
opencv-python color-dete contours crop-image face-detection joining-images resize-images shape-detection shapes text

discovering-opencv's Introduction

OpenCV-Python

This repository is a place where all the codes related to OpenCV is posted.

Topics

  • Introduction to Images
  • Installations
  • Chapter 01: Read Images, Videos and Webcams
  • Chapter 02: Basic Functions
  • Chapter 03: Resize and Crop
  • Chapter 04: Shapes and Text
  • Chapter 05: Warp Perspective
  • Chapter 06: Joining Images
  • Chapter 07: Colour Detection
  • Chapter 08: Contour / Shape Detection
  • Chapter 09: Face Detection

Installations

  • Install Python 3.7.6 -> It works well with OPENCV
  • Install PyCharm -> A free comfortable IDE

Packages to install

  • opencv-python --> This is the OPENCV Package
  • numpy --> Used in arrays to analyse the images

Imported as

  • import cv2
  • import numpy as np

Introduction to Images

Consider a 2d-box of dimension (10 x 10). Draw equal lines such that each interior square is (1 x 1). Now there are 100 such small squares in the 2d-box.

Every shaded region (black) is denoted by a value 0. And every non-shaded region (white) is denoted by a value 1. In technical terms, each sqaure is a pixel.

Types of Images

  • VGA -> 640 x 480
  • HD -> 1280 x 720
  • FHD -> 1920 x 1080
  • 4K -> 3840 x 2160

Black and White Images

Generally 2^8 = 256 bit resolution is used.

  • 0 is black
  • 255 is white
  • The rest are shades of gray

Those images are called 8 bits or 256 levels.

Coloured Images

Coloured images have 3 channels. They are RGB.

  • RGB stands for Red Green Blue In OpenCV Convention, BGR term is used instead of RGB.

discovering-opencv's People

Contributors

grace-hephzibah avatar

Stargazers

 avatar

Watchers

 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.