Code Monkey home page Code Monkey logo

video-summarization's Introduction

Video-Summarization

Using OpenCV for Python

Project Highlights


Reading and Writing Images :

Reading images using OpenCV functions : img_matrix = cv2.imread(src, conversion) -> src is the name of the image and conversion can be 0 for grayscale and 1 for coloured images. One can also use OpenCV constants as cv2.IMREAD_GRAYSCALE for grayscale and cv2.IMREAD_COLOR for coloured(without any alpha factor) and cv2.IMREAD_UNCHANGED for loading the alpha factor(transparency).

Writing images using OpenCV functions :cv2.imwrite(dst, src) -> dst is the name of the desired file name saving the image and src is the image matrix

Showing images: imshow(title, img_matrix) -> title can be set to any string and img_matrix is the image matrix

Forming Histogram : Counting the frequency of all the intensities starting from 0 to 255 and then plotting the frequency distribution using pylab. Example h is the array containing frequency distribution then
import pylab as plt
plt.title('Title')
plt.plot(h)
plt.show()



Histogram Equalization : A technique for image enhancement
Results of Histogram equalizations and comparisons with and without using OpenCV functions



Image Segmentation : Without using any OpenCV functions. Based on Global Thresholding


Results of Image Segmentation

<img src="result_segmentation2.png"



Results of Image Segmentation
<img src="result_segmentation.png"

video-summarization's People

Contributors

sr77 avatar

Watchers

James Cloos 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.