larroy commented on a change in pull request #9808: [MXNET-267] Ssd camera demo
URL: https://github.com/apache/incubator-mxnet/pull/9808#discussion_r179960150
 
 

 ##########
 File path: example/ssd/demo.py
 ##########
 @@ -131,13 +138,59 @@ def parse_data_shape(data_shape_str):
         raise ValueError("Unexpected data_shape: %s", data_shape_str)
     return data_shape
 
-if __name__ == '__main__':
-    args = parse_args()
-    if args.cpu:
-        ctx = mx.cpu()
-    else:
-        ctx = mx.gpu(args.gpu_id)
+def draw_detection(frame, det, class_names):
 
 Review comment:
   The one with cv2 is in realtime. The matplotlib one is useful for single 
frame jobs.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to