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 - - - - -
# - - - - - - - - - - - - - - - -
评论列表
文章目录