mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-07 03:16:41 +00:00
13 lines
250 B
Markdown
13 lines
250 B
Markdown
|
# OpenCV Lib
|
||
|
|
||
|
## Bascis
|
||
|
|
||
|
### Read Image & Video
|
||
|
|
||
|
```py
|
||
|
import cv2 as cv
|
||
|
|
||
|
img = cv.imread("filename") # read and save the image as matrix of pixels
|
||
|
cv.imgshow("Window Name", image) # show an image in a named window (takes name and pixel matrix)
|
||
|
```
|