Skip to main content

just a simple test of vipkid

Project description

ÔËÐа취£º

»·¾³£ºpython2    
ÔËÐÐÇ°ÏÈ°²×°ROC,transformºÍconRoc,°²×°°ì·¨£º
pip install roc-2.1.1


roc:
    ÊäÈ룺Îļþ¼Ðtruth£¨±ê×¢½á¹ûÎļþ¼Ð£©,test£¨Ä£ÐÍÊä³öµÄ½á¹ûÎļþ¼Ð£©,result(Òª±£´æµÄtxtÎı¾ÎĵµÂ·¾¶£©£¬roc(Òª±£´æµÄͼƬ·¾¶£©
    python 
            from ROC import roc
            roc.roc("truth","test","result","roc")
    Êä³ö£ºrocºÍ·ÖÊýÕÛÏßͼ,½á¹ûµÄÎı¾Îĵµ
    PS:result ºÍroc²»´ø¸ñʽ£¨Àý£º'D:\\python_work\\result')


conRoc:
    ÊäÈ룺Îļþ¼Ðpre_file(ÐèÒª»æͼµÄtxtËùÔÚµÄÎļþ¼Ð£©,image(Òª±£´æµÄͼƬ·¾¶£©
    python 
            from ROC import conRoc
            conRoc.conRoc("pre_file","image")
    Êä³ö£ºrocÕÛÏßͼ
    PS:image²»´ø¸ñʽ£¨Àý£º'D:\\python_work\\image') 
 

txt2xml:
    ÊäÈ룺txt_file(txt¸ñʽ±ê×¢ÐÅÏ¢Ëù´æ·ÅÎļþ¼Ð£©
    python
            from transform import txt2xml
            txt2xml.txt2xml("txt_file","xml_file")
    Êä³ö£ºxml_file(xml¸ñʽ±ê×¢ÐÅÏ¢Ëù´æ·ÅÎļþ¼Ð£©  

Îļþ¼Ð˵Ã÷£º

transformÎļþ¼Ð£º

txt2xml £º½«txt¸ñʽÎı¾×ª»»ÎªxmlÎļþ£¨Ã¿¸ötxtÎļþת»»ÎªÒ»¸öxmlÎļþ£© ÐèҪת»»µÄËùÓÐtxtÎļþ·ÅÔÚtxt_fileÖУ¬×ª»»ºóµÄxmlÎļþ´æ·ÅÔÚxml_fileÖÐ

ROCÎļþ¼Ð£º

roc: »æÖÆrocÇúÏߺͷÖÊýÇúÏß²¢¼ÆËãacu¡£Êý¾ÝÀ´Ô´ÓÚdbÁбí

IOU: ¼ÆËãÁ½¾ØÐÎIOU,´«ÈëÊý¾ÝΪÿ¸ö¾ØÐÎÁ½Ìõ¶Ô½ÇÏߵĺá×Ý×ø±êReframe=[X1,Y1,X2,Y2],GTframe=[X1,Y1,X2,Y2]¡£

read:¶ÁÈ¡xmlÎļþµÄËùÓбê×¢µÄ±êÇ©Êý¾Ý(xmin,ymin,xmax,ymax)¡£´«ÈëÊý¾ÝΪ´ý²âÊÔxmlÎĵµµÄÔªËضÔÏó¡£

Analyze_xml£º½âÎöxmlÎļþ²¢µÃ³öIOU±È¶ÔÖбȶԴíÎó(Öصþ±ÈÂÊСÓÚ0.5£©ºÍ±È¶ÔÕýÈ·µÄ¸öÊý¡£ ÊäÈ룺truthΪ±ê×¼xmlÎļþËùÔÚµÄÎļþ¼Ð£¬testΪ´ý±È¶ÔµÄxmlÎļþËùÔÚµÄÎļþ¼Ð¡£

conROCÎļþ¼Ð:

conRoc:¸ù¾ÝÎļþ¼ÐÖеÄËùÓÐtxtÎļþÄÚÈÝ»æÖÆÇúÏßͼ£¨Ã¿¸öÎļþ¶ÔÓ¦Á½ÌõͬɫµÄÕÛÏߣ©

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for roc-2.1.1, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size roc_2.1.1-2.1.1-py2.7.egg (12.9 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size roc-2.1.1-2.1.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page