-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.py
43 lines (30 loc) · 1.39 KB
/
parameters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 6 12:07:22 2020
@author: ivan
"""
parameters = {"URL" : "http://192.168.0.66:8080/shot.jpg",
# any contour that has less than this is not considered a card
'thresh_card_perc' : 0.01,
# ellipses and rectangles must mach an amount larger than this with the fitted template
'thresh_shape_match' : 0.9,
# treshold empty - half
'thresh_low' : 0.05,
# threshold half - full
'thresh_high' : 0.9,
# fonts (different OS)
'font_path_win' : 'arial.ttf',
'font_path_lin' : '/usr/share/fonts/truetype/freefont/FreeMono.ttf',
# font in results image
'font_size' : 50,
'font_color' : (255,255,255),
# show cards individually
'show_cards' : False,
# pattern
'pat_thick' : 6,
'pat_dist' : 40,
# connection
'live' : True,
'URL' : "http://192.168.0.66:8080/shot.jpg",
}