コード例 #1
0
#------------------------------Initial Setup :- Argument Parser--------------------------
parser = argparse.ArgumentParser()
parser.add_argument("config", type=str, help="Full Path to config file")
parser.add_argument("-I", "--input", type=str, help="Full Path to the Input Folder")
parser.add_argument("-O", "--output", type=str, help="Full Path to the Output Folder")
parser.add_argument("-E", "--executable", type=str, help="Executable Name: \n1.) ImageStitch or \n 2.)VOCRelease5")
parser.add_argument("--nologin", help="Specify this argument to ignore logging in. However some features can be used only when logged in.",
                    action="store_true")
args = parser.parse_args()
#----------------xxx-------------Argument Parser Code Ends---------------------xxx----------------------


def parseCommandLineArgs():
    i = 0
    parsedList = {}
    if args.input:
        parsedList['input'] = args.input
    if args.output:
        parsedList['output'] = args.output
    if args.executable:
        parsedList['exec'] = args.executable
    return parsedList, args.config, not args.nologin

if __name__ == "__main__":
    parsedList, config_file, login_required = parseCommandLineArgs()
    print parsedList
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedList, login_required)
    if login_required:
        p.dropbox_authenticate()
    raw_input()
    p.azure_demo('*****@*****.**', '/classify_azure/')
コード例 #2
0
    help="Executable Name: \n1.) ImageStitch or \n 2.)VOCRelease5")
parser.add_argument(
    "--nologin",
    help=
    "Specify this argument to ignore logging in. However some features can be used only when logged in.",
    action="store_true")
args = parser.parse_args()
#----------------xxx-------------Argument Parser Code Ends---------------------xxx----------------------


def parseCommandLineArgs():
    i = 0
    parsedList = {}
    if args.input:
        parsedList['input'] = args.input
    if args.output:
        parsedList['output'] = args.output
    if args.executable:
        parsedList['exec'] = args.executable
    return parsedList, args.config, not args.nologin


if __name__ == "__main__":
    parsedList, config_file, login_required = parseCommandLineArgs()
    print parsedList
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedList,
                 login_required)
    if login_required:
        p.dropbox_authenticate()
    raw_input()
    p.ec2_demo()
コード例 #3
0
ファイル: run.py プロジェクト: chaoshengt/pcloudcv
def parseCommandLineArgs():
    i = 0
    parsedList = {}
    if args.input:
        parsedList['input'] = args.input
    if args.output:
        parsedList['output'] = args.output
    if args.executable:
        parsedList['exec'] = args.executable
    return parsedList, args.config, not args.nologin

if __name__ == "__main__":
    parsedList, config_file, login_required = parseCommandLineArgs()
    print parsedList
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedList, login_required)
    signal.signal(signal.SIGINT, p.signal_handler)

    if login_required:
        p.dropbox_authenticate()

    raw_input()

    p.start()
    p.join()

    signal.pause()
    
    import utility.job as uj
    import demo.demo_visualize as dv
    dv.visualize_classification(uj.job.output)
コード例 #4
0
ファイル: run.py プロジェクト: nj2610/py-cloudcv
args = parser.parse_args()
#----------------xxx-------------Argument Parser Code Ends---------------------xxx----------------------


def parseCommandLineArgs():
    parsedDict = {}
    if args.input:
        parsedDict['input'] = args.input
    if args.output:
        parsedDict['output'] = args.output
    if args.executable:
        parsedDict['exec'] = args.executable
    return parsedDict, args.config, not args.nologin


if __name__ == "__main__":
    parsedDict, config_file, login_required = parseCommandLineArgs()
    print parsedDict
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedDict,
                 login_required)
    signal.signal(signal.SIGINT, p.signal_handler)

    if login_required:
        p.dropbox_authenticate()

    print "Press Any Key to Continue..."
    raw_input()

    p.start()
    signal.pause()
コード例 #5
0
ファイル: ec2_demo.py プロジェクト: CV-IP/pcloudcv
#------------------------------Initial Setup :- Argument Parser--------------------------
parser = argparse.ArgumentParser()
parser.add_argument("config", type=str, help="Full Path to config file")
parser.add_argument("-I", "--input", type=str, help="Full Path to the Input Folder")
parser.add_argument("-O", "--output", type=str, help="Full Path to the Output Folder")
parser.add_argument("-E", "--executable", type=str, help="Executable Name: \n1.) ImageStitch or \n 2.)VOCRelease5")
parser.add_argument("--nologin", help="Specify this argument to ignore logging in. However some features can be used only when logged in.",
                    action="store_true")
args = parser.parse_args()
#----------------xxx-------------Argument Parser Code Ends---------------------xxx----------------------


def parseCommandLineArgs():
    i = 0
    parsedList = {}
    if args.input:
        parsedList['input'] = args.input
    if args.output:
        parsedList['output'] = args.output
    if args.executable:
        parsedList['exec'] = args.executable
    return parsedList, args.config, not args.nologin

if __name__ == "__main__":
    parsedList, config_file, login_required = parseCommandLineArgs()
    print parsedList
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedList, login_required)
    if login_required:
        p.dropbox_authenticate()
    raw_input()
    p.ec2_demo()
コード例 #6
0
ファイル: azure_demo.py プロジェクト: CV-IP/pcloudcv
#------------------------------Initial Setup :- Argument Parser--------------------------
parser = argparse.ArgumentParser()
parser.add_argument("config", type=str, help="Full Path to config file")
parser.add_argument("-I", "--input", type=str, help="Full Path to the Input Folder")
parser.add_argument("-O", "--output", type=str, help="Full Path to the Output Folder")
parser.add_argument("-E", "--executable", type=str, help="Executable Name: \n1.) ImageStitch or \n 2.)VOCRelease5")
parser.add_argument("--nologin", help="Specify this argument to ignore logging in. However some features can be used only when logged in.",
                    action="store_true")
args = parser.parse_args()
#----------------xxx-------------Argument Parser Code Ends---------------------xxx----------------------


def parseCommandLineArgs():
    i = 0
    parsedList = {}
    if args.input:
        parsedList['input'] = args.input
    if args.output:
        parsedList['output'] = args.output
    if args.executable:
        parsedList['exec'] = args.executable
    return parsedList, args.config, not args.nologin

if __name__ == "__main__":
    parsedList, config_file, login_required = parseCommandLineArgs()
    print parsedList
    p = PCloudCV(os.getcwd() + '/' + str(config_file), parsedList, login_required)
    if login_required:
        p.dropbox_authenticate()
    raw_input()
    p.azure_demo('*****@*****.**', '/classify_azure/')