Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh committed Jun 17, 2020
1 parent 2a5c78e commit feb9998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cam_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, config):
username = self.config.get('username', None)
password = self.config.get('password', None)
if username and password and(self.config['url'].find('@')==-1):
url=self.config['url'][0:7]+username+'@'+password+self.config['url'][7:]
url=self.config['url'][0:7]+username+':'+password+'@'+self.config['url'][7:]
self.config['url']=url
self.video = cv2.VideoCapture(self.config['url'])
params = self.config.get('params',{})
Expand Down

0 comments on commit feb9998

Please sign in to comment.