Skip to content

Commit

Permalink
update rit object detection formula
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Feb 28, 2021
1 parent d644992 commit 1d5a413
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion object/detection/src/formula/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ def run(image_path):

detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
#detector.setModelPath( os.path.join(execution_path , "images/keanu_reeves.jpg"))

# Test
detector.setModelPath("images/keanu_reeves.jpg")
#detector.setModelPath( os.path.join(execution_path , "images/keanu_reeves.jpg"))

# Load model on an image.jpg file
detector.loadModel()
detections = detector.detectObjectsFromImage(input_image=os.path.join(execution_path , "image.jpg"), output_image_path=os.path.join(execution_path , "imagenew.jpg"))

Expand Down

0 comments on commit 1d5a413

Please sign in to comment.