consolidate all repos to one for archive
This commit is contained in:
12
semester_4/osnove_racunalniskega_vida/Naloga_4/test1.py
Normal file
12
semester_4/osnove_racunalniskega_vida/Naloga_4/test1.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
|
||||
img = np.zeros((3,3))
|
||||
img[1,1] = 2
|
||||
img[0,2] = 2
|
||||
print(img)
|
||||
|
||||
mom = cv2.moments(img)
|
||||
print (mom['m00'])
|
||||
print (mom['m01'])
|
||||
print (mom['m10'])
|
||||
Reference in New Issue
Block a user