DropDetection_YOLO_Sparse

safe_delete(file:str)
Safely deletes a file if it exists.
Parameters:
Returns:
None: None
Raises:
Labels:

src_PyThon_ContactAngle_DropDetection_DropDetection_YOLO_Sparse_safe_delete

delInRange(_start:int, _end:int, _listadress:list, max_threads:int, optional)
Deletes a range of files from a list using multithreading.
Parameters:
Returns:
None: None
Raises:
Labels:

src_PyThon_ContactAngle_DropDetection_DropDetection_YOLO_Sparse_delInRange

detect_and_filter_batch(index_range:tuple)
Worker function for a process that detects drops in a batch of frames using YOLO. Deletes all frames in the range if no drops are detected in the first and last frames.
Parameters:
Labels:

src_PyThon_ContactAngle_DropDetection_DropDetection_YOLO_Sparse_detect_and_filter_batch

Walker(image_folder:str, skip:int, optional, yolo_conf:float, optional, num_workers:int, optional)
Walk through all images in a folder in steps of `skip` frames. Uses multiprocessing to detect drops with YOLO and deletes frame ranges without drops.
Parameters:
Returns:
None: None
Examples:
>>> Walker("extracted_frames", skip=30, yolo_conf=0.5)
Labels:

src_PyThon_ContactAngle_DropDetection_DropDetection_YOLO_Sparse_Walker