Skip to content
Snippets Groups Projects
Commit 531f4ba5 authored by Zhiying Li's avatar Zhiying Li
Browse files

add url as input to ball_detect_live function

parent 66894987
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment