MCPcopy Index your code
hub / github.com/LCBOWER33/StegoScan / detect_objects

Function detect_objects

StegoScan.py:714–720  ·  view source on GitHub ↗

Runs YOLO model on the image and returns True if an object is detected.

(image)

Source from the content-addressed store, hash-verified

712
713
714def detect_objects(image):
715 """Runs YOLO model on the image and returns True if an object is detected."""
716 results = model(image)
717 for result in results:
718 if len(result.boxes) > 0:
719 return True # At least one object detected
720 return False
721
722
723def enhance_image_for_ocr(image):

Callers 1

process_and_saveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected