OpenCV Python Tutorial For Beginners 3 – How to Read, Write, Show Images in OpenCV

///OpenCV Python Tutorial For Beginners 3 – How to Read, Write, Show Images in OpenCV

OpenCV Python Tutorial For Beginners 3 – How to Read, Write, Show Images in OpenCV

FavoriteLoadingAdd to favorites

In this video on OpenCV Python Tutorial For Beginners, I am going to show How to Read, Write, Show Images in OpenCV. we will se how to use cv2.imread(‘lena.jpg’, -1) to read and image, cv2.imshow(‘image’, img) to show an image in a window,
cv2.waitKey(0) to wait for a key event, cv2.destroyAllWindows() to destroy all windows, cv2.imwrite(‘lena_copy.png’, img) to write images to file.

OpenCV github page

Gist of code I used in this video –

Install PyCharm ( Python IDE ) on Windows 10 + First Project –

Read an image
cv2.imread() Second argument is a flag which specifies the way image should be read.
flag integer value description
cv2.IMREAD_COLOR 1 Loads a color image.
cv2.IMREAD_GRAYSCALE 0 Loads image in grayscale mode
cv2.IMREAD_UNCHANGED -1 Loads image as such including alpha channel

pip is a package management system used to install and manage software packages written in Python.
OpenCV is an image processing library created by Intel and later supported by Willow Garage and now maintained by Itseez. opencv is available on Mac, Windows, Linux. Works in C, C++, and Python.
it is Open Source and free. opencv is easy to use and install.

Starting with an overview of what the course will be covering, we move on to discussing morphological operations and practically learn how they work on images. We will then learn contrast enhancement using equalization and contrast limiting. Finally we will learn 3 methods to subtract the background from the video and implement them using OpenCV.

At the end of this course, you will have a firm grasp of Computer Vision techniques using OpenCV libraries. This course will be your gateway to the world of data science.

Feel the real power of Python and programming! The course offers you a unique approach of learning how to code by solving real world problems.

#ProgrammingKnowledge #ComputerVision #OpenCV
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

source

By |2019-11-20T00:02:50+00:00November 20th, 2019|Python Video Tutorials|33 Comments

33 Comments

  1. Abhinay Yadav November 20, 2019 at 12:02 am - Reply

    Nice work brother thanks

  2. Krishna48 Prasad Sharma November 20, 2019 at 12:02 am - Reply

    sir how can find angles between two lines using openCV ..please sir comment fast..plz plz plz..emergency

  3. MD. ASIF PARVEZ SARKER November 20, 2019 at 12:02 am - Reply

    Good

  4. Hamza Shaikh November 20, 2019 at 12:02 am - Reply

    Horrible ads… literally in every 3 mints!!

  5. mahnoor sakhawat November 20, 2019 at 12:02 am - Reply

    What is meant by destroying a window? What exactly does the command destroyAllwindows does?

  6. Alfaij Mansuri November 20, 2019 at 12:02 am - Reply

    too much add man

  7. Kashim Mirza11234 November 20, 2019 at 12:02 am - Reply

    Why the hell there is no option to write code in the pycharm i mean getting start with pytcharm

  8. Muhammad Safi Ullah November 20, 2019 at 12:02 am - Reply

    Thank you for uploading this tutorial for free.

  9. Maven Wechuli November 20, 2019 at 12:02 am - Reply

    asante sana

  10. Yoann Buzenet November 20, 2019 at 12:02 am - Reply

    thank you for your work

  11. Rizwan Ali November 20, 2019 at 12:02 am - Reply

    hey, How can i get the RGB value of an image(like a red image)

  12. Jeymmy November 20, 2019 at 12:02 am - Reply

    im lost, have i download the opencv on my computer?, cause i have follow all your videos but i cant find the opencv on my computer help!

  13. Mrutyunjaya S Hiremath November 20, 2019 at 12:02 am - Reply

    I can use Jupiter notebook???

  14. Vic_DPE Wang November 20, 2019 at 12:02 am - Reply

    I noticed that the imported image had to be under same level as the py flie, or the imread not gonna work

  15. khireddine belkhiri November 20, 2019 at 12:02 am - Reply

    i think 0xFF=170 in exadecimal

  16. ogrOgr November 20, 2019 at 12:02 am - Reply

    thnx

  17. Tanmay S November 20, 2019 at 12:02 am - Reply

    Sir in k == 27: whatever I type the key in keyboard other than 's' it destroys the window. Can you tell me why?

  18. Abhyuday Shukla November 20, 2019 at 12:02 am - Reply

    I wrote the same code with IDLE PYCHARM but it give me error like
    (-251, Assertion failed, height, width>0
    Plz solve this

  19. Rohit Bharti November 20, 2019 at 12:02 am - Reply

    Python is good if ur a teacher 😎

  20. developer groot November 20, 2019 at 12:02 am - Reply

    imwrite() not working properly, doesn't save image

  21. HSP The GREAT November 20, 2019 at 12:02 am - Reply

    We can also read…our image rightttt

  22. Light Worm November 20, 2019 at 12:02 am - Reply

    Thank you

  23. Nandini November 20, 2019 at 12:02 am - Reply

    I m having problem while pasting image

  24. Aparna Srivastava November 20, 2019 at 12:02 am - Reply

    I want to know that without using if else statement if I press esc key then also we can exit from the image. so why you are using this statement.

  25. John Nunez November 20, 2019 at 12:02 am - Reply

    I figure that out … It fails to make a copy when you use the (0) option and click on the (X) to close the windows, but if instead you set the number of milliseconds to 5000. It makes a copy right after it closes! In any case this is a nice tutorial, man. Working on a "neighborhood speed detector" (things are really crazy with lunatics speeding thru my street here and this is a nice way to cooperate with law enforcement)!

  26. John Nunez November 20, 2019 at 12:02 am - Reply

    imwrite() hangs and i doesn't create a copy?

  27. Sankalp Sharma November 20, 2019 at 12:02 am - Reply

    man while running imread command it shows none please help!!!!!

  28. francis xavier November 20, 2019 at 12:02 am - Reply

    sir , showing error in cv2.imshow

  29. Shivan Mohammed November 20, 2019 at 12:02 am - Reply

    Print (' I salute you ')

  30. Arlecch1no November 20, 2019 at 12:02 am - Reply

    You are amazing , thanks alot !

  31. Jhoan Martinez Silva November 20, 2019 at 12:02 am - Reply

    we will learn clasification models, and ahow to make a csv file from a images dataset and all that stuff? big thanks for the tutorials

  32. RagHelen November 20, 2019 at 12:02 am - Reply

    It is very strange, that I would have to install something else from an unknown place as an interpreter to be able to use CV.

  33. himanshu shekhar November 20, 2019 at 12:02 am - Reply

    Thanks for this great tutorial

Leave A Comment

*