Skip to content

Commit 1a79c3e

Browse files
committed
update version
1 parent 453c425 commit 1a79c3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

MTM/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# 1) we don't load dependencies by storing it in __init__.py
33
# 2) we can import it in setup.py for the same reason
44
# 3) we can import it into your module module
5-
__version__ = '1.5.3post1'
5+
__version__ = '1.5.4'

test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@
66
import MTM, cv2
77
import numpy as np
88

9+
print(MTM.__version__)
10+
911
#%% Get image and templates by cropping
1012
image = coins()
1113
smallCoin = image[37:37+38, 80:80+41]
1214
bigCoin = image[14:14+59,302:302+65]
1315

1416

1517
#%% Perform matching
16-
tableHit = MTM.matchTemplates([('small', smallCoin), ('big', bigCoin)], image, score_threshold=0.6, method=cv2.TM_CCOEFF_NORMED, maxOverlap=0) # Correlation-score
18+
tableHit = MTM.matchTemplates([('small', smallCoin), ('big', bigCoin)], image, score_threshold=0.3, method=cv2.TM_CCOEFF_NORMED, maxOverlap=0) # Correlation-score
1719
#tableHit = MTM.matchTemplates([('small', smallCoin), ('big', bigCoin)], image, score_threshold=0.4, method=cv2.TM_SQDIFF_NORMED, maxOverlap=0) # Difference-score
1820

1921
print("Found {} coins".format(len(tableHit)))
2022
print(tableHit)
2123

24+
2225
#%% Display matches
2326
Overlay = MTM.drawBoxesOnRGB(image, tableHit, showLabel=True)
2427
plt.figure()

0 commit comments

Comments
 (0)