zoukankan      html  css  js  c++  java
  • Test log

    test log

    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ pwd
    /home/star/Detectron2/detectron2-master/demo
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$
    (wind2) star@xmatrix:~/Detectron2/detectron2-master/demo$ python test-handle-moreImg-2020100601.py

    def judgeType(whiteCount,otherCount):
        typeValue=-1
        for indexData in csvData:
            #print("%d  %d  %d  %d",whiteCount,otherCount,indexData[0],indexData[1])
    
            csvData_w = indexData[0]
            csvData_o = indexData[1]
    
            #print('%d  %d  %d  %d  %d',whiteCount,otherCount,csvData_w,csvData_o,typeValue)
            #print(type(csvData_w))
            #print(type(whiteCount))
    
            if whiteCount == int(csvData_w) and int(csvData_o)==otherCount:
                #csvData_o==otherCount
                typeValue=indexData[3]
                #print('%d  %d  %d  %d  %d',whiteCount,otherCount,csvData_w,csvData_o,typeValue)
                #break
        return int(typeValue)
    ==================================================
    /home/star/Desktop/data/test_left_1_20200921/2019_07_14-08_08_34_left.jpg
    person 100%
    person 100%
    person 100%
    <class 'detectron2.structures.instances.Instances'>
    {'white': 3, 'blue': 0, 'red': 0, 'black': 0, 'yellow': 0, 'green': 0, 'other': 0, 'detectTime': 0.22504782676696777, 'colorTime': 0.04350137710571289, 'typeValue': 1}
    ==================================================
    /home/star/Desktop/data/test_left_1_20200921/2019_07_14-08_07_14_left.jpg
    person 99%
    person 96%
    person 59%
    <class 'detectron2.structures.instances.Instances'>
    {'white': 0, 'blue': 0, 'red': 1, 'black': 0, 'yellow': 0, 'green': 0, 'other': 0, 'detectTime': 0.21993470191955566, 'colorTime': 0.04665970802307129, 'typeValue': 1}
  • 相关阅读:
    c++ primer 读书笔记
    如何利用c++编写不能被继承、但可以在类外定义对象的类
    为什么对多线程编程这么怕?pthread,sem,mutex,process
    死锁的理解
    动态规划--找零钱 coin change
    C++ STL中Map的按Key排序和按Value排序
    c++ STL sort struct comp
    《剑指offer》第二十五题(合并两个排序的链表)
    《剑指offer》第二十四题(反转链表)
    《剑指offer》第二十三题(链表中环的入口结点)
  • 原文地址:https://www.cnblogs.com/herd/p/13773817.html
Copyright © 2011-2022 走看看