ImPro.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:DeltaPicker 作者: T-Kuhn 项目源码 文件源码
def __init__(self, cam, height, width, cropAroundOffset=False, proccessingHeight=0, proccessingWidth=0):
        self.camera = cam
        self.stream =  picamera.array.PiYUVArray(self.camera)

        # When this boolean is True, The Frame taken will be cropped down to a 96x96 image for proccessing
        # the center of the cropped down image will be the expected position of the object
        self.cropAroundOffset = cropAroundOffset

        self.height = height
        self.width = width

        if self.cropAroundOffset == False:
            self.proccessingHeight = self.height
            self.proccessingWidth = self.width
        else:
            self.proccessingHeight = proccessingHeight
            self.proccessingWidth = proccessingWidth

        self.camera.resolution = (self.height, self.width)

        self.pixelObjList = []
        self.objIDCntr = 0
        self.pixelObjList.append(PixelObj.PixelObj(self.getNextObjId(), self.proccessingHeight))

    # - - - - - - - - - - - - - - - - 
    # - - - GET NEXT OBJ ID - - - - -
    # - - - - - - - - - - - - - - - -
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号