Skip to content

Commit

Permalink
fix issues with cam finder
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh committed Oct 21, 2020
1 parent 4fcf00f commit 85d2e78
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions common/usb_cam_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@

def get_ids(res_ids):
# print("here",res_ids)
ids=[]
sid,vid,mid="","",""
for res in res_ids:
index = res.find('=')
id=res[index+1:]
ids.append(id)
return ids[0],ids[1],ids[2]
# ids.append(id)
if res.find('VENDOR')!= -1:
vid=id
elif res.find('SERIAL')!= -1:
sid=id
elif res.find('MODEL')!= -1:
mid=id
return mid,sid,vid

def find_usb_cam_path(**kwargs):

Expand Down

0 comments on commit 85d2e78

Please sign in to comment.