Skip to content

Commit d97c81d

Browse files
committed
update
1 parent c80f032 commit d97c81d

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

01-reading-image/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import cv2 as cv
1212

1313

14-
filename = "./Media/1.jpg"
14+
filename = "../Media/1.jpg"
1515

1616
image = cv.imread(filename, 1) # filename: str, flags: int
1717
# flags

01-reading-image/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
OpenCV cv2 imread()
2+
You can read image into a numpy array using opencv library. The array contains pixel level data. And as per the requirement, you may modify the data of the image at a pixel level by updating the array values.
3+
4+
To read an image in Python using OpenCV, use cv2.imread() function. imread() returns a 2D or 3D matrix based on the number of color channels present in the image. For a binary or grey scale image, 2D array is sufficient. But for a colored image, you need 3D array.
5+
6+
7+
8+
https://pythonexamples.org/python-opencv-read-image-cv2-imread/

02-writing-image/app.py

Whitespace-only changes.

02-writing-image/readme.md

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)