jake2004 commited on
Commit
25c68c2
·
verified ·
1 Parent(s): a8139bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -43,7 +43,7 @@ def detect_lanes_and_objects_image(image, model, confidence_threshold, iou_thres
43
  results = model(img_np, conf=confidence_threshold, iou=iou_threshold)
44
 
45
  detections = sv.Detections.from_ultralytics(results[0])
46
- annotator = sv.BoxAnnotator(thickness=2, text_scale=0.5)
47
  annotated_frame = annotator.annotate(scene=img_np, detections=detections)
48
 
49
  return annotated_frame
@@ -150,7 +150,10 @@ elif source_type == "Live Camera Feed":
150
  )
151
 
152
 
153
- st.markdown("---")
154
  st.markdown(
155
-
156
- )
 
 
 
 
43
  results = model(img_np, conf=confidence_threshold, iou=iou_threshold)
44
 
45
  detections = sv.Detections.from_ultralytics(results[0])
46
+ annotator = sv.BoxAnnotator(thickness=2)
47
  annotated_frame = annotator.annotate(scene=img_np, detections=detections)
48
 
49
  return annotated_frame
 
150
  )
151
 
152
 
153
+ st.markdown("Your markdown content here")
154
  st.markdown(
155
+ """
156
+ **Note:** This example uses YOLOv8 for object detection. Lane detection is a more complex task and requires additional image processing techniques. This is a simplified demo and will likely not perform well on complex or noisy video.
157
+ """
158
+ )
159
+