def get_detector(net, prefix, epoch, data_shape, mean_pixels, ctx, class_names, thresh, plot_confidence, nms_thresh=0.5, force_nms=True, nms_topk=400):
    if (net is not None):
        net = get_symbol(net, data_shape, num_classes=len(class_names), nms_thresh=nms_thresh, force_nms=force_nms, nms_topk=nms_topk)
    detector = ImageDetector(net, prefix, epoch, data_shape, mean_pixels, class_names, thresh, plot_confidence, ctx=ctx)
    return detector
def get_detector(net, prefix, epoch, data_shape, mean_pixels, ctx, class_names, thresh, plot_confidence, nms_thresh=0.5, force_nms=True, nms_topk=400):
    if (net is not None):
        net = get_symbol(net, data_shape, num_classes=len(class_names), nms_thresh=nms_thresh, force_nms=force_nms, nms_topk=nms_topk)
    detector = ImageDetector(net, prefix, epoch, data_shape, mean_pixels, class_names, thresh, plot_confidence, ctx=ctx)
    return detector