diff --git a/Code/Control/Laptop_Code/ball_detection/ball_detection.py b/Code/Control/Laptop_Code/ball_detection/ball_detection.py index f35e2f847384cd7b5e0a62e0d75132a9a210d627..8e8f45f471757e00a417702f16a0127860554b28 100644 --- a/Code/Control/Laptop_Code/ball_detection/ball_detection.py +++ b/Code/Control/Laptop_Code/ball_detection/ball_detection.py @@ -23,9 +23,9 @@ distanceDetect = __import__('ball_detection.distance-detection-torch.distance-de # change the IP address below according to the IP shown in the Serial monitor of Arduino code # url='http://192.168.1.107/cam-lo.jpg' -url='http://192.168.4.1/cam-hi.jpg' +# url='http://192.168.4.1/cam-hi.jpg' # url='http://192.168.1.107/cam-mid.jpg' -url='http://192.168.0.204/cam-hi.jpg' # url2 +# url='http://192.168.0.204/cam-hi.jpg' # url2 #### Modify Detecto Core to include possibility of other base models def modifyCore(): @@ -81,7 +81,7 @@ def returnModel(device, labelSet, modelLoc, modelFile): return model #### Live Detection -def detectLive(model, minDetectionScore = 0.90, showSight = True): +def detectLive(url , model, minDetectionScore = 0.90, showSight = True): ''' Descrption: ball detection ML Functions