| | |
| | | |
| | | def main(): |
| | | # Query card data by each set, then merge them together |
| | | if not os.path.exists(os.path.join(Config.data_dir, 'csv')): |
| | | os.mkdir(os.path.join(Config.data_dir, 'csv')) |
| | | for set_name in Config.all_set_list: |
| | | set_name_m = set_name |
| | | if set_name_m == 'con': |
| | |
| | | with open('detect.txt', 'w') as of: |
| | | counter = collections.Counter(found_cards) |
| | | for key in counter: |
| | | of.write(f'{counter[key]} [{key[1].upper()}] {key[0]}\n') |
| | | of.write(f'{counter[key]} {key[0]} [{key[1].upper()}]\n') |
| | | |
| | | |
| | | |
| | |
| | | opencv-python==3.4.2.17 |
| | | opencv-python |
| | | pandas |
| | | imgaug==0.2.6 |
| | | imutils==0.5.1 |
| | | matplotlib==2.2.2 |
| | | numpy==1.15.2 |
| | | numpy |
| | | #pickle |
| | | #PIL==5.1.0 |
| | | shapely==1.6.4 |
| | | shapely |
| | | #urllib |
| | | imagehash |