Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c323bd199f | ||
|
|
abff4c6926 |
+2
-1
@@ -1 +1,2 @@
|
||||
.idea
|
||||
.idea
|
||||
*/img
|
||||
@@ -0,0 +1,11 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
def read_img(img_path):
|
||||
inner_img = cv2.imread(img_path)
|
||||
if inner_img is None:
|
||||
raise FileNotFoundError("Check your inner_img")
|
||||
return inner_img
|
||||
|
||||
if __name__ == '__main__':
|
||||
img = read_img('../img/1.jpeg')
|
||||
Reference in New Issue
Block a user