chiyoi commited on
Commit
ec95343
1 Parent(s): ef88e08
Files changed (2) hide show
  1. app.py +2 -2
  2. inference.py +2 -1
app.py CHANGED
@@ -81,8 +81,8 @@ examples = [
81
  ['examples/Zv7GyH-fpEY_2023.0_2033.0.mp4']]
82
 
83
  iface = gr.Interface(
84
- title='Aeroplane Position and Action Detection',
85
- description='Detect aeroplane position and action in a video.',
86
  theme='soft',
87
  fn=fn,
88
  inputs=inputs,
 
81
  ['examples/Zv7GyH-fpEY_2023.0_2033.0.mp4']]
82
 
83
  iface = gr.Interface(
84
+ title='基于深度学习的视频流飞机检测与行为识别系统',
85
+ description='上传待检测的视频片段,提交后实时返回最新处理的视频帧,全部处理完成后可以下载标记后的视频片段.',
86
  theme='soft',
87
  fn=fn,
88
  inputs=inputs,
inference.py CHANGED
@@ -72,7 +72,8 @@ def draw_classes(frame, actions):
72
  label=labels,
73
  image=frame,
74
  label_names=label_names,
75
- alpha=0.3)
 
76
  return frame
77
 
78
  def FrameProcessor(detector, classifier, config: Config):
 
72
  label=labels,
73
  image=frame,
74
  label_names=label_names,
75
+ font_size=10,
76
+ alpha=0)
77
  return frame
78
 
79
  def FrameProcessor(detector, classifier, config: Config):