Ejemplo n.º 1
0
        fprs=fprs,
        output=roc,
    )
    servers.get_gaze_server_result(new_result,
                                   file_name,
                                   label_name,
                                   error_name=error_name,
                                   type_=options.data_type)

if options.test_type == 'verify':
    person_name = "{}{}{}".format(tool, os.sep, "output/i_enroll.txt")
    print(person_name)
    shutil.copyfile(
        person_name, "{}{}{}".format(directory, os.sep,
                                     os.path.basename(person_name)))
    roc = "{0}{1}{2}-roc.txt".format(directory, os.sep, version)
    count.verify_roc(
        result,
        label_name,
        output=roc,
    )

    servers.get_verify_server_result(
        person_name,
        file_name,
        new_result,
        replace_file=options.directory.rstrip(os.sep) + os.sep,
        replace_name=options.base + '/output/enroll_list/',
        error_name=error_name,
    )
Ejemplo n.º 2
0
    parser.add_argument('-o',
                        action="store",
                        dest="output_dir",
                        default="./",
                        help=u'结果输出目录')
    parser.add_argument(
        '-f',
        action="store",
        dest="replace_file",
        default="/home/andrew/code/data/tof/base_test_data/vivo-verify-452/./",
        help=u'文件名需要替换为空的部分')
    parser.add_argument('-n',
                        action="store",
                        dest="replace_name",
                        default="output/enroll_list/",
                        help=u'人名需要替换为空的部分')
    parser.add_argument('--version',
                        action='version',
                        version='%(prog)s 1.1 Rongzhong xu 2018 03 22')
    options = parser.parse_args()

    servers.get_verify_server_result(
        options.names,
        options.files,
        options.scores,
        score=options.score,
        output_dir=options.output_dir,
        replace_file=options.replace_file,
        replace_name=options.replace_name,
    )