只是一个简单的vipkid测试

roc2.1.6的Python项目详细描述


操作方法:

Bofore Operation install "ROC,transform,nms"£º
pip install roc2.1.6


roc:
    input£ºtruth£¨folder with Annotation results£©,test£¨folder with Model output£©,stdscore(standard score to Judge right or wrong £©£¬result(path of txt file to besaved£©£¬roc(path of image to besaved£©
    python 
            from ROC import roc
            roc.roc("truth","test",stdscore£¬"result","roc")
    output£ºroc and score image,txt file
    PS:'result' and 'roc' not have format £¨such as£º'D:\\python_work\\result')


drawpic:
    input:pre_file(folder with txt files£©,image(path of image to besaved£©,titlestr(title of image£©
    python 
            from ROC import drawpic
            drawpic.drawpic("pre_file","image","titlestr")
    output£ºroc image 
    PS:'image' not have format £¨such as£º'D:\\python_work\\image') 


IOU:
    input£ºReframe,GTframe£¨two lists with information of Rectangle £¬[Xmin,Ymin,Xmax,Ymax])
    python 
            from ROC import IOU
            IOU.IOU(Reframe,GTframe)
    output£ºratio(Rectangle area overlap rate £©   


DataOfRoc:
    input£ºtruth£¨folder with Annotation results£©,test£¨folder with Model output£©
    python 
            from ROC import DataOfRoc
            DataOfRoc.DataOfRoc("truth","test")
    output£ºtp(wrong num£©,pos£¨Total correct number £©,rate£¨recall rate£©


scoreRoc:
    input£ºlistdata(list[1/0,1/0,score]),image(path of image to besaved£©,titlestr(title of image£©
    python 
            from ROC import scoreRoc
            scoreRoc.scoreRoc(listdata,"image","titlestr")
    output£ºroc image
    PS:'image' not have format£¨such as£º'D:\\python_work\\image')


txt2xml:
    input£ºtxt_file(folder with txt format Annotation information£©
    python
            from transform import txt2xml
            txt2xml.txt2xml("txt_file","xml_file")
    output£ºxml_file(folder with xml format Annotation information£©  


xml2txt:
    input£ºxml_file(folder with xml format Annotation information£©
    python
            from transform import xml2txt
            xml2txt.xml2txt("xml_file","txt_file")
    output£ºtxt_file(folder with txt format Annotation information£©



nms:
    input£º
    python
            from nms import nms
            nms.nms()
    output£º

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
我们应该在测试java代码时模拟黄瓜测试吗。我们应该在多大程度上使用黄瓜?   Hibernate Weblogic 10.3.4 java。lang.NoSuchMethodError:javax/persistence/spi/PersistenceUnitInfo。getValidationMode()Ljavax/persistence/ValidationMode;   java如何在main()中访问私有静态实例变量   java JMockit无法模拟类的公共final字段   java是否可以返回特定控制器操作的输出(html)?   java如何返回正确类型的列表?   rest-OpenUI/Swagger-java-to-API   java组织。springframework。豆。工厂NoSuchBeanDefinitionException或加载ApplicationContext失败   java使用POST将参数从JSP发送到Servlet   java如何监听特定的按钮按下和主视图用户交互?   java如何让gradle在本地maven repo中覆盖库?   如何在Java中“合并”两个URI?   java如何制作一个方法来移动数组中的字符?   使用来自java的命令启动powershell窗口   java垃圾收集器和匿名类   java如何为CellTable(GWT 2.4)中的ImageResourceCell创建PanelPopup?