turhancan97 commited on
Commit
77abadc
1 Parent(s): 829e78c

fix video issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ file_urls = [
70
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/cefd9731-c57c-428b-b401-fd54a8bd0a95',
71
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/acbad76a-33f9-4028-b012-4ece5998c272',
72
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/ce8a0fb9-99ea-4952-bcc4-3afa023066d9',
73
- 'https://www.dropbox.com/s/7sjfwncffg8xej2/video_7.mp4?dl=1'
74
  ]
75
 
76
  def download_file(url, save_name):
@@ -190,7 +190,7 @@ def show_preds_video(video_path):
190
 
191
  # Find the orientation of each shape
192
  angle_deg = getOrientation(c, img)
193
-
194
  results = outputs[0].cpu().numpy()
195
  for i, det in enumerate(results.boxes.xyxy):
196
  cv2.rectangle(
 
70
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/cefd9731-c57c-428b-b401-fd54a8bd0a95',
71
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/acbad76a-33f9-4028-b012-4ece5998c272',
72
  'https://github.com/lucarei/orientation-detection-robotic-grasping/assets/22428774/ce8a0fb9-99ea-4952-bcc4-3afa023066d9',
73
+ 'https://dl.dropboxusercontent.com/scl/fi/flbf7vvoxgzoe9adovadm/video-540p.mp4?dl=0&rlkey=jbecmpu727q7yirvquma9m7w2'
74
  ]
75
 
76
  def download_file(url, save_name):
 
190
 
191
  # Find the orientation of each shape
192
  angle_deg = getOrientation(c, img)
193
+
194
  results = outputs[0].cpu().numpy()
195
  for i, det in enumerate(results.boxes.xyxy):
196
  cv2.rectangle(