def run_local()

in vision/snippets/detect/detect.py [0:0]


def run_local(args):
    if args.command == "faces":
        detect_faces(args.path)
    elif args.command == "labels":
        detect_labels(args.path)
    elif args.command == "landmarks":
        detect_landmarks(args.path)
    elif args.command == "text":
        detect_text(args.path)
    elif args.command == "logos":
        detect_logos(args.path)
    elif args.command == "safe-search":
        detect_safe_search(args.path)
    elif args.command == "properties":
        detect_properties(args.path)
    elif args.command == "web":
        detect_web(args.path)
    elif args.command == "crophints":
        detect_crop_hints(args.path)
    elif args.command == "document":
        detect_document(args.path)
    elif args.command == "web-geo":
        web_entities_include_geo_results(args.path)
    elif args.command == "object-localization":
        localize_objects(args.path)