Exemplo n.º 1
0
    roc = "{0}{1}{2}-roc.txt".format(directory, os.sep, version)
    count.roc(
        result,
        label_name,
        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 == 'eyestate':
    servers.get_eye_server_result(
        values,
        error_name=error_name,
    )

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,
    )
Exemplo n.º 2
0
Arquivo: eye.py Projeto: c964309085/ml
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author:    xurongzhong#126.com wechat:pythontesting qq:37391319
# 技术支持 钉钉群:21745728(可以加钉钉pythontesting邀请加入)
# qq群:144081101 591302926  567351477
# CreateDate: 2018-6-012
import pandas as pd

import servers

filename = "data.csv"
servers.get_eye_server_result(filename)

#df = pd.read_csv(filename, sep=' |,', engine='python',names=['left_score','left_valid','right_score','right_valid','name'])
#print(df.head())

#df_unknow = df[df['left_score'] == -1]
#print(df_unknow.head())

#df_error = df[df['left_score'] == -2]
#print(df_error.head())

#df2 = df[df['left_score'] > -1]

#close_error = df2[df2['name'].str.contains('/close/') & ((df2['left_score'] > 9.5) | (df2['right_score'] > 9.5))]
#print(close_error.head())

#open_error = df2[df2['name'].str.contains('/open/') & (df2['left_score'] < 9.5) & (df2['right_score'] < 9.5)]
#print(open_error.head())

#invalid_error = df2[df2['name'].str.contains('/invalid/') & ((df2['left_valid'] > 9.5) | (df2['right_valid'] > 9.5))]