Skip to content

Commit

Permalink
Update config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
HichTala committed Feb 9, 2024
1 parent e3a2270 commit 8dfb847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"trained_models": "/models",
"data_path": "/data",
"webcam": 0,
"card_types": ["spell", "monster", "normal_monster", "trap", "fusion", "ritual"],
"monster": {
"colors": 0,
Expand Down
3 changes: 3 additions & 0 deletions draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def __init__(self, config, deck_list, source, debug=False):
device=device
)

if source == '0':
source = str(self.configs['webcam'])

self.results = model_regression(
source=source,
show_labels=False,
Expand Down

0 comments on commit 8dfb847

Please sign in to comment.