ÔËÐа취£º
»·¾³£ºpython2
ÔËÐÐǰÏȰ²×°ROC,transformºÍconRoc,°²×°°ì·¨£º
pip install roc2.1.2
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')
drawpic:
ÊäÈ룺Îļþ¼Ðpre_file(ÐèÒª»æÍ¼µÄtxtËùÔÚµÄÎļþ¼Ð£©,image(Òª±£´æµÄͼƬ·¾¶£©,titlestr(ͼƬ±êÌ⣩
python
from ROC import conRoc
conRoc.conRoc("pre_file","image","titlestr")
Êä³ö£º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¸ñʽ±ê×¢ÐÅÏ¢Ëù´æ·ÅÎļþ¼Ð£©
xml2txt:
ÊäÈ룺xml_file(xml¸ñʽ±ê×¢ÐÅÏ¢Ëù´æ·ÅÎļþ¼Ð£©
python
from transform import xml2txt
xml2txt.xml2txt("xml_file","txt_file")
Êä³ö£ºtxt_file(txt¸ñʽ±ê×¢ÐÅÏ¢Ëù´æ·ÅÎļþ¼Ð£©
DataOfRoc:
ÊäÈ룺Îļþ¼Ðtruth£¨±ê×¢½á¹ûÎļþ¼Ð£©,test£¨Ä£ÐÍÊä³öµÄ½á¹ûÎļþ¼Ð£©
python
from ROC import DataOfRoc
DataOfRoc.DataOfRoc("truth","test")
Êä³ö£ºtp£¨Îó¶Á¸öÊý£©,pos£¨Êµ¼ÊÕýÈ·¸öÊý£©,rate£¨ÕÙ»ØÂÊ£©
IOU£º
ÊäÈ룺Reframe,GTframe(Á½¸öÁÐ±í£¬ÄÚÈÝΪ¾ØÐε͍µã×ø±êXmin,Ymin,Xmax,Ymax)
python
from ROC import IOU
IOU.IOU(Reframe,GTframe)
Êä³ö£ºratio(Á½³¤·½ÐÎÃæ»ýÖØµþ±ÈÂÊ£©
scoreRoc£º
ÊäÈ룺listdata(Êý¾ÝÁбí:ÿ×éÊý¾Ýwei:[ÊÇ·ñ´íÎó£¨1/0£©,ÊÇ·ñÕýÈ·£¨1/0£©,score]£©,result(Òª±£´æµÄtxtÎı¾ÎĵµÂ·¾¶£©£¬roc(Òª±£´æµÄͼƬ·¾¶£©
python
from ROC import scoreRoc
scoreRoc.scoreRoc(listdata,"result","roc")
Êä³ö£ºrocºÍ·ÖÊýÕÛÏßͼ,½á¹ûµÄÎı¾Îĵµ
PS:result ºÍroc²»´ø¸ñʽ£¨Àý£º'D:\\python_work\\result')
nms£º
ÊäÈ룺
python
from nms import nms
nms.nms()
Êä³ö£º
Îļþ¼Ð˵Ã÷£º
transformÎļþ¼Ð£º
txt2xml £º½«txt¸ñʽÎı¾×ª»»ÎªxmlÎļþ£¨Ã¿¸ötxtÎļþת»»ÎªÒ»¸öxmlÎļþ£© ÐèҪת»»µÄËùÓÐtxtÎļþ·ÅÔÚtxt_fileÖУ¬×ª»»ºóµÄxmlÎļþ´æ·ÅÔÚxml_fileÖÐ
xml2txt £º½«xml¸ñʽÎı¾×ª»»ÎªtxtÎļþ£¨Ã¿¸öxmlÎļþת»»ÎªÒ»¸ötxtÎļþ£© ÐèҪת»»µÄËùÓÐxmlÎļþ·ÅÔÚxml_fileÖУ¬×ª»»ºóµÄtxtÎļþ´æ·ÅÔÚtxt_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Îļþ²¢µÃ³öIOU±È¶ÔÖбȶԴíÎó(ÖØµþ±ÈÂÊСÓÚ0.5£©ºÍ±È¶ÔÕýÈ·µÄ¸öÊý¡£ ÊäÈ룺truthΪ±ê×¼xmlÎļþËùÔÚµÄÎļþ¼Ð£¬testΪ´ý±È¶ÔµÄxmlÎļþËùÔÚµÄÎļþ¼Ð¡£
scoreRoc£º¸ù¾ÝÁбíÊý¾Ý£¬»æÖÆrocÇúÏß Áбíÿ×éÊý¾ÝΪ[wrong,right,score] wrongÓërightΪÎó¶ÁºÍÕýÈ·µÄ±êʶ£¬ÖµÎª1/0£¬scoreÀ´Ô´ÓÚxmlÎļþ
DataOfRoc:±È½ÏÁ½¸öÎļþ¼ÐÖеÄxmlÎļþ£¬²¢¼ÆËã³öÎó¶Á¸öÊý£¬Êµ¼ÊÕýÈ·¸öÊý£¬ºÍÕÙ»ØÂÊ
drawpic:¸ù¾ÝÁ½¸öÎļþ¼ÐÖÐtxtÎļþ»rocÇúÏßͼ¡£Ã¿¸ötxtÎļþ¶ÔÓ¦ÑÕÉ«ÏàͬµÄÁ½ÌõÇúÏߣ¨ÕÙ»ØÂÊÇúÏߺͷÖÊýÇúÏߣ©
Metadata
Release files for roc2.1.3 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| roc2.1.3-2.1.3.tar.gz | 9.2 kB | Without provenance | Details for roc2.1.3-2.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| roc2.1.3-2.1.3-py2.7.egg | Legacy Egg format | - | - | Details for roc2.1.3-2.1.3-py2.7.egg |
Total release size: 33.1 kB
Release files / roc2.1.3-2.1.3.tar.gz
| Download URL | roc2.1.3-2.1.3.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e46453c9d32eb620707b0fb295f073feaf2ea14532c3dea45f470ec254f5ca27
|
|
BLAKE2b-256 checksum How to use checksums |
de92040cd984f6cfe6d141cceac580f85370ca703a15fcf4dcf7576aa8ab8a98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15
|
Release files / roc2.1.3-2.1.3-py2.7.egg
| Download URL | roc2.1.3-2.1.3-py2.7.egg |
|---|---|
| Size | 23.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f3a7e1a8368f36031d70776fd9630b5dbdecfb7476bcc98179af533fb98edbd8
|
|
BLAKE2b-256 checksum How to use checksums |
ad5855d60946a0d3545652218b5332a8bbdf25b5132dedbac29f8f1646fb78ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15
|
Security for roc2.1.3 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.