Skip to content

Commit

Permalink
Update mineral.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorsumathi authored Dec 7, 2023
1 parent 41b09da commit 541f9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/margsoft/mineral.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import os
import pathlib
from datetime import datetime
CONFIDENCE_THRESHOLD = 0.7
NMS_THRESHOLD = 0.1

def collectdataset(rtsp, names_file, weight_file, cfg_file, path, dir_n, x_1, y_1, w_1, z_1, poly, roi, pts_left, pts_right, exit_percent=200.0):
def collectdataset(rtsp, names_file, weight_file, cfg_file, path, dir_n, x_1, y_1, w_1, z_1, poly, roi, pts_left, pts_right,cnf=0.6,exit_percent=200.0):
print("inside the function")
CONFIDENCE_THRESHOLD = cnf
NMS_THRESHOLD = 0.1

def get_video_capture(rtsp_url):
cap = cv2.VideoCapture(rtsp_url, cv2.CAP_FFMPEG)
Expand Down

0 comments on commit 541f9c6

Please sign in to comment.