OpenCV: Difference between revisions

From David's Wiki
Line 9: Line 9:


==Usage==
==Usage==
===Getting Started===
<syntaxhighlight lang="python>
import cv2
# Use 0 to read in grayscale
my_image = cv2.imread("my_image.png", 0)
</syntaxhighlight>


==Resources==
==Resources==
* [https://docs.opencv.org/master/d6/d00/tutorial_py_root.html OpenCV Tutorial]
* [https://docs.opencv.org/master/d6/d00/tutorial_py_root.html OpenCV Tutorial]

Revision as of 17:58, 11 December 2019

OpenCV is a very popular computer vision and image processing library for Python

Installation

  • Download Python 3
pip install opencv-python


Usage

Getting Started

import cv2

# Use 0 to read in grayscale
my_image = cv2.imread("my_image.png", 0)

Resources