mirror of
https://github.com/NanjingForestryUniversity/supermachine-tobacco.git
synced 2025-11-08 14:23:55 +00:00
Merge remote-tracking branch 'originn/master'
This commit is contained in:
commit
9b544a38d4
@ -30,7 +30,7 @@ class Config:
|
|||||||
threshold_low, threshold_high = 10, 230
|
threshold_low, threshold_high = 10, 230
|
||||||
threshold_s = 190 # 饱和度的最高允许值
|
threshold_s = 190 # 饱和度的最高允许值
|
||||||
rgb_size_threshold = 4 # rgb的尺寸限制
|
rgb_size_threshold = 4 # rgb的尺寸限制
|
||||||
ai_path = 'weights/best.pt'
|
ai_path = 'weights/best0823.pt'
|
||||||
ai_conf_threshold = 0.5
|
ai_conf_threshold = 0.5
|
||||||
|
|
||||||
# mask parameter
|
# mask parameter
|
||||||
|
|||||||
2
main.py
2
main.py
@ -122,7 +122,7 @@ def main(only_spec=False, only_color=False, if_merge=False, interval_time=None,
|
|||||||
if single_spec:
|
if single_spec:
|
||||||
output_fifos = [mask_fifo_path, ]
|
output_fifos = [mask_fifo_path, ]
|
||||||
elif single_color:
|
elif single_color:
|
||||||
output_fifos = [rgb_fifo_path, ]
|
output_fifos = [rgb_mask_fifo_path, ]
|
||||||
else:
|
else:
|
||||||
output_fifos = [mask_fifo_path, rgb_mask_fifo_path]
|
output_fifos = [mask_fifo_path, rgb_mask_fifo_path]
|
||||||
for fifo, mask in zip(output_fifos, masks):
|
for fifo, mask in zip(output_fifos, masks):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user